27

Java script is like an angry girlfriend who won't tell you what is wrong.
This shit happened today.

Me: somearray.includes[stuff];
JS: I'm alright everything is fine.
Me: no it's not, Clearly the feature is not working.
JS:* silence*
Me: Fine be that way.. * spends lot of time debugging finally finds the issue*...oh shit.
Me: somearray.includes(stuff);
JS: I SAID NO TRAILING SPACE IN END OF THE LINE YOU STUPID PIECE OF SHIT NO TRAILING FUCKING SPACES AAAAHHHH!!!

Comments
  • 9
    My editor usually kills those trailing spaces for me. I can tell because I told it to show all whitespace with faint lightblue indicators. I can see when I save all the whitespace go away. Sometimes it doesn't catch it though and I squash it myself. Being able to see the whitespace is kinda reassuring. Watching the editor kill that space is really satisfactory.
  • 1
    somearray.includes.<content of `stuff`>
    Of course that's fine for JS.
  • 5
    TypeScript: Dude ur doing it all wrong
  • 1
    I know how you are feeling when it comes to women they are like the internet, they are all connected when it comes to catching you in a lie.
  • 4
    You guys got any more of those static type annotations?
  • 0
    @Ubbe u say that about typescript ONE MORE FUCKING TIME

    No honestly typescript is fine if you understand it, what’s worse is all the wrong typings people produce, like you
  • 0
    @Ubbe For ui, yes, for redux, arguable, but large codebases, heavy service workers and suggestions in your „ide“ sure are at minimum helpful.

    Nobody forces you to go all Microsoft-TypeString shiz

    EDIT: Yo even 99% vanilla js it sure is helpful in helper functions to remind you what the fuck you should give him
Add Comment