- 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
Admin
You sir win teh internets
Admin
=>You see a small path to the West and to the East. North is a bridge with a goat and a troll on it. What do you want to do?
Admin
This is just an example of one of the more advanced design patterns.... The Batwing
Admin
A little bit of work in proper indentation makes this much more workable..
Perhaps some macros (using a preprocessor like m4) would be of use.
Legacy software can be fun, because there can be so many opportunities to improve (refactor) it.
Admin
You lost me at For Each LVReqingContItem In Me.ListViewReqingCont.ListItems
I mean you had me at hello. Sorry.
Admin
Mod parent up :-). Deserves to be a "featured" comment.
Admin
Naah, real ascii art wins a C code contest. Didn't they have a flight simulator formatted to look like an airplane?
Admin
Admin
O(n^18) ?
Admin
Uniqueness constraint? Maybe even a Primary Key?
Admin
TRWTF [TM] is that he used spaces instead of tabs.
Admin
Admin
@steenbergh: Can you prove that the loop isn't infinite?
Admin
I can.
Admin
Well, the DWTF has just added a phrase to our lexicon here. A developer was commenting about how his test case had to essentially matrix the inputs to a function. My response? "Five is not eighteen."
Admin
Ack! My Eyes!
Admin
The real WTF is the fact that none of you folks realized that this code is extremely fast most of the time. What do you think the chances are that normally at least one list is empty...
I'm sure there was this one day when the server locked up for hours, but they never figured out why, and couldn't reproduce it after they rebooted.
Or perhaps just one customer had repeated lock ups... (but that problem solved itself when they stopped being a customer)
Admin
Actually, we were clued into that fact because the code in question did NOT take days to run. It does not matter. The code is an unmaintainable piece of ****, and whomever is responsible for it deserves punishment.
The cool thing about this place is that if you actually bother to read the comments, there are usually some really good pointers made about what makes bad code so bad. This article has a couple.
Admin
I always indent by three spaces. Of course, I always try to write sensible code, so yeah...
Admin
The interesting question is whether it was ever executed. You could probably just dump the thing.