Ika's Weblog XML
Architecting the Thought.

After a very painful data-migration process

The blog has moved to a new location: www.freshblurbs.com

Please, kindly update your RSS Reader with the new URL:
http://www.freshblurbs.com/rss.xml

I apologize for the temporary inconvenience but in the long run the new server is going to be much more featue-rich and comfortable, benefiting both me and my kind readers.

03/01/05

Error-free code from thedailyWTF

One of my recent assignments has been to come up with a presentation for our software engineers about the benefits of using unit-testing in their code and demonstrating how it should be done properly. Easier said than done. How can you explain, to inherently, professionally lazy people, in an hour and 20-30 pages of Powerpoint (or Apple Keynote :P) things that are mostly intuitive and come only with experience, as well as from reading a whole bunch of books + examples and then doing it every day, for each piece of code?

It's been a real challenge and I was still thinking if I should give up, when I ran into this wonderful piece of code on TheDailyWTF:



and everything became clear! Hell with JUnit, forget about Cactus, who cares about Mock Objects? God bless try-catch.

My presentation is going to be just one page with the screenshot of this code and a large, stupid smile to go with it.

Seriously, you can not write more error-proof code, can you? ;)

:)

posted by irakli, 05:47 | link | comments


Copyright (C). Irakli Nadareishvili. Picktek Ltd.