News for hackers. Stuff that matters.
Re:How to reduce the cognitive load of your code by mc808 on Tuesday March 29, 2016 @11:08AM (#11381997)
Yoda speak, it is confusing like. Most people think "if the variable is not null" rather than "if null, the variable is not". It's easy enough to adapt to the style if it's used consistently throughout a code base, but that effort yields no benefits in most languages.
Re:How to reduce the cognitive load of your code by JustSomeNobody on Tuesday March 29, 2016 @12:11PM (#11382513)
Most people think "if the variable is not null"

Only because this is how people are traditionally taught to think. This can be untaught easily enough.

Re:How to reduce the cognitive load of your code by firethief on Tuesday March 29, 2016 @12:57PM (#11382864)
So you can unteach your developers to think... for what purpose?