Pages

Thursday, November 30, 2006

Yet Another Coding Oversight

So I’ve been writing a fair bit of code lately. But I haven’t done it in a while.

I wrote this beautiful bug:
[java]
checkItem = result.get(item.getNumber());
if(checkItem == null)
{
result.put(item.getNumber(), new ViewItem(item));
}
checkItem.getDetails().add(new DetailsView(details));

No need to know what Items and Details really are. You can think of items having details if you need to know: let’s see how long it takes someone to spot it.

-= Comments
1. Zooba | November 29th, 2006 at 2:33 pm
The last line will always (attempt to) execute regardless of the check for null above it.

Since I don’t know what the intention is I can’t suggest a solution. I’ll also avoid starting a ‘why not do it this way’ discussion

Monday, November 20, 2006

Tis been a while since I bought a new game

.. and today I bought two.

Half Life 2 Episode 1. Installed at 3:00pm, and have just finished playing it (Midnight) (9 hours minus tea and some time to help my dad). Fantastic game. Zombie killing. More Zombie killing. General puzzels to break up the Zombie killing. Watch Zombies take out combine (and vice versa) and clean up the rest. There are also a few areas where you get to admire all of the scenery which takes your breathe away at 1920×1200 with all the perty features turned up.

The other game is Lego Star Wars 2. I’m hoping that it is as good as the first and plan on finishing most of the levels with my brother. It should take a little longer than a day to complete though.

-= Comments
1. Zooba | November 19th, 2006 at 3:12 pm
I hate finishing games that quickly. That’s why I buy my games from EB; if I finish it too quickly I can return it and get another one

2. pimaster | November 19th, 2006 at 9:00 pm
Episode 1 was meant to have a play time of around 5 hours. I haven’t been dissapointed and I don’t know if you can return a game that is activated on steam (depending on how brain dead the cashier is) as the game is tied to my account forever.

And just out of coincedence, I did buy it from EB