• Tester (unregistered)

    Frist Comment Exception

  • (cs)

    Someone messed up the anonymisation. NullReferenceException is .Net. Java has NullPointerException.

  • (cs)

    A truth, buried under the remains of Hitlers bunker is uncovered by a steadfast PHP programmer, looking a lot like Harrison Ford. He alone can turn the tide and avoid that the Nazis will finally establish their 1000 year Reich of design patterns. But he is thwarted by the helpers of evil. Will he succeed?

  • (cs)

    There are times when workplace violence is justified. This is one of them.

  • geoffrey, MCP, PMP (unregistered)

    This goes to show you that communication is key on any project. Had Bob simply included Randy in the work he was doing, he could have easily avoided their conflicts in the SCM system.

  • ClaudeSuck.de (unregistered)

    Well done. People who know it better than others and who constantly try to convince the others to do like them really need to be fired at the first occasion. Anyway, the real WTF is Java.

  • FIFY (unregistered) in reply to ClaudeSuck.de
    ClaudeSuck.de:
    Anyway, the real WTF is PHP.

    FIFY

  • Mark (unregistered)

    The real wtf is deriding perfectly good and useful-at-different-times tools.

  • Andrew (unregistered)

    I suppose Randy had fears that the success of the project would mean Java being their team's standard technology instead of his precious PHP (not dissing PHP here; each tool has it's purpose), in which case he can do his job or look for another one. Anyone who sabotages a project like this should be strangled with his own intestines.

    That said, why run around cobbling working copies from dev workstations?! Repositories not backed up? Or did Randy junk those as well?

  • Anon (unregistered)

    Java or PHP? Talk about being stuck between a rock and a hard place!

  • cheap shot (unregistered)

    I'ma call shenanigans on this one.

    I think we're supposed to shock! horror! at the potential sql injection vulnerabilities in that code snippet but I doubt it would even compile (i don't do java) surely in java you can't assign a string to a ResultSet.

  • Tom (unregistered)

    I had a coworker do that to me. But when I reported it, I got fired for "not being a team player".

    Yeah, I don't much miss that project.

  • EmperorOfCanada (unregistered)

    I have had roughly the same experience except that it was a Java fanatic who was trying to replace PHP. I can see coming on to an existing project and wanting to, say, upgrade the language to a newer version but even if the originally chosen language sucks switching mid project is just asking for trouble.

  • (cs)

    That code is not compiling, brother! Which java are you using?

  • (cs) in reply to Nagesh
    Nagesh:
    That code is not compiling, brother! Which java are you using?
    One that apparently has null reference exceptions.
  • Zeks (unregistered)

    I guess keeping such bastards around the project for any meaningful amount of time is the worst anti-pattern ever :)

  • (cs)

    I have to wonder what kind of person looks at a code snippet where a variable is obviously declared outside of said snippet, and then marvels when that snippet won't compile.

    Of course, there is a line in the code that is completely wrong that prevents compilation anyway. That is, in fact, the joke.

  • (cs)

    And Bob's first reaction was to cobble the project back together from what was on developer's workstations instead of calling Jim up in systems and saying "Jim, could you restore Operation Blue Light's svn repository from backups, to what we had there on Thursday? Oh, and could you ask Tammy to restore the development database to the same time as well please? ... Come on, I know she's sitting right beside you."

    WTF.

  • Jack Foluney (unregistered)

    Reminds of a guy I work with who insists that oracle is evil because he can't write a SQL statement to save his life.

  • (cs)

    On one hand, you have a mature language in Java that has a strong community of design patterns and abstractions (often too much).

    On the other hand, you have PHP, a language that while useful makes it very easy to write unmaintainable spaghetti code and promotes cowboys running around without any knowledge beyond what they found on PHP.net.

    Java wins out every time. Being a .NET guy myself I often envy the Java community's embracing of design patterns and craftsmanship over .NET's "RAD" and event-driven "put everything in the code-behind!" style.

  • pvandewyngaerde (unregistered)

    in an if statement please use a double equal sign, triple is even better.

    a sigle equal sign, is value assign

  • Ross Presser (unregistered)

    From now on I am going to refuse to work with anyone named Randy who has PHP and Apache in his work experience.

  • Avenger (unregistered) in reply to Steve The Cynic

    Sabotaging the project IS a form of violence..

  • Bobbi Taibels (unregistered)

    No one is going to comment on the fact that they apparently keep the password in an unencrypted column in the database?

  • Matteo (unregistered) in reply to ObiWayneKenobi

    Well, no offense, but it looks like you are a "poor" .Net guy, because you can have all that shiny stuff in .Net and even better than java.

    With modern ORMs (like EF 4.2/4.3), an amazing web framework (Asp.Net MVC with Razor, mind you, not that piece of crap of webforms), the synatx power of C# (lambda expressions, linq, dynamic, etc), the awesome package manager nuGet, etc, you really don't have anything to envy to the Java community, I'd say it's the other way around.

  • Anon') or 1=1; DROP TABLE comments; -- (unregistered)

    It just goes to show you that anyone can write SQL injection vulnerabilities, even Java programmers.

  • justsomedudette (unregistered) in reply to pvandewyngaerde
    pvandewyngaerde:
    in an if statement please use a double equal sign, triple is even better.

    a sigle equal sign, is value assign

    If you read the source code you'll see that is mentioned.

  • (cs)

    TRWTF is that criminal charges weren't filed against Randy.

  • Not James Gosling (unregistered) in reply to Severity One
    Severity One:
    Nagesh:
    That code is not compiling, brother! Which java are you using?
    One that apparently has null reference exceptions.
    Probably java.net
  • (cs) in reply to Bobbi Taibels
    Bobbi Taibels:
    No one is going to comment on the fact that they apparently keep the password in an unencrypted column in the database?
    Don't worry, I'm sure geoffrey will get to you shortly.
  • Harold (unregistered) in reply to cheap shot

    No, you're supposed to notice the fact that passwords are stored plaintext, and also the fact that it iterates over the result set to see if the password matches, rather than just including it in the where clause.

  • Don't really care (unregistered) in reply to Matteo
    Matteo:
    Well, no offense, but it looks like you are a "poor" .Net guy, because you can have all that shiny stuff in .Net and even better than java.

    With modern ORMs (like EF 4.2/4.3), an amazing web framework (Asp.Net MVC with Razor, mind you, not that piece of crap of webforms), the synatx power of C# (lambda expressions, linq, dynamic, etc), the awesome package manager nuGet, etc, you really don't have anything to envy to the Java community, I'd say it's the other way around.

    I'm not seeing any logical refutation of ObiWayneKenobi's arguments. I'm seeing buzzword bingo. Perhaps your idea of debate is throwing trademarks and project names at people until they cringe and go home?

    Or maybe you're lulzing with the appropriate false sincerity that makes any form of religious extremism indistinguishable from trolling, a la Poe's Law.

  • Kempeth (unregistered)

    One of my best friends is a PHP guy and I'm a .NET/Java guy. While I do the occasional free time web project with PHP I always wince at it's Fairy-Dust-Typing-System. And he in turn marvels at why anyone would bother with such an inflexible Stone-Tablet-System...

    We joke about it but accept that our personal preferences don't mean it is impossible to write good code in the other system.

    But that randy should have been whipped with blank PoE network cables...

  • Hmmmm (unregistered) in reply to PedanticCurmudgeon
    PedanticCurmudgeon:
    TRWTF is that criminal charges weren't filed against Randy.

    Yeah, right, like the evidence as presented would stand up in court, even if the company lawyers and management decided that a lawsuit that shows they run their company so badly to allow this sort of thing to have a significant impact would benefit the company any more than simply firing him...

  • Bruce W (unregistered)
    random corporate project name generator
    I think my company licenses the same software.
  • dr memals (unregistered)

    what is S-MART ? americanism ?

  • Ben Jammin (unregistered) in reply to Andrew
    Andrew:
    ...

    That said, why run around cobbling working copies from dev workstations?! Repositories not backed up? Or did Randy junk those as well?

    If that SCM was written in php, it would have backups of repositories.

  • Hmmmm (unregistered) in reply to dr memals
    dr memals:
    what is S-MART ? americanism ?
    Sounds like a disgusting, Americanised contraction of "Super-MARkeT".

    Though if that was really the state of the code before Bob joined the project then I doubt I'd employ any of the original coders to sweep the streets let alone work in a supermarket...

  • (cs) in reply to Code Slave
    Code Slave:
    And Bob's first reaction was to cobble the project back together from what was on developer's workstations instead of calling Jim up in systems and saying "Jim, could you restore Operation Blue Light's svn repository from backups, to what we had there on Thursday? Oh, and could you ask Tammy to restore the development database to the same time as well please? ... Come on, I know she's sitting right beside you."

    WTF.

    TRWTF is you didn't follow this up with some Jim/Tammy fanfic. Know your audience, dude!

  • (cs) in reply to dr memals
    dr memals:
    what is S-MART ? americanism ?

    https://www.youtube.com/watch?v=9Nc4s_C67A8

  • (cs)

    A bad workman blames his tools. No more need be said.

  • Nagesh (unregistered)

    There is not being such thing as "null reference exception". Remy is being off the reservation.

    [image]
  • Anon (unregistered) in reply to Harold
    Harold:
    No, you're supposed to notice the fact that passwords are stored plaintext, and also the fact that it iterates over the result set to see if the password matches, rather than just including it in the where clause.

    Nothing in the code prevents the password column from the database and the password variable from both being hashes of the password, instead of plaintext passwords.

    That would still be a naming WTF though.

  • Briddums (unregistered) in reply to dr memals
    dr memals:
    what is S-MART ? americanism ?

    Watch the movie Army of Darkness, it has references to S-MART

  • (cs) in reply to dr memals
    dr memals:
    what is S-MART ? americanism ?

    Bruce Campbell. "Army of Darkness". I thought that movie was required viewing before starting a career in IT.

  • (cs) in reply to emurphy
    emurphy:
    Code Slave:
    And Bob's first reaction was to cobble the project back together from what was on developer's workstations instead of calling Jim up in systems and saying "Jim, could you restore Operation Blue Light's svn repository from backups, to what we had there on Thursday? Oh, and could you ask Tammy to restore the development database to the same time as well please? ... Come on, I know she's sitting right beside you."

    WTF.

    TRWTF is you didn't follow this up with some Jim/Tammy fanfic. Know your audience, dude!

    In the UK, "Tammy" is slang for a certain item of feminine hygiene.

    And while I'm about it, "randy" means sexually stimulated.

  • Ken (unregistered) in reply to dr memals

    A reference to a movie called Army of Darkness. Really good and funny, I recommend watching it.

  • Boomstick (unregistered) in reply to dr memals

    movie reference http://en.wikiquote.org/wiki/Army_of_Darkness

  • blinky (unregistered) in reply to Hmmmm

    S-Mart is a reference to the protagonist's workplace in the film Army of Darkness.

  • Benjamin Cahill (unregistered)

    My frist comment here, we'll see how it goes. :-P

    TRWTF is not using a distributed VCS.

Leave a comment on “The Strong Type”

Log In or post as a guest

Replying to comment #:

« Return to Article