61

Just spent the last 10-20 minutes debugging a stupid error. Turns out I spelt construct wrong. FML.

Comments
  • 0
    Happens to the best of us ;)
  • 1
    SO RELATABLE. Especially when you're dealing with a poor IDE or with raw text.
  • 2
    This is PHP right? And yes, things like misspelling names are the errors you expect the least
  • 0
    @iatanasov it's for specific scenarios when I add parameters that will be used in other special functions that would require them. Say I make an array of users and parse it in the second parameter. Array("user1" => Someval, "user2" => anotherval); and a function that might require $this->user1. Yeah. I also do it so I don't have unused variables. Plus I'm not really thinking far ahead. I mean, I can't think of all the things I want right now, so I'm just writing this now so that if I come up with anything later, it'd be easier to implement. This probably didn't make sense. But yeah lol.
  • 0
    @mightyleguan yeah, it is
  • 0
    @iatanasov I'll probably change it later when I have everything figured out
  • 1
    $prodcut = $product_svc->findOneRandom();

    atleast twice a day
  • 1
    Static code analysis helps :P
  • 2
    Typed languages <3
  • 1
    😂😂😂 RIP
  • 0
    Whooooooaaa raw text developer? Hardcore!
  • 0
    I hate it when that happens. Gets me all the time.
  • 0
    Just realized this project uses Laravel. I'm using that for my web project too :p
  • 0
    Ahh, the joys of dynamic languages 😉
Add Comment