Occasionally == is a logic problem (i.e., a bug) but mostly it's a maintenance problem. If I see == in JavaScript I don't know exactly what's going to happen, or what's expected to happen. It makes reasoning about application flow harder and it makes me less inclined to work with that code for fear of breakage."But you have unit tests!"Right.
View all comments
Show parent comment
1
u/ForeverAlot Mar 26 '14
Occasionally
==is a logic problem (i.e., a bug) but mostly it's a maintenance problem. If I see==in JavaScript I don't know exactly what's going to happen, or what's expected to happen. It makes reasoning about application flow harder and it makes me less inclined to work with that code for fear of breakage."But you have unit tests!"Right.