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 UserPosted Jun 11, 2020, 8:19 AM
Michael CronqvistPosted Jun 11, 2020, 4:11 AM
Guest UserPosted Jun 9, 2020, 12:10 PM