Hey guys
I have a continuous dialog with my developers about Good programmering practice and not all get it.
Please take a look at this piece of code below. I my oppinion this is badly written code because:
- Unnessecary negation of the conditional statement can lead to confusions.
- The negation makes an ekstra operation.
- Obviously dead code since "return" can be avoided.
What are you guys oppinion and arguments on this?
Thank in advance.

Guest UserRank #816 · 2.8K reputationPosted Jun 9, 2020, 8:10 AM EDT
Michael Cronqvist5 reputationPosted Jun 11, 2020, 12:11 AM EDT
Guest UserRank #816 · 2.8K reputationPosted Jun 11, 2020, 4:19 AM EDT