CS 245 Lecture 6 – Manipulating Images and Custom Painting
Agenda what ?s manipulating images custom drawing supporting mouse interaction TODO The preassignment is due before Monday. The homework in this class is challenging. On top of that, Eclipse will kick you in the shin, the EGit plugin will pee on you, and Bitbucket will smash your laptop against the concrete. Don’t expect crunch-time miracles. […]
CS 330 Lecture 7 – Assembly
Agenda what ?s zero-width assertions think about this Von Neumann memory footprint of a process how to do things from a high-level language in assembly exit declare globals print some numbers sum some numbers getting input from user heads/tails generator TODO Read Programming From The Ground Up, from the beginning through page 19. What’s a […]
You won’t believe what happens when you type these 19 things into Vim!
A student group at my university asked me to come talk about Vim at their upcoming meeting—which was two days away. I said no. Then they wised up and asked me to speak at a meeting sometime next semester. I said okay. Following are 19 of my favorite Vim editing tricks. Insert Mode Complete filenames […]
CS 245 Lecture 5 – Inheritance
Agenda what ?s program this the kinds of inheritance a ToasterPlus RandomPlus a raffle TODO Read chapter 5 through section 5.2, Object: The Cosmic Superclass. 1/4 sheet with two questions and two observations. Program This Inheritance With interfaces, we get interface inheritance, in which: subtypes look like their supertypes, allowing old call to call new code […]
CS 330 Lecture 6 – Regular Expressions
Agenda what ?s homework 2 deadline extracting matches capturing transforming matches Program This Code chapterer.rb ocracy.rb blogify.rb report_generator.rb report_with_equations.txt Haiku
CS 330 Lecture 5 – Regular Expressions
Agenda what ?s Perry on “what’s best?” what are regices used for? common regex algorithms in Ruby asserting a pattern extracting matches transforming matches languages’ differing tacks on regex extracting a table of contents TODO Start Regexercise, homework 2. Optional: http://stackoverflow.com/questions/1732348 and http://www.codinghorror.com/blog/2009/11/parsing-html-the-cthulhu-way.html. See the dissonance between the question and answers, a hallmark of humanity. See Worse […]
CS 245 Lab 2 – Interfaces and Interfaces
First, if you have checkpoints left over from last lab, get them inspected during the first 15 minutes of this lab. Work in pairs. Where possible, work with someone that you did not work with last week. The exchange of new ideas and perspectives is not an opportunity you want to rob yourself of. Synopsis […]
CS 245 Lecture 4 – Interfaces
Agenda what ?s virtual lab Spanish verb conjugation program this a text editor TODO Keep at preassignment 1. Finish lab 1. Frolic. No 1/4 sheet. Program This Code Verb.java Conjugator.java ArErConjugator.java IrConjugator.java Verber.java Main.java TextEater.java Haiku
CS 330 Homework 2 – due before February 12
See the PDF.
CS 330 Lecture 4 – Regular Expressions
Agenda what ?s the gauntlet state machines/DFAs DFAs are regular expressions bingo TODO Walk through http://regexone.com. Write expressions to match: Lines ending with a hyphenated word. Words with an internal uppercase letter. Lines lacking a semi-colon at their close. Don’t match lines that have a semi-colon followed by whitespace. Instances of the identifier i. Don’t match […]