15
kurtr
6y

Lets play a game of spot the bug...

Too easy you say?
What if I told you that this code was written by a well paid dev over an exceptionally large period of time?

Crazy huh, but that's still nothing. The most ludicrous thing about it - is that you (like me) probably suffer from a mild case of impostor syndrome.

I just ended that suffering. The only thing worse than impostor syndrome is believing you actually know what the fuck your doing. Keep it in check but learn to love it... it's probably the reason you could spot the bug after all.

Comments
  • 8
    Well that’s never going to fail 🙃
  • 1
    @C0D4 Haha yeah neither would the other 112 lines of code I just removed filled with this brilliant logic on every fucking possible property with a custom error message....

    if (!is_numeric($supplier_id) || (int)$supplier_id === 0){

    FYI the var was populate with codeIgniters input class which either returns the value or false - which is why I used to think people used it...

    Oh well the whole fucking shebang was just cut down to the 19 lines that actually matter.
  • 3
    @Haxk20 I think only the @dfox needs to implement is oAuth2 and a menu link to a community moderated list of hosted collabs and his army of devranters will make a whole bunch of awesome stuff.

    I wrote the cli tool when I was bored one night but removed the login functionality before pushing the code because I don't want your password and your not dumb enough to give it to me.

    I've also toyed with a light messaging / chat room idea and started another pet project using tensorflow to try to find like minded devs based on their rants. There's not enough data to do a good job yet but oneday.

    devRant - The only platform built for developers that they can't easily integrate with... maybe that's why we like it so much 😂
  • 0
    So, what does "insert_supplier_code" return, a number?
Add Comment