• (cs)
    The Article:
    "Stephen’s company had a history of selecting new employees from their small of fresh interns"
    'Round here, we have a large of fresh interns.
  • (cs)

    Wow.

    Reminds me of the fresh out of school Uber .NET programmer we hired.

  • EngleBart (unregistered)

    Would the & at the end of the first mysql command cause exec to launch as a background task?

    Nice race condition...

    I also thought that WTF policy was not to bash newbie code? I would count a summer intern as a newb.

  • (cs) in reply to EngleBart
    EngleBart:
    Would the & at the end of the first mysql command cause exec to launch as a background task?

    Nice race condition...

    I also thought that WTF policy was not to bash newbie code? I would count a summer intern as a newb.

    Shhhh. It's a new kind of WTF where they see how many devs will pick on beginners. Looks like you're number one.

  • (cs)

    So... the kid wrote a stand alone PHP script to import users back into the database they came from? His lack of programming skills are the least of his problems, he seems to be missing a basic grasp of the task he was asked to perform. I would suggest that this isn't a WTF because it's not nice to pick on the handicapped.

  • (cs) in reply to Medezark
    Medezark:
    Wow.

    Reminds me of the fresh out of school Uber .NET programmer we hired.

    It should be company policy never to hire anyone who uses the word "Uber" either on the resume or in the interview.

  • (cs) in reply to EngleBart
    EngleBart:
    Would the & at the end of the first mysql command cause exec to launch as a background task?

    Nice race condition...

    Not by itself in PHP, but since he redirects the output to a file as well, it will be run in parallel.

  • (cs) in reply to Jaime
    Jaime:
    So... the kid wrote a stand alone PHP script to import users back into the database they came from?
    Even better. He wrote a standalone PHP script that reads all users in the locale from the database, writes them to a file, reads the file back in, writes them out to 26 separate files based on the first letter of each name, sorts each file individually, and then he imports the users back into the database they came from.

    There's probably a hundred different ways he could optimize this sucker, and it'd still be wrong.

  • Mark (unregistered) in reply to EngleBart
    EngleBart:

    I also thought that WTF policy was not to bash newbie code? I would count a summer intern as a newb.

    My guess is this may have something to do with it: "several years in a well-known computer science program ... He did have a 3.9 average after all."

  • Barrett Jacobsen (unregistered) in reply to EngleBart
    EngleBart:
    Would the & at the end of the first mysql command cause exec to launch as a background task?

    Nice race condition...

    So TRWTF is that he didn't do a if (Bool.FILE_NOT_FOUND)?

  • forgottenlord (unregistered)

    Never trust the guys with a 3.9 average, especially the ones who self-confidently claim that this is proof they know what they're doing. More often than not, their 3.9 average only means they're A-type personalities, not actually skilled programmers.

  • J (unregistered) in reply to Mark
    My guess is this may have something to do with it: "several years in a well-known computer science program ... He did have a 3.9 average after all."

    'newb' is 'newb' no matter what the educational background is.

  • (cs) in reply to Mark
    Mark:
    EngleBart:

    I also thought that WTF policy was not to bash newbie code? I would count a summer intern as a newb.

    My guess is this may have something to do with it: "several years in a well-known computer science program ... He did have a 3.9 average after all."

    It sounds like this intern didn't "have his listening ears on". He seems to have missed (a) different locales have different character sets and sort orders, and (b) the SQL SELECT ... ORDERED BY knows how to sort things; Stephen specifically mentioned these...

  • drusi (unregistered)

    TRWTF is that this isn't at all surprising. You'd think college professors would think of "write code that doesn't suck!" as a concept they should teach, but nooooooo.

  • (cs) in reply to Mark
    Mark:
    EngleBart:

    I also thought that WTF policy was not to bash newbie code? I would count a summer intern as a newb.

    My guess is this may have something to do with it: "several years in a well-known computer science program ... He did have a 3.9 average after all."

    Not to mention the code isn't really the problem. This intern, who claimed he was "on top of this one," couldn't even follow simple instructions. Stephen made it very clear how he needed to sort the data. In other words, Stephen already gave him the answer. But Nathan took the answer, looked at it, said "wow, that's neat", then set it aside and proceeded to write this horror novel instead.

  • wtf (unregistered) in reply to boog
    boog:
    Medezark:
    Wow.

    Reminds me of the fresh out of school Uber .NET programmer we hired.

    It should be company policy never to hire anyone who uses the word "Uber" either on the resume or in the interview.

    Also, wie soll ich dann arbeit finden? Man findet "uber" uberall! (umlaut, andererseits, finde ich nicht - verdammte work machine...)

  • Mike (unregistered)

    //Open 26 comments to post to

  • Jan (unregistered)

    What language is this? It's not PHP.

  • Annonymous (unregistered)

    this is exactly why I never went to college, and yet for some reason I'm sought after more than programmers of equivalent experience to me who did.

  • Jan (unregistered) in reply to Jan
    Jan:
    What language is this? It's not PHP.
    Arghh my bad, it is PHP. Guess I'll go pour myself another coffee then ...
  • tekHedd (unregistered)

    OK, so maybe it's a newb error and not really a completely fair WTF, but... it starts out kind of OK. You can see that, yes, he's going to query for each locale, OK I guess this makes a kind of sense. And then we open a file for each, um, wait a minute, uh...

    The slowly growing horror as you progress through the code is what makes this priceless.

  • Mike (unregistered) in reply to boog
    boog:
    Medezark:
    Wow.

    Reminds me of the fresh out of school Uber .NET programmer we hired.

    It should be company policy never to hire anyone who uses the word "Uber" either on the resume or in the interview.

    I would never hire a Dead Kennedys fan either.

  • Bad English (unregistered)

    If Stephen doesn't know how to guide an intern to a better solution, maybe he should stop working with interns.

  • Jeff (unregistered)

    Reading thru this code was like watching the original Terminator... just when you think things are as bad as they can possibly get, they get worse! This is the first WTF in a while that actually made me say "No!" ... "He didn't" ... "What???!!" ... "Ohmygod"

    Oh, and it's not PHP. It's VB. Must be. Amirite guys?

  • Stark (unregistered)

    TRWTF is Stephen's lack of management and/or teamwork skills. He should have taken the time to step Nathan through how to do it correctly after the task took too long. Stephen sounds like an elitist prick who can't communicate. I wouldn't want to work with or for him.

  • Preying on the weak (unregistered)

    Yeah I'm going to cry foal on this one. A junior in college and he's being blasted on this site? I'm fresh out of college and the 'old guard' is getting on my nerves with all the high and mighty attitude.

    You were perfect when you started working? That's what internships are for.

  • (cs)

    #1 - I started as an intern - fresh out of high school (in 1977 having a few years of programming experience at the age of 17 on ini-computers was extremely rare.

    #2 - I have encouraged every company I have been involved with (and as the owner of a consulting firm, that is quite a few) to setup an internship.

    With those disclaimers out of the way.....

    If there is a problem with anything (well at least in the technical realm) that the intern does, it is the responsibility of the person acting as the mentor.

    Remember the purpose of an internship is to provide on the job experience and training. If any actual work gets done by the intern, then that is a bonus.

    The TRWTF here is someone who is not working with the intern, looking at their approach and progress and providing guidance at least 2 or 3 times a day.

  • Preying on the weak (unregistered) in reply to Preying on the weak

    correction: foul, !foal

  • (cs) in reply to Preying on the weak
    Preying on the weak:
    Yeah I'm going to cry foal on this one. A junior in college and he's being blasted on this site? I'm fresh out of college and the 'old guard' is getting on my nerves with all the high and mighty attitude.

    You were perfect when you started working? That's what internships are for.

    Will a unicorn foal do? [image]
  • (cs) in reply to Jeff
    Jeff:
    Oh, and it's not PHP. It's VB. Must be. Amirite guys?
    No, it's PHP. He first built an entire VB to PHP systax converter and imported that into the PHP environment he was working in. That took the first half of the weekend. (He just converted the COBAL to Java framework he'd developed as a Junior)

    He was a 3.9 GPA student.

    MArk B.

  • gil (unregistered)

    So for japanese (where none of the words start with a, b, c, etc., everything would be written to the same file (handleZ)?

    Also, what's the point of multiple files, why not sort the original file with the same sort command?

  • gil (unregistered) in reply to Preying on the weak
    Preying on the weak:
    A junior in college and he's being blasted on this site?
    I'd say the fact that he is a junior in college doesn't matter. If he convinced people he is qualified enough to perform paid work, he should be fair game.
    Preying on the weak:
    You were perfect when you started working?
    I wasn't, but there is a difference between not being perfect and writing that.
  • gil (unregistered) in reply to TheCPUWizard
    TheCPUWizard:
    Remember the purpose of an internship is to provide on the job experience and training. If any actual work gets done by the intern, then that is a bonus.
    I guess it varies by company. I fully believe that some companies set up internships for the purpose you mentioned, but there are also a lot of companies that do expect interns to be reasonably qualified and do some reasonable work.
  • (cs) in reply to SteamBoat

    I've had several interns myself over the years, I can say that they never get work that the company needs, its usually a small laundry list of things "that would be nice to do if I had the time" I start them off with the easiest one on the list and give them space. This is only to begin, I want to see how they approach a task. The tasks are well defined and sufficiently small to grasp the entire process. That said more times than not I'm ridiculously dissapointed. I once had a young woman who was 2 weeks from finishing a masters in comp sci and she couldn't write a basic sql query, didn't have any concept of actually putting together code practically and expected we'd hire her for 100k when the internship was over.

    Back to the point, if they do an awful job that's fine they are interns, but I think there is a more important observation. You don't have to have any programming skill to see a problem, evaluate possible solutions, then select a reasonable approach. Especially when someone gives you a list of important things to keep in mind (eg order by) So the wtf is not the code but the failure to listen and select a better approach.

    my 2c

  • (cs) in reply to frits
    frits:
    The Article:
    "Stephen’s company had a history of selecting new employees from their small of fresh interns"
    'Round here, we have a large of fresh interns.
    Sir Roderick: "Are these the interns?" Sir Ayelsbourne: "Aye, and small of fresh they are!"
  • anon (unregistered) in reply to wtf
    wtf:
    boog:
    Medezark:
    Wow.

    Reminds me of the fresh out of school Uber .NET programmer we hired.

    It should be company policy never to hire anyone who uses the word "Uber" either on the resume or in the interview.

    Also, wie soll ich dann arbeit finden? Man findet "uber" uberall! (umlaut, andererseits, finde ich nicht - verdammte work machine...)

    'ü' is Alt + 0252 in most machines.

  • PRMan (unregistered) in reply to gil
    gil:
    So for japanese (where none of the words start with a, b, c, etc., everything would be written to the same file (handleZ)?

    Also, what's the point of multiple files, why not sort the original file with the same sort command?

    Because that would take too long! ;-)

  • (cs)

    Eh.

    It's still student code, no matter how misguided or pompous.

    That's why there are internships, among more legitimate reasons- To knock the wind out of their sails. That way, Mr. 3.9 GPA knows he isn't the ace he thought he was with his wtf code before going into the world.

  • someone (unregistered) in reply to Bad English
    Bad English:
    If Stephen doesn't know how to guide an intern to a better solution, maybe he should stop working with interns.

    On the contrary, he should work more with interns in order to learn how to guide them better next time. What he should do, though, is find someone who knows how to and learn from him.

  • johnr (unregistered)

    Since I'm not a programmer I often don't completely get the WTF of CodeSODs. In this case however, given the nature of the problem, as soon as I saw "mkdir" I knew that the "solution" was going to be really, really bad.

  • ÃÆâ€â„ (unregistered)

    I wonder what he has in store for $handleЧ

  • wtf (unregistered) in reply to anon
    anon:
    wtf:
    boog:
    Medezark:
    Wow.

    Reminds me of the fresh out of school Uber .NET programmer we hired.

    It should be company policy never to hire anyone who uses the word "Uber" either on the resume or in the interview.

    Also, wie soll ich dann arbeit finden? Man findet "uber" uberall! (umlaut, andererseits, finde ich nicht - verdammte work machine...)

    'ü' is Alt + 0252 in most machines.

    Most Windows machines, you mean. Damned work computer.

  • someone (unregistered) in reply to ClutchDude
    ClutchDude:
    Eh.

    It's still student code, no matter how misguided or pompous.

    That's why there are internships, among more legitimate reasons- To knock the wind out of their sails. That way, Mr. 3.9 GPA knows he isn't the ace he thought he was with his wtf code before going into the world.

    And you would be right, if the issue was the code.

    Nobody is complaining about the code here, we all have been newbies and know that programming isn't easy at all. It is expected bad code from students and also from seasoned programmers, from time to time (although not as bad as the code featured in this site.) Somebody else asked if you "were" perfect as an intern. Well, after some years I'm still not perfect at all, and I have the feeling that I never will...

    What I also expect from students, though, is the ability and the willingness to listen and learn from more experienced professionals, instead of always doing "their way" alluding to a number that have nothing to do with experience. That is the other half of an internship's purpose. In this case, we have a clear WTF example of such an attitude, not (just) the code.

  • (cs)

    Steven: Bossman, this kid can't code worth anything! Steven's boss: And who is his mentor again?

  • The Corrector (unregistered)
    The Article:
    It was the start of summer and Stephen was almost as excited about junior college Nathan's internship as Nathan was.
  • (cs) in reply to Preying on the weak
    Preying on the weak:
    Yeah I'm going to cry foal on this one. A junior in college and he's being blasted on this site?
    Correction: a junior in college who landed a programming internship.
    Preying on the weak:
    You were perfect when you started working?
    Not at all; I'm sure I wrote some bad code in my early years.

    The difference? My solutions weren't so bad that they ended up here.

  • Matt (unregistered)

    "Several weeks later, despite Stephen’s best efforts, Nathan was still working on Stephen's requested improvements, his way"

    To abuse a cliche, TRWTF. Not the clueless noob's inability- everyone starts somewhere. It's the clueless noob's assumption that he has nothing to learn.

  • (cs)

    TRWTF-TM is the behaviour to data of customers?

    "We have millions of users, but the search engines don't know that. We show just enough information about each user publicly so that when you Google for this person, you can find their profile on our site. For this to be truly effective, however, we need a user directory the search engines can crawl."

    oh wait this is facebook?

  • Abbout and Costello (unregistered) in reply to Preying on the weak
    Preying on the weak:
    Yeah I'm going to cry foal on this one. A junior in college and he's being blasted on this site? I'm fresh out of college and the 'old guard' is getting on my nerves with all the high and mighty attitude.

    You were perfect when you started working? That's what internships are for.

    I'm going to cry "foal", but that's only because I'm a little horse. Rimshot

  • (cs) in reply to frits
    frits:
    Preying on the weak:
    Yeah I'm going to cry foal on this one. A junior in college and he's being blasted on this site? I'm fresh out of college and the 'old guard' is getting on my nerves with all the high and mighty attitude.

    You were perfect when you started working? That's what internships are for.

    Will a unicorn foal do? [image]

    How the heck is the mommy unicorn still alive after birthing that thing?

Leave a comment on “The Intern's Internet Disorder”

Log In or post as a guest

Replying to comment #326296:

« Return to Article