News for hackers. Stuff that matters.
Re:How to reduce the cognitive load of your code by rileymat2 on Tuesday March 29, 2016 @03:06PM (#11384006)
What if it is 0 but not null? I write in a few different languages throughout a typical week. It is nice to have some explicit statements when juggling between them. I know them very well, but it is still tricky when going back and forth.
Re:How to reduce the cognitive load of your code by kilink on Tuesday March 29, 2016 @03:52PM (#11384350)
That also wouldn't even compile. I also write in multiple languages, and for languages for which this is an issue I use a linter. This isn't even an issue in C if you compile everything with the appropriate flags (-Wall or -Wparentheses).