MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/e00ase/it_doesnt_even_do_it_right/f8d91cw/?context=3
r/badcode • u/Sam956 • Nov 22 '19
59 comments sorted by
View all comments
Show parent comments
40
Which style guides would do that? That seems so bizarre and obfuscatory.
15 u/phord Nov 22 '19 I personally loathe it.done = triggered != false is terrible code. 8 u/ikatono Nov 22 '19 I understand not comparing against boolean literals, but A == B is just XNOR. 4 u/phord Nov 23 '19 Sure. No complaints about that.
15
I personally loathe it.
done = triggered != false is terrible code.
done = triggered != false
8 u/ikatono Nov 22 '19 I understand not comparing against boolean literals, but A == B is just XNOR. 4 u/phord Nov 23 '19 Sure. No complaints about that.
8
I understand not comparing against boolean literals, but A == B is just XNOR.
4 u/phord Nov 23 '19 Sure. No complaints about that.
4
Sure. No complaints about that.
40
u/spicenozzle Nov 22 '19
Which style guides would do that? That seems so bizarre and obfuscatory.