Back in the day, I was an RPG programmer (on an AS/400), and I had a co-worker who insisted upon using geographical labels for all of his GOTO targets: GOTO BARCELONA, GOTO TOKYO, etc. Needless to say, maintaining his code took some getting used to.
The worst program I ever worked on
71–80 of 136 posts
Re: The worst program I ever worked on
#72One of my former classmates names everything he can get his hands on after various obscure anime references-- database names, variables, servers, you name it. Once in a blue moon, I'd recognize a function name as being a character or item from one of the few animes I'd seen and after a bit of tortured logic based on the background it almost seemed like a reasonable choice. Needless to say, he does better working on h…
I wonder if he read the Manga guide to databases: http://www.amazon.com/Manga-Guide-Databases-Mana-Takahashi/d...
Re: The worst program I ever worked on
#73The legacy system that I'm working on now has about 20-30 distinct classes/data types that it needs to manage and persist to the database. The previous developer chose to implement all of these different data structures in one uber-table named 'object' and in the application code with one uber-class named 'Thing'. Relationships between 'Things', regardless of meaning or type, are simply dumped into a 'relationship' t…
One of my favorite accessor method names I've run across is 'maybeGetCube()'. The idea was that if it was cached, then it would return the cube, otherwise null. Cube was actually relatively aptly named, it was a big matrix of data BTW. I guess really it wasn't THAT horrible, but the whole idea of 'maybe' doing something in code has always made me chuckle.
http://hackage.haskell.org/packages/archive/base/4.1.0.0/doc...
Re: The worst program I ever worked on
#74I met the guy who wrote this bit that I had to maintain: for(a=0;a What really pissed me off was that he was such a nice guy. He still works a lot. Makes a lot of money. And his customers love him. (No, I don't think they review his code.)
Re: The worst program I ever worked on
#75But the worst I saw was something like this:
struct weapon { #ifdef xxx #include xxx #else ... #endif }
Re: The worst program I ever worked on
#76I met the guy who wrote this bit that I had to maintain: for(a=0;a What really pissed me off was that he was such a nice guy. He still works a lot. Makes a lot of money. And his customers love him. (No, I don't think they review his code.)
Unless there is a lot of creative abuse of operator overloading or macros lurking in there that code really doesn't look too awful compared to some monstrosities I've had to work with.
Re: The worst program I ever worked on
#77I worked with a guy (I won't name the company) who wrote Java code in one, huge, static class as much as possible. In fact, everything was largely in one function too. He decided to name his fields alphabetically. static int a static int b static String c static float d static int e... What, I wondered, would happen when he ran out of letters? Scrolling down further I saw this: static int aa static float ab static St…
I work with a guy, long time ago, who would take code already split into functions and refactor it into one big function. I am not joking here, actually happened.
Bonus points for the fact that they don't let me fix it...
Re: The worst program I ever worked on
#78Re: The worst program I ever worked on
#79The legacy system that I'm working on now has about 20-30 distinct classes/data types that it needs to manage and persist to the database. The previous developer chose to implement all of these different data structures in one uber-table named 'object' and in the application code with one uber-class named 'Thing'. Relationships between 'Things', regardless of meaning or type, are simply dumped into a 'relationship' t…
One of my favorite accessor method names I've run across is 'maybeGetCube()'. The idea was that if it was cached, then it would return the cube, otherwise null. Cube was actually relatively aptly named, it was a big matrix of data BTW. I guess really it wasn't THAT horrible, but the whole idea of 'maybe' doing something in code has always made me chuckle.
Re: The worst program I ever worked on
#80Earlier quoted context omitted.
To really bork up the Java, you need a pattern fanatic. Once you stand working with Handler Adapter Handlers you know you should have taken the other colour pill.
Yes, i remember working for a company (java devs) where at some point we ended up having wrappers around wrappers around wrappers delegating stuff around, factories of factories ... It made your head spin.