Showing posts with label code. Show all posts
Showing posts with label code. Show all posts

Wednesday, November 7, 2007

Oh dear

I know that finding yourself laughing at code is a sure sign that you should book yourself into the nearest mental institution as soon as possible, but I had to save this quite frankly incredible offering from the Java forums here. This leaves me in the uncomfortable position of either posting something that will appear as gibberish or having to explain its utter hilarity from my viewpoint, but I'll just hope that people will understand its quite astounding uselessness.

package javaapplication3;
import java.io.*;
public class Main {

public Main() {
}

public static void main(String[] args)throws IOException
{
int count=0;
String w= "today is a short day";
for(int m=0 ; m<w.length()-1 ; m++)
{


count++;
}
System.out.println(count);

}

}

Tuesday, November 6, 2007

One Year

I've now been working here for exactly one year - and it doesn't actually feel anywhere near that long, let me tell you. Maybe it's because I no longer have the handy year-by-year separation that you go through in virtually every other year of your life before finally having to get a real job.

Since arriving on the first day and going straight into C# for the first time on a plugin that someone had half-written and then abandoned, I've been moved up to sitting where the lead consultant used to be, working on the main system that we develop, and being in some way responsible for documents involving complex safety procedures for a rather large petroleum company. (So if half of America disappears under a giant oil slick in the next year - sorry, my fault.)

And even after all this time, I keep on discovering new things buried away in the heart of the system. One of the highlights recently was the comment that read //Probably don't want to do this, but the real question of the day is what on earth a Cacodemon is doing hiding in our install of a set of wiki software under the name "dummy.gif".