Вселенная Кудзу

«Программирование - искусство, воюющее со своими творцами»

Kudzu World  »  Blogspace  »  Kudzu's Tech Blog
English - Română - Русский - عربي

RSS Feed

If you want to more easily stay informed of updates etc you can subscribe to the RSS feed. Just point your RSS reader at this page, auto discovery is enabled.




Stupid Code of the Day

7/24/2010

Not is not mine.

m_enabled = fEnable == 0 ? false : true;

<< Previous Entry    Next Entry >>

Comments:

Robert MacLean on 26.07.2010 wrote: Reminds me of a customer I was at last year, their dev lead had put into place a set of guidelines. One of those being that you could not use the exclamation point (!) for unequal statements. His argument was that it was too subtle and readibility suffered because it was easy to miss a !. I understand the drive for readibility but when developers spend time coming up with alternatives that are worse then a little ! never hurt anyone.

Post a comment

Use my contact form to contact me directly.