A friend of mine ran into these two Java code samples in code she has to work with. The first example is one I've encountered before in intern code. The second example is so bad that it's nearly optimally bad -- it's hard to make any line worse than it already is.
Example 1:
Runtime.getRuntime().exec("java Foo");
Example 2:
while (true) {
int i = 50;
if (i == 0) {
break;
}
i++;
}





Comments (2)
I was wondering why my comments never appeared! I had simply noted, a few weeks ago, that I have been watching a lot of Tivoed Mythbusters for when you're on the east coast this October. Also, what was the solution to the 0,1,2,270 ... puzzle?
Posted by novak | June 3, 2005 7:20 AM
Posted on June 3, 2005 07:20
I had been thinking, "Man, I must be writing a bunch o' crap because this is the longest period I've gone with no comments" :).
Also, it's a good thing I have a TiVo myself, because if there was a new episode of MythBusters that week in October, I might not have been able to make the trip.
Solution to the number puzzle: http://kwc.org/blahg/2005/06/solution.html
Posted by kwc | June 3, 2005 8:41 AM
Posted on June 3, 2005 08:41