The point is that "if" branches based on a boolean value. A comparison is just one way to produce a boolean value. There's nothing explicit by adding "==true". It just show a lack of understanding of "if".
If an extra "== true" can be considered more precise, would
if ((conditional == true) == true)
be even more precise?
Re:Most common mistakes during interviews
by gnusty_gnurc on Sunday August 30, 2020 @03:44PM
(#24325369)
Precisely. Thank you.
Response 1: I thought it would be clearer with the explicit comparison. (fine, then you can bring in your own opinion and maybe have a nice discussion)
Response 2: You don't need == true? I never knew. (bad)
Another common scenario that is complained about: using `this` with instance variables when it's technically unnecessary.