68

So a coworker wrote this -- a function that returns a view if a specific object exists in the database. Now what would happen said object doesn't exist in the database? Forget about returning false and handling it properly, he decides that the function should print (echo) a zero! Not to mention almost all his if-else blocks prints a fucking zero when the if condition is false (there are 8 of them, if you're asking). Error messages? The hell with those.

He is now the PM btw. I've had enough of this shithole.

Comments
  • 18
    WTF is this shit 😂 I am so sorry, dude..
  • 11
    I puked, sry 🤢
  • 8
    I'll shed some tears on your behalf.
  • 7
    And it's a truthy 0. Awful.
  • 15
    He clearly gives zero fucks
  • 1
  • 5
    Just wondering how nested is the fucking if condition. Your pm is a retard.
  • 2
    PhP right? 😂
  • 3
    @kshitij He is. I breathed a sigh of relief a couple of months ago when he was let go of all development. Although it doesn't really get any better with him being the PM... Fucktard always tries to micromanage the dev team.
  • 3
    @azous Yeah, but it's not PHP that's the problem. PHP in the right set of hands can be a joy to work with.
  • 3
    @RStrydom Literally, actually. None of his code is well thought out (I'm not exaggerating here). It makes future development a pain in the ass.
  • 1
    My fucking eyes 😦😦😦😦😦
  • 2
    @baskoros I can't imagine this echo '0';

    print('Hail Hydra'); 👿
  • 0
    Oh what the fuck
Add Comment