News for hackers. Stuff that matters.
Re:Most common mistakes during interviews by coin on Sunday August 30, 2020 @03:35PM (#24325290)
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".
Re:Most common mistakes during interviews by xorcist on Monday August 31, 2020 @03:47PM (#24335250)
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.