teaching machines

RGB Widget

I was sitting in a talk today when something made me think of how we represent colors in terms of red, green, and blue intensities. We often illustrate how these components mix together with a Venn diagram of three circles. The intersection of red and green is yellow, the intersection of green and blue is […]

CS 330 Lecture 36 – Guish Interpreter

Dear students, I am gone to learn about the state of computer science in high schools across Wisconsin. However, since at least one of you objected to my being gone a few times this semester, we continue our discussion of writing our interpreter! We pick up where we left off last lecture. We ended with […]

CS 318 Lab 24 – Workday

Dear students, There are a few topics I had hoped to address this semester, like these: styling a WordPress blog a Bootstrap-style grid layout We will tackle one of these on Monday. Which would you prefer? Also, after having examined your first prototypes, I’ve added a few extra requirements to the final project: All images […]

CS 330 Lecture 35 – Parsing

Dear students, We started writing our own lexer last time. We were trying to model in code this DFA that we drew on the board: Now, you might not have seen it, but we were actually playing a game of Chutes and Ladders. Each character in our source code was like a roll that moved […]