Archive for the ‘Software Development’ Category

Game programming under 4096 bytes

So this year I decided to give the Java 4K programming contest a try. I’ve been learning some Flash game programming techniques lately, but decided it be fun to try to create a little retro game with the same code size as some of the old classics (Space Invaders, Asteroids).
So far, it looks like [...]

Read the rest of this entry »

‘this’ can’t be null

 
This is the first entry on a category I’d like to name “Code bloopers”. I recently got a message about a piece of code that was throwing a null pointer, it was basically of this form:
synchronized(this.foobar)
This is an easy one. If you think it’s because “this” is null, you have to go back to [...]

Read the rest of this entry »