What descriptive variable names (or lack of) did you use in the old days?
Hi,
I was looking back through some old code of mine and laughing at how absurd it looked. Does anyone else have any similar experiences to share?
I found my variable names rather amusing. Rather than name a variable "iceGridLocator" (for the Ice Grid Locator), which I do now, I had the dumbest variable names. Check out the handler for this method:
publicstatic Individual createIndividual(OntModel m, String URI, OntClass c,boolean im, String pic,boolean co, StringBuffer blarg)
I must say, "StringBuffer blarg" is probably the worst one.
Not to mention I wasn't big into the whole concept of "OOP" back then, and did crazy things like create 500+ different StringBuffers in one class to hold information and such.
Does anyone have any similar, amusing coding stories?
[951 byte] By [
Djaunla] at [2007-11-27 8:19:45]

I don't have it anymore, but way back in the day I wrote an applet using all custom painting. Not a single component anywhere. I spent days trying to center a string on the screen, getting it's FontMetrics, subtracting half the string width from half the screen width, etc. I could have just stuck a text field in and been done with it.
Looking back I realize it's probably because one of the first things they taught us in java 101 was how to paint on an applet, but never taught us how to use the standard gui components. I guess that story doesn't really have anything to do with variable names though. :)
> I needed some information out of an object, and the
> only way to get it was to parse its toString string.
> Wait, that was last week ;-)
Oh god, I did that once, I kept trying to count how many characters into the string the info I needed was, and getting pissed when it wasn't consistent. I wish I could remember what I was actually trying to do.
> > I needed some information out of an object, and the
> > only way to get it was to parse its toString string.
> > Wait, that was last week ;-)
>
> Whoa, better hope that toString method doesn't change!
I know. It's a hack, pure and simple, but the Friday beer cart was
rolling by and I needed to slap things together pronto.