manton
manton

I don’t think I’ve ever seen a bug related to == vs. === in JavaScript. Half the time we’re comparing strings anyway and it just doesn’t matter, so why ugly up your code with an extra =? Also while I’m being controversial, real tabs are great. 🤪

|
Embed
Progress spinner
In reply to
cooperbike
cooperbike

@manton == vs === causes me more confusion than I care to admit. But the tab comment. I’m raising my pitchfork.

|
Embed
Progress spinner
jfroehlich@mastodon.social
jfroehlich@mastodon.social

@manton I have and it was not fun to debug because it was so supple. So, instead of stopping and thinking about the implications of == I just write === and continue with my flow.

|
Embed
Progress spinner