Jakub Korab
Tech, Opinion, and Doing Stuff

How crap is your code?

December 18th, 2007

Now you can find out with Crap4J. Can wait to run some projects through it. I’m curious as to what the code quality looks like on some of the larger Open Source projects (Dom4J looks pretty good though).

I love stats. I don’t know what it is. They’re like horoscopes, or something. Pinch of salt and all that, but you can’t not read them. Even better with diagrams :)


Filed under: java, testing | No Tag
No Tag
December 18th, 2007 19:50:00

Unit testing made simpler(!)

December 18th, 2007

What is simpler than writing a JUnit test? Getting someone else to write them for you! The really nice people at Agitar Software have developed a couple of tools as part of their “No Java Class Left Behind” programme, that will write JUnit tests for your existing code to prove that it works as expected. This sort of testing is known as characterization testing, and is useful if someone gives you a big steamy pile of untested code that you have to make sure won’t break when you start refactoring it (I have a great story about that, but you need to buy me a beer first).

They have a commercial product called AgitarOne that is worth checking out, which runs on your intranet and you can do a whole bunch of stuff in, but they also have a free version called JUnit Factory. You can either upload your code to them via your browser or via an Eclipse plugin. Code In, Tests Out! Superb!

It’s not a substitute for development time testing, but still a great tool for your professional arsenal. How cool will you look when you put a test suite around that nonsense you have been given to work against ;)

There’s a great interview with Alberto Savoia from Agitar on the Business of Software conference site that goes into the how’s and why’s.


Filed under: java, testing | No Tag
No Tag
December 18th, 2007 19:30:00

Sometimes it is easy to forget

December 11th, 2007

I have been meaning to post lately on everything from an insight that I had into systems architecture when looking at the Sagrada Familia in Barcelona, to why JRuby is barking up the wrong tree. But I have been otherwise occupied :( So here’s what I term a Moment:


Stay tuned.


Filed under: none | No Tag
No Tag
December 11th, 2007 00:42:00

Russian Politics in the Crystal Ball

December 01st, 2007

Tomorrow the Russians go to the polls to vote for the Duma, the Russian parliament. Vladimir Putin is not standing for the presidency next time around as his tenure is legaly limited by the constitution to two terms, and will instead be putting himself forward as a parliamentary candidate. Here’s my prediction for the near future:
- Mr. Putin’s party gets into power, at which point he is promptly installed as Prime Minister
- the Russian constitution is rewritten such that the power lies with the Duma where members are not term limited, and the president is relegated to signing laws and shaking hands.

The result? Things change and everything stays the same. Now that it’s in writing, let’s all sit back and watch events unfold.


Filed under: politics | No Tag
No Tag
December 01st, 2007 14:31:00