teaching machines

CS 145 Lecture 8 – Methods Cont’d

Dear students, Last time we started generating some circle art, but we stopped with only one circle. Once we get that working, let’s add a second random circle. And a third. And a fourth. And so on. We’ll find that the code quickly gets away from us if we simply copy and paste. Instead, we […]

CS 145 Lab 3 – Methods

Welcome to lab 3! If you have checkpoints from the last to show your instructor or TA, do so immediately. No credit will be given if you have not already completed the work, nor will credit be given after the first 10 minutes of this lab. You must work with a partner that you have […]

CS 145 Lecture 7 – String Cont’d and Methods

Dear students, With Strings at our disposal, our programs are going to start to feel human. We can write programs that process and generate words, and that’s pretty amazing! But we need more practice using them before we determine the authenticity of Shakespeare’s works. Let’s play some Stringo! Generate a String of five characters. Use […]

CS 145 Lecture 6 – The String Class

Dear students, If this class was a book, the chapter we’re in right now is Computer as Calculator. I’d mentioned that computers got their start in the world of mathematics. Why exactly did computers start with the mathematicians? Lately I’ve been reading some graphic novels related to technology and computer science for a conference I’ll […]

CS 145 Lecture 5 – Math Cont’d

Dear students, Here’s something that happens. Your professor, who has been writing code for a long time, walks through many coding examples with you in class. He carefully arranges everything to present a coherent and compelling story, intentionally leading you into problems but swooping in with some new idea to save the day. You feel […]

CS 145 Lab 2 – Math and String

Welcome to lab 2! If you have checkpoints from the last to show your instructor or TA, do so immediately. No credit will be given if you have not already completed the work, nor will credit be given after the first 10 minutes of this lab. You must work with a partner that you have […]

CS 145 Lecture 4 – Math Class

Dear students, Yesterday we had our first lab. I was very impressed by your positive attitudes toward learning and the way you helped each other. Lab days are a bit grueling for me, as I am on my feet from 8 AM to 5 PM being relied on by others, but your energy and friendliness […]

CS 145 Lecture 3 – Hello Again, Java

Dear students, We start today with a little segment I like to call What Does This Do?. I show you a short snippet of code, you slurp it into your brain, swish it around a few times, and figure out what it does. The task would be much easier if I picked good meaningful names […]

CS 145 Lecture 2 – Hello, Java

Dear students, Last time we peaked into a primary activity of computer science: organizing process. We started this adventure using Madeup, but today we’ll jump into Java, the language we will spend most of our time with this semester and next. Java is a language developed by Sun Microsystems. It surged to popularity because in […]

CS 145 Lab 1 – Variables and I/O

Welcome to the lab section of CS 145! Lab is a time intended for you to work on programming exercises in a low-stakes environment and with lots of help at your disposal. This is how it works: You complete a few checkpoints, which consist of short programming exercises. Questions are always fair game. Your instructor […]

1 3 4 5 6 7