News for hackers. Stuff that matters.
Re:Most common mistakes during interviews by thdc on Sunday August 30, 2020 @02:44PM (#24324922)
If a case like this pops up, how about asking them why they did it like that and then making your judgement based on response instead of questioning their competence right away?

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.

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.