- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
I have no idea why this is supposed to be funny/odd/amusing.
Or is that the point?
Admin
Maybe I'm clueless too, but I think the point is that all the field names in that struct are completely meaningless. Unless there's additional documentation, how the hell is anyone supposed to know what each field is for? Not to mention the fact that the field names are in two columns - is that supposed to indicate some relationship between the fields, or was the coder just trying to save space?
And, yes, I think Jökull (Glacier) is an awesome name too. We need names like that in English.
Admin
I guess an explanation is in order then :)
The thing was that i was supposed to port this C code (and make some additions to the program as well). Of course what followed was a couple of "weeks of hell" where i had to literally make my way through lines and lines of this completely undocumented spaghetti C code just to figure out what each of these variables meant and what they were there for. No comments, no explanations, no nothing! Just lots of 2-letter variables with apparently no meaning behind their names.
Needless to say, i didn't enjoy this one very much :)
P.S.
The struct was just split into two columns before it was posted to save some space.
Admin
This is what happens when you let dinosaurs do some code. I recomend leaving all the coding to monkeys with hats. I have three of them at my office, I just sit back and let them do all the work ;)
Admin
the guy that submitted this is probably the idiot.
If it is part of a transaction then it would make perfect sense as the different named parts of a record created in the old style that c was used for all the time.
if you have the doc or the context of the rest of the program then this would make plenty of sense.
I bet that if you add up all the characters that they even line up on a boundary.
It adds up to 560 which is the upper limit on some old piece of crap computer that this was probably written for 20 years ago. Its probably been ported 10 times by people that didn't care and just through out the documentation.
Admin
Erm, that's "Threw" out. Ouch.
Better check your spelling before throughing those 'idiot' comments about!
Admin
trwtf is that i'm reading this in 2011. first ever featured article on this site and its totally crap!
Admin
TRTRWTF is that it's not the first article. You found the first month (May 2004), read the topmost article (27 May 2004) and assumed it was the first one. The first one is actually at the bottom of the list and is dated 17 May 2004.
TRTRTRWTF is that no one will probably ever read this pointless comment that I'm wasting precious moments of my life typing.
blah blah blah blah blah blah blah blah blah blah blah
Admin
TRTRTRTRWTF is that I bothered to check out the comments on such an old article and that I actually take the time to reply to a comment that the author didn't think anyone would read, just to prove him wrong.