News for hackers. Stuff that matters.

pyrextamer

Re:How to reduce the cognitive load of your code on Tuesday March 29, 2016 @12:31PM (#11382677)
What if the order depended on the check condition?

`if (null == variable) or if (false == variable)` reads well that you are checking for null/false.

`if (variable != null) or if (variable != false)` reads well that you want non-null/false conditions.