News for hackers. Stuff that matters.
Re:How Heartbleed Leaked Private Keys by Nursie on Monday April 28, 2014 @08:44AM (#7659504)
There's no need to explicitly include NULL in there, it buys you nothing.

Insisting on braces is a style concern, though it does seem to protect people from themselves to some extent.

Re:How Heartbleed Leaked Private Keys by CamperBob2 on Monday April 28, 2014 @04:04PM (#7662578)
If you're careful to use NULL only in pointer expressions, it can be used to indicate that a pointer is being tested, as opposed to any other sort of integer or boolean flag. You can justify it on grounds similar to Hungarian notation, giving the reader some contextual information that might otherwise require a look at a declaration somewhere else.

Code should be written for the benefit of humans, not compilers.

Re:How Heartbleed Leaked Private Keys by Nursie on Tuesday April 29, 2014 @05:43AM (#7665904)
I agree, but the humans also need to be able to understand the code. I've worked in places where the ternary operator was banned because 'some people might not understand it'. This is silly.
Re:How Heartbleed Leaked Private Keys by CamperBob2 on Wednesday April 30, 2014 @01:18PM (#7674726)
Yeah, that's pretty goofy. Being intimidated by the ternary operator is how you know you should have gone into marketing instead.