Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4681464yThere'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 👀 -
Unpopular opinion - the monster is the loose type system itself, not the people using it.
-
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.
-
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)
I hate so much when someone uses != or == instead of !== or === in PHP/JavaScript. These people are fucking monsters.
rant
just learn to use the fucking types