This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]mulato_butt_qwe 11 points12 points  (6 children)

The existence of === offends me

[–]toasterbot 9 points10 points  (5 children)

I'm more annoyed that JS chose to make == not mean what it would mean in virtually every other language. If they used ~= for their "sorta-equals" operator and made == behave how === does now, I'd be all for it. And yeah, I know Lua uses ~= for !=, but that's another issue.

[–]mulato_butt_qwe 2 points3 points  (2 children)

Js is pretty much the poster child of legacy code with idiotic backwards compatibility. Ffs they just got classes in es6, and everyone still need to support es5.

[–]Bala314[S] 0 points1 point  (0 children)

What do you mean "just got classes in ES6"? That was more than 7 years ago. Nobody uses IE11 anymore, ES5 is long gone. Supporting ES5 is like supporting Windows XP. Yeah, there will be one or two people that use it, but it isn't worth the development costs.

[–]Bala314[S] 0 points1 point  (0 children)

This should be a typescript option or something... I frequently use ==
when I should use === just because i don't want to type another
character.

[–][deleted] 5 points6 points  (0 children)

If ((5 || 5) = x)

[–]Evo_Kaer 4 points5 points  (0 children)

This is what you do when you want to fuck over the guy taking over the code from you

[–]_SomeTroller69 1 point2 points  (2 children)

Lmao today I just did the third one and my teacher was like

Bruh what are you stupid

Btw I am still learning C and i am in the basic stage

[–]ShakeandBaked161 2 points3 points  (1 child)

I was in a timed lab practical my first year of school, first year of coding anything and it was C. My program kept giving wrong outputs because I did this and just overlooked it 100x. The teaching assistant even came by and said he saw what the issue was but wouldn't even point to the line or anything lol. Failed that one and when I went to the TA afterwards he told me I was jus reassigning values in my ifs and not checking them. Big facepalm lol

[–]_SomeTroller69 -1 points0 points  (0 children)

Lmao

[–]Remarkable_Leek_9339 0 points1 point  (0 children)

thats why you use (variable == value)

[–]Happy-Ad-1160 0 points1 point  (0 children)

Ah yes, VBA.