2007-09-14

Computer Class Update

Well this week has been hacking on the first computer assignment.. a simple 'stack' engine that you push items onto and off of.. and do various string operations with them. I should have the first version done by tonight (late late tonight)... if this cold/stomach bug doesn't kill me first.

Things I have learned from the program so far:
  1. BufferedReader and BufferedWriter are good for using versus System.out/err
  2. StringWriter is good for being wrapped by BufferedReader/Writer so JUnit can find things.
  3. Writing one method at a time and writing a test routine for it is better than throwing up code.
  4. Do NOT PANIC.
  5. More later... bug calls.

Updated:

Switch/case can not be used on strings... need to figure out return types in a way to do this.