1

I hate so much when someone uses != or == instead of !== or === in PHP/JavaScript. These people are fucking monsters.

Comments
  • 1
    There's pros and cons to loose types, a lot of cons if done wrong though.

    Maybe I want to check "1" == 1 instead of "1" === 1 👀
  • 7
    Unpopular opinion - the monster is the loose type system itself, not the people using it.
  • 1
    I only use strict equality when checking for things like null vs. undefined where it actually matters. If you're comparing strings and numbers with ==, you either have no clue or you know perfectly well what you're doing.
  • 2
    depending on the case, as always has been.
  • 1
    I'll bet ya, that most don't know the difference. Because it's only some (most) loose languages that syntax.
    I saw it early on, but didn't bother to look up the difference before I had code that broke because of it. (years into my career)
  • 0
    @AlmondSauce Not sure if that is the unpopular one.
  • 0
    @hjk101 It usually is if you're talking to PHP or JS Devs.
Add Comment