Sudoku Solver: 2006-style
College was such a carefree time. I wasn’t jaded, or cynical, or experienced (at least not in the way you’re thinking). I didn’t care about testability, or code coverage, or documentation, or design patterns, or any of the crap that plagues my thoughts whenever I sit down to write code. I would just sit at my computer, fire up ye olde JPad Pro and churn out steaming mounds of code.
I recently found a cool thing I created while in college: a Sudoku solver. It’s nothing new or innovative, but it is coolish looking. And it’s a Java applet! Remember those?
It might just be amusing to look at the HTML source and laugh at my foolish naГЇvete. No doctype? Not quoting HTML attributes? 1998-style mouse rollovers? JPEGs? Not using swing? The futhermucking <applet> tag!? You might have to see it to believe it.
Stay cool over the summer, guys.
PS: on a more up-to-date note, I had to change the name of the isValid() method because it was causing NullPointerExceptions during the panel/applet init phase. I guess the order of method calling changed since 1.4?
PPS: obviously I shouldn’t have been overriding Component.isValid(), but I didn’t know what I was doing. I was only 20!
March 9, 2010
Posted in: java, lulz


Leave a Reply