Comment On The Dimmer

When Ben started working at a small ASP-based dotcom, there was an intern who was working on a major feature of their application. Her code confusingly cute. Quick example: instead of calling a database table for checklist templates "CLTemplate" and having one row per checklist, she called it "CLManager" and had columns CLItem01 through CLItem100. [expand full text]
« PrevPage 1 | Page 2Next »

Re: The Dimmer

2007-05-16 09:20 • by Will Perdikakis (unregistered)
That poor, poor stack.

Re: The Dimmer

2007-05-16 09:20 • by Mickey (unregistered)
She could have easily squeezed a few more variables in there.

Re: The Dimmer

2007-05-16 09:21 • by J (unregistered)
Type: "Her code confusingly cute." no verb.

Re: The Dimmer

2007-05-16 09:21 • by jkndrkn (unregistered)
Newbie code is inherently wtf-prone.

Re: The Dimmer

2007-05-16 09:22 • by jkndrkn (unregistered)
Newbie code is inherently loaded with WTF material. I would consider this more WTF-worthy if it came from a more seasoned programmer.

Re: The Dimmer

2007-05-16 09:27 • by akatherder
I bet she had fits trying to figure out why her CLItem00 variables were always censored.

Re: The Dimmer

2007-05-16 09:44 • by java.lang.Chris;
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.

Re: The Dimmer

2007-05-16 09:45 • by rbowes
136881 in reply to 136872
akatherder:
I bet she had fits trying to figure out why her CLItem00 variables were always censored.


FORBIDDENem00?

Re: The Dimmer

2007-05-16 09:54 • by gusmao
136884 in reply to 136880
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.

Re: The Dimmer

2007-05-16 09:59 • by Sven (unregistered)
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?

Re: The Dimmer

2007-05-16 10:00 • by Adhominem (unregistered)
Dimming variables in a sub while not setting Option Explicit seems rather ... dim.

I'm sorry, I just had to.

Re: The Dimmer

2007-05-16 10:01 • by Adhominem (unregistered)
136887 in reply to 136885
Sven:

Doesn't whatever crappy language this is have arrays?


It's VB. And yes, it has arrays. And yes, it's crappy.

Re: The Dimmer

2007-05-16 10:14 • by Sch3lp (unregistered)
I bet she was pretty though :)

Re: The Dimmer

2007-05-16 10:22 • by Me too (unregistered)
136891 in reply to 136887
Adhominem:
Sven:

Doesn't whatever crappy language this is have arrays?


It's VB. And yes, it has arrays. And yes, it's crappy.


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."

Re: The Dimmer

2007-05-16 10:40 • by moe (unregistered)
There's a new job opening in training law enforcement (working with target practice). It's a high-turnover industry.



captcha: howdy ... death is nature's way of saying 'howdy'

Re: The Dimmer

2007-05-16 10:45 • by JokerPokerUberSmoker (unregistered)
136898 in reply to 136889
Sch3lp:
I bet she was pretty though :)


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.

Re: The Dimmer

2007-05-16 10:46 • by Paul Harrison (unregistered)
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."

Re: The Dimmer

2007-05-16 10:53 • by Nande! (unregistered)
oh god, i've laughed a lot on this.

Re: The Dimmer

2007-05-16 10:55 • by Mitch (unregistered)
there was an intern who was working on a major feature of their application.


That's the Real WTF.

Re: The Dimmer

2007-05-16 11:08 • by tmountjr
136910 in reply to 136899
Paul Harrison:
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."


Oy. Less sappiness in the workplace, PLZ.

Re: The Dimmer

2007-05-16 11:11 • by Joe Corrison (unregistered)
I love how because she's a woman, it's "cute" code. Sexism is alive and well in the programming industry.

Re: The Dimmer

2007-05-16 11:13 • by Frank (unregistered)
136914 in reply to 136899
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

Re: The Dimmer

2007-05-16 11:16 • by Rich (unregistered)
136917 in reply to 136880
java.lang.Chris;:
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.


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

Re: The Dimmer

2007-05-16 11:26 • by Craig (unregistered)
This code sucks! She must have been hot.

Re: The Dimmer

2007-05-16 11:27 • by mattnaik (unregistered)
wait...ASP has scope?

Re: The Dimmer

2007-05-16 11:40 • by seejay
136934 in reply to 136880
java.lang.Chris;:
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.


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

Re: The Dimmer

2007-05-16 11:53 • by anne (unregistered)
136936 in reply to 136911
Joe Corrison:
I love how because she's a woman, it's "cute" code. Sexism is alive and well in the programming industry.


Agreed. WTF?

FYI, I've never been accused of writing "cute" code.

Re: The Dimmer

2007-05-16 12:27 • by java.lang.Chris;
136951 in reply to 136884
gusmao:
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.


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.

Re: The Dimmer

2007-05-16 12:36 • by ben (unregistered)
In which Alex parlays his usual artlessness into outright misogyny and illustrates why he'll never know the touch of a woman.

Re: The Dimmer

2007-05-16 12:37 • by Henry (unregistered)
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.

Re: The Dimmer

2007-05-16 12:43 • by bstorer
136958 in reply to 136899
Paul Harrison:
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."

You win. We can all go home now, thread's over.

Re: The Dimmer

2007-05-16 12:47 • by my name (unregistered)
Is it really hand-written code?
It looks like result of code generator/GUI designer/etc.

Re: The Dimmer

2007-05-16 12:50 • by Grant Johnson (unregistered)
Three little words:

Fourth Normal Form.


Re: The Dimmer

2007-05-16 13:02 • by Doubts (unregistered)
136969 in reply to 136880
java.lang.Chris;:
I can't think of any other professions where such gross inadequacy is so prevalent.


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.

Re: The Dimmer

2007-05-16 13:19 • by Adam Z (unregistered)
136981 in reply to 136928
mattnaik:

wait...ASP has scope?

Yes. And objects. And the ability to make calls to the O/S.

No, it isn't strongly typed (everything is a Variant), but it is functional.

Re: The Dimmer

2007-05-16 13:24 • by TheReligion2000 (unregistered)
136989 in reply to 136871
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.

Re: The Dimmer

2007-05-16 13:38 • by Spectre
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?

Re: The Dimmer

2007-05-16 13:40 • by Kemp (unregistered)
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*

Re: The Dimmer

2007-05-16 13:40 • by Phat Wednesday (unregistered)
I can't think of any other professions where such gross inadequacy is so prevalent.

Having worked at a bank and seeing the complete lack of attention well compensated people paid to setting the deposit rates correctly! I can safely say that it's prevalent where ever execs can't be bothered to adequately manage their staff because they're too busy jerking each other off in meetings.

I can also safely say: Keep your money in a mason jar

Re: The Dimmer

2007-05-16 13:42 • by Matthew (unregistered)
136998 in reply to 136955
ben:
In which Alex parlays his usual artlessness into outright misogyny and illustrates why he'll never know the touch of a woman.


Since when did a little misogyny scare away the women? Quite to the contrary, the misogynists seem to get all the dames. Bastards.

-matthew

Re: The Dimmer

2007-05-16 14:00 • by akatherder
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.

Re: The Dimmer

2007-05-16 14:12 • by Hyuga (unregistered)
137018 in reply to 136906
Mitch:
there was an intern who was working on a major feature of their application.


That's the Real WTF.


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.

Re: The Dimmer

2007-05-16 14:36 • by nini (unregistered)
How the fsck can that be considered cute?

Re: The Dimmer

2007-05-16 14:37 • by Joseph Newton (unregistered)
Well, Geez... declaring variables is such a nasty chore, you might as well get it all out of the way right away, huh?

Re: The Dimmer

2007-05-16 15:59 • by FredSaw
137057 in reply to 136880
java.lang.Chris;:
I can't think of any other professions where such gross inadequacy is so prevalent.
Paid any attention to the Bush Administration for the past seven years?

Re: The Dimmer

2007-05-16 16:12 • by bobday
137061 in reply to 136955
ben:
In which Alex parlays his usual artlessness into outright misogyny and illustrates why he'll never know the touch of a woman.


Meanwhile you bitch-made gentlemen who start sentences with "In which..." and use words like "parlay" are drowning in a sea of breezies?

Re: The Dimmer

2007-05-16 16:54 • by Danielle S. O. (unregistered)
137081 in reply to 136911

I love how because she's a woman, it's "cute" code. Sexism is alive and well in the programming industry.

LOL...
I'm female, and I say she earned that "cute" title, fair and square ;)

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.

Re: The Dimmer

2007-05-16 17:25 • by Andrew (unregistered)
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

Re: The Dimmer

2007-05-16 19:22 • by luke727
137144 in reply to 136936
anne:
FYI, I've never been accused of writing "cute" code.

That's because your code is slutty.

Re: The Dimmer

2007-05-16 19:25 • by luke727
137145 in reply to 137012
akatherder:
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.

What the fuck is a "clit em"?
« PrevPage 1 | Page 2Next »

Add Comment