- 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
Then how does your alphabet song work?
"Q-R-S, T-U-VED, W-X, Y and ZED"?
Admin
Admin
And can it read \n line endings properly?
Keeping the \r\n nonsense was Microsoft's biggest WTF. Ok, they should have been backwardly compatible and read \r\n endings in existing files correctly, but had no real need to carry that forward into Windows.
Admin
agile means being able to run out the door before anyone else on the project does
Admin
Admin
Let's see here... huge, unmaintainable pile of spaghetti code thrown together by "rockstar" lead developer who didn't think at all but just typed away, handed off to new team member who things "OHMYGAWD what did I get myself into?!"
Standard operating procedure at most businesses, I would think. And THAT is the real WTF.
Admin
Admin
(For what it's worth, she's been nominated twice for an Oscar, so she's not totally obscure. Go check IMDB for more details.
Admin
As opposed to knuckle cracks from rulers and pouring of derision.
Admin
Some typewriters did - the selectrics; not inline on the keyboard, but off to the side.
Admin
Poems! The laddie fancies himself a poet!
Admin
I can't even begin to tell you guys how much I have to deal with crap like this every day. When i came to my new job there was not a single class library, not a single namespace, not a single codebehind file, the database had 100 tables with 0 relationships, 0 null columns... and the biggest WTF is that the guy doesn't believe in source control... or anything else that didn't exist 15 years ago when he learned asp. Having an aspx like this that takes 6 hours is normal at this crappy job.
Admin
When I was 20, I had this long list of attributes I was looking for in a woman. By the time I was 30, I had narrowed the list down to one thing: sane.
Admin
Admin
(Virtual fanboy points to the frist one who corrects me about what sort of excavation they were digging...)
Admin
Americans (and Canadians presumably) sing:
"Flexing vocabulary runs right through me, the alphabet runs right from A to Zee"
The British sing:
"Sometimes vocabulary runs through my head, the alphabet runs right from A to Zed".
Suits girl-groups with members from both sides of the Atlantic...
Admin
Admin
Admin
I have seen more than my share of such projects over the years, sadly. Even in the days of Applesoft BASIC, there were better ways to organize a program than this - at the very least, one could use GOSUB or call out to another program file. I have had many hours of both pleasure (in fixing things) and frustration (that it got that way in the first place) refactoring such code, often at the same time.
Perhaps the worst was a suppose 'operating system' (basically a glorified shell) which a 14-year-old coder-wannabee had posted on DevShed's C Programming board. The main() function was some 750 lines long if memory serves, and while there were in fact some other functions in the mix, it was still dominated by this one function filled with block after block of copy-and-pasted switches. It was in some ways an impressive achievement for such a young coder, but it was also some of the worst code I'd even seen (including programs written in languages such as BrainF*ck and INTERCAL).
Admin
Admin
Canadians say zed.
captcha: paratus .. an experimental parrot.
Admin
Why not just raise it to 2147483648 and have done with it?
Admin
What a coincidence.
I'm 51 now and still looking.
Admin
TRWTF is that both of you think a report cannot take more than 1 day to run.
Admin
Reading this made me want to scream. I feel for you
Admin
Nope, a VB programmer would have used VB code. The "switch" statement does not exist in VB. In VB it is the "Select Case...End Select" block.
I'm glad I don't have to work with anyone who would even think of putting all of the code for an ASP.NET site in the ASPX files.
I don't have to worry about that though. We don't use Windows.
Admin
Aliens from another frame- expecting sane/perfect, whether male or female, here?
Admin
Hey, this sounds like that five-figure system that a certain company bought, which was to be done in that new-fangled C# .NET language.
Except it was in VB (first FAIL), sticking code in the aspx instead of using CodeBehind (second FAIL) and prone to SQL Injection (third and worst FAIL). Oh, and unlike this "brillant" code, it didn't even close the SQL connections. This last problem, coupled with crappy .NET/ODBC connection management meant that the site would bring down both IIS and SQL Server after the 10th concurrent user tried to load the main site.
Admin
My mother was a queen, my dad I've never seen, I was never meant to be.
Plus we don't have a modem (ADSL).
Admin
I hate to break it to you so suddenly, as it might shock you, but ADSL... requires a modem, in fact. Honest.
And if you've meant that you had no modem at all, ADSl included, then, well, I can lend you one just for this occasion.)
Admin
I inherited a code base maybe not quite as bad as the one from this story, but close. I actually looked forward to refactoring it (some fetish with creating order in chaos).
The only problem: the original 'developer' was still around and he actually thought copy/pasting blocks of code around and putting hundreds of lines of code between the body and head tag in some page was actually a good idea.
For the first 4 years orso, I was only fighting his way of doing things and had to keep defending myself against the manager for 'upsetting' this original developer. At the end this guy quit, new (sane) people were hired who also declared the code was an utter mess, and we finally started with some real refactoring. Two painful years later, the code finally started to look relatively sane.
The real WTF; I didn't quit the first day after seeing what utter pile of crap the code was. The only plus side, at the end the work was okay and challenging, but till this day I can't understand what I was thinking those first four years.
Admin
For all the complaints about terrible coders who would write a mess like this one, I'm guessing the previous coders never wanted to write it that way. They got stuck just like Dan did here, only allowed enough time to make a minor adjustment to the chaos but not enough time to fix it. A long enough series of these minor-adjustment-only updates is what turned it into the mess Dan found. The story even mentions that the other developers know it needs the rewriting that nobody has been allowed to do:
Admin
Yeah I dropped the ball on that one.
Admin
In JSP files one can do the exact same sad thing. That's why Facelets is so great. You can't put code in them, only UI components, so you'll lose at least one class of idiots. Sadly, there is no limit to how many idiots there are on this world and how many ways people can come up with to do idiot things.
Admin
Admin
When I was 20 my list only included tits and ass. Then the mental part got to me and I found someone actually sane. The best part, her job requires regular psychological tests to make sure she's sane enough to do her job (police dispatch). I think I'll keep her until they say otherwise.
Admin
Admin
A program that runs and holds database connections for hours does not get the job done. How many other projects can't use the database, or disk, resources while this thing hogs them?
At some point productivity becomes more than a buzzword.
Admin
I have buzzworded your productivity...Pray I don't buzzword it any further.
Admin
Actually, a spreadsheet can be a database. Why not? If you have an app that needs simple tabular data, a spreadsheet is a perfectly acceptable database. I've seen minute apps storing a few dozen records in Oracle and DB2 before now. Excel might not scale like a relational DBMS but if you don't need to scale, then why try.
Admin
As a self-taught programmer, I can assure you that college has NOTHING whatsoever to do with whether or not a programmer will produce utter shit like this.
We just had to let go a fresh out-of-college programmer with a few years of work experience because he couldn't keep up with the self-taught developers here. We have been laughing and sighing at his code for weeks. As I refactor and basically suck the stupid out of his entire codebase, I send about three internal "Hey, look at this WTF" emails every day.
Samples from today's emails:
And that is just the tip of the iceberg. I have seen vast numbers of one-dimensional arrays (one per field!) for storing record sets, which take seconds to fill and then end up not getting used anywhere, in a three-page-long function. I have seen classes import other classes from the same project - for no reason. DataAdapters used for returning single scalars from a query. And that's not even a tenth of the WTFery I saw today.
If college helped you, I'm glad. But I suspect that programming talent is inborn.
Admin
I think he meant to say that it's not a relational database.
Admin
And then five years later, when it has had to scale, you wind up having to use a real database anyway.
Admin
I'm currently refactoring a large Excel/VBA program that is built entirely around subs operating on global variables and arrays. Neither the subs nor the variables are particularly easy to understand. Knock yourself out.
Actually, can you knock me out too while you're at it? It would hurt my brain less.
Admin
Just go ahead and create a mysql database, pleeeeease! What does it take, about 30 seconds? Go on, you can do it. Or you don't deserve to work in IT.
Admin
Admin
HFS, time to let the ship sink. Today I spent 5 (five) hours time figuring out and explaining a garbage system/process and finally sending a one line 'this is why' (its fu'ing sh't) response. Sink'em all; walk out; leave; quit; just do it.
Rant over, now to catch my train...
Admin
Okay, to all of you blasting the "rock-star" coder away, here's how it went:
I came in, inherited this garbage from the Boss's son. I was constantly too busy with the other 18 "mission critical" projects they were throwing me on while I was trying to come up with a proper analysis of this horror. In order to keep the users quiet while I finished the other projects, I tossed in a higher timeout and left a comment that any half-wit could pick up and "fix" in a minute or less before getting to the real refactoring. I never got a chance to re-visit this before I left for greener pastures. Believe me when I say: any company in the world is a better place to work...
Admin
You waited until 30 to do that? I had two "mental hospital grade" crazy ex's and my only attribute dropped to sane at the tender age of 21 :P
Admin
"To err is human, but to really foul things up you need a computer." -Paul Ehrlich
In most countries you'll need a license to practise medical science...Hesus Conzales J, not the other way. I'm agnostic..