teaching machines

CS 330 Lecture 10 – Assembly

Agenda what ?s assembly ways of doing: loops structs local variables functions TODO Read pages 35-45 in Programming From The Ground Up. 1/4 sheet. Code headxortails.s loop.s struct.s stringloop.s Haiku

CS 245 Lecture 7 – Abstract Classes

Agenda what ?s the inheritance spectrum a transformation hierarchy TODO Start homework 1. Due before February 24. Code Transform.java Translate.java Scale.java Rotate.java DotMover.java Haiku  

CS 330 Lecture 9 – Assembly

Agenda what ?s think about this the assembly way of doing things getting input from user heads/tails generator summing up a list of numbers using local variables binding data together TODO Read pages 19-31 and 109-114 of Programming From The Ground Up. 1/4 sheet. Think About This Code get_two.s headxortails.s Haiku

CS 330 Lecture 8 – Assembly

Agenda what ?s TA office hours the assembly way of doing things print some numbers sum some numbers program this getting input from user heads/tails generator summing up a list of numbers Program This Code makefile Note to copy and pasters: makefile rules need to be indented with real tabs, not spaces. add.s printf.s quadruple.s […]

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 […]

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 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

1 81 82 83 84 85 110