- 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
That poor, poor stack.
Admin
She could have easily squeezed a few more variables in there.
Admin
Type: "Her code confusingly cute." no verb.
Admin
Newbie code is inherently wtf-prone.
Admin
Newbie code is inherently loaded with WTF material. I would consider this more WTF-worthy if it came from a more seasoned programmer.
Admin
I bet she had fits trying to figure out why her CLItem00 variables were always censored.
Admin
To all you saying "it's newbie code" as though that makes it alright to produce rubbish like this, can we just remember that by the time a programmer makes it into the workplace (even as an intern) he or she should be able to program competently. I can't think of any other professions where such gross inadequacy is so prevalent.
Admin
FORBIDDENem00?
Admin
Not true. Interns are still students, and the goal of internship is to give them some practical experience and help then learn something. Even in internships where programming skills are required, mistakes and bad code are largely expected. That's why their work is closely supervised and they usually don't get the most important tasks.
And if you can't think about any other profession where this happens, you would be shocked to know how many mistakes medicine interns fresh out of college can make.
Admin
I like how she zero extends 01 to 09, then has 100 as her last entry. And the "<space>,<space>" between each one to make it even longer is a nice touch. Amateur at best.
Doesn't whatever crappy language this is have arrays?
Admin
Dimming variables in a sub while not setting Option Explicit seems rather ... dim.
I'm sorry, I just had to.
Admin
It's VB. And yes, it has arrays. And yes, it's crappy.
Admin
I bet she was pretty though :)
Admin
Actually, VBScript. But yes, it too has arrays.
For those who don't know, VB/VBScript, by default (pre.NET that is) could be written without declaring variables. The Option Explicit command at the top of a module/class/.asp forces the compiler to require the declarations. The declarations are technically called Diminsioning, thus the shortened keyword of Dim.
The more I work in other languages, the more I agree with the meme of "The Real WTF is using VB."
Admin
There's a new job opening in training law enforcement (working with target practice). It's a high-turnover industry.
[image]captcha: howdy ... death is nature's way of saying 'howdy'
Admin
And why not! Hiring women on the basis of their 'loveliness' is always a good policy in my book. I feel they brighten up the workplace considerably.
Now regarding VB ... what an awful pile of crap.
Admin
Hur hur they can't code but maybe you can have sex with them. WTF
In the interests of equality, I want to see some prettyboy stories on this site too.
"His long golden locks bobbed as he eagerly coded the subroutine. A look of puzzlement spread across his innocent face as he realized something was wrong. The recursion was not ending! Oh if only our love, like that subroutine, would recurse ever deeper."
Admin
oh god, i've laughed a lot on this.
Admin
That's the Real WTF.
Admin
Oy. Less sappiness in the workplace, PLZ.
Admin
I love how because she's a woman, it's "cute" code. Sexism is alive and well in the programming industry.
Admin
Eek... that's starting to sound like the WTF Romance Novel.
"... and then a pop-up for a sex website showed up on his screen. He couldn't help but click the ample bosoms before his eyes..."
captcha: pirates - arr
Admin
WTF? I had a friend who started as a butcher at a slaughterhouse and they wouldn't even let him hold a knife for weeks.
What I think is the case is that there aren't many other professions where you are thrown in at the deep end with little to no on-the-job training or apprenticeship. Even a bricklayer will spend most of his startup days carting rubbish around the site and making coffee.
Rich
Admin
This code sucks! She must have been hot.
Admin
wait...ASP has scope?
Admin
I agree with this sentiment.
True, interns and newbie code do happen but it shouldn't be so horrific. Writing something like this shows a total lack of some pretty basic concepts such as giving sensible variable names and arrays... concepts that you would learn in first year programming class.
I wrote stuff like this in first year. It was something like: datapoint1 datapoint2 datapoint3 ...etc
After I got a sound spanking from the person who marked it ("haven't you ever heard of arrays??", "why yes, but I had a massive brain fart obviously") I never made a mistake quite like that again. Sure, other WTFs, but not completely avoiding basic tools learned in highschool and first year programming classes.
-- Seejay
Admin
Agreed. WTF?
FYI, I've never been accused of writing "cute" code.
Admin
Interns are part way through their college course - they've done at least one year of a degree. If they don't know what an array is before they've started the course I'd be worried. The fact that that this one didn't know after at least a year at university suggests that those running the course are incomptetent for not dropping her back a year after flunking the first year exams.
Admin
In which Alex parlays his usual artlessness into outright misogyny and illustrates why he'll never know the touch of a woman.
Admin
Isn't this just a little bit sexist with references to "cute" etc? If it had been a male intern I doubt the code would have been called cute rather than just stupid.
Admin
Admin
Is it really hand-written code? It looks like result of code generator/GUI designer/etc.
Admin
Three little words:
Fourth Normal Form.
Admin
Pretty much all of them. Most people don't know what they're doing, and have bullshitted their way through school. The only reason they can get away with it is because since so many others are incompetent around them. It's the rare environment where incompetence is not tolerated.
Admin
No, it isn't strongly typed (everything is a Variant), but it is functional.
Admin
I am sorry but I have seen such database design from many senior coders. They just don't have a clue how databases work of how to use a table efficiently.
Admin
Let me propose the following theorem: once a CodeSOD appears written in a language which name contains words 'Visual' and 'Basic', some smartass will pop up and say: "The real WTF is that they're using VB". Or: "I hate VB". Or: "VB just sucks". Or: "This language is a WTF in itself".
I mean, seriously, chill off. We already know that every Kool Über-geek's holy duty is to hate VB. It still doesn't occur to me how can people hate a programming language. My guess — it's just trendy.
Since this page has .aspx extension and if I've not missed something, there's a quite high probability that this site is written in VB. I hope that upon realizing this the haters will quit in disgust.
I'm sick of these hate-fests. People, can't you just tell wooden table jokes instead? Rant over. Bite me.
Oh, and P.S. How could that SOD work? It would work only if you insert a colon or a newline after 'sub dimVars' and place all the declarations on a very long single line, which would be a rather spectacular WTF. Did Alex intentionally remove all newlines and line continuations for comical effect?
Admin
For those complaining about the "obvious" sexism in the story... since when has a post ever been totally serious?
Waits for the patented "pretend my response was sarcasm" method of defense
Admin
I can also safely say: Keep your money in a mason jar
Admin
Since when did a little misogyny scare away the women? Quite to the contrary, the misogynists seem to get all the dames. Bastards.
-matthew
Admin
I thought the "cute" comment was a play on the CLItems looking like cutems (if you smush the L and i together to make a U).
Maybe it is just clitems.
Admin
Story of my life. As an intern at my company last summer, I spent most of the summer developing most of what was considered a crucial feature. There was a little work left to be done on it by the time I left to go back to school, but for the most part it was usable. But then, after all my work, it was decided not to be used, since an intern's work couldn't be trusted. God forbid they at least have someone review the code (well, there wouldn't have been anyone qualified to do so, as I'm also one of the only people around here who knows Python).
Now that I'm out of school they've hired me full time, and my main job is to implement the very feature I implemented over the summer. Some of it can be reused, but a lot of it can't due to architecture changes since I last worked on it.
Admin
How the fsck can that be considered cute?
Admin
Well, Geez... declaring variables is such a nasty chore, you might as well get it all out of the way right away, huh?
Admin
Admin
Admin
No collegue of mine has ever, ever considered my code even remotely cute. I may have earned "buggy" , "over designed", "over simplistic", and plain old "WTF" ... but never "cute".
I used the "cute" term myself on some of my half-baked interns (their code, that is), regardless of gender. Definitely patronizing, but I can't help it, they really are cute, lost puppy style.
None of them would ever produce a masterpiece such as that Dimmer's, though. Not even students.
Admin
Of course, this begs the question: Who's the moron that assigned an intern to work on a major feature. Sounds like a management issue... :P
Andrew http://www.InvestorReviewPodcast.com
Admin
Admin