News for hackers. Stuff that matters.
Re:Code isn't poetry by jloughry on Wednesday April 02, 2014 @05:19PM (#7519111)
Pedantic is putting the braces in even where they're optional, simply because it avoids problems later on. Pedantic is using Yoda conditionals [1] in C because it enables lvalue checking in the compiler. Pedantic is checking return codes, using assertions, and validating inputs. Pedantic is not unnecessary code; it recognizing what is necessary, and doing it.

[1] E.g., "if (1 == n)" instead of "if (n == 1)" (or prefer a language that uses := for assignment).

Re:Code isn't poetry by solomone on Wednesday April 02, 2014 @03:12PM (#7518186)
Any syntax is less readable if you're unfamiliar with it. If you see enough of them, it reads naturally.
Re:Code isn't poetry by otikik on Wednesday April 02, 2014 @02:26PM (#7517828)
I don't agree that the second example is more readable than the first
Re:Code isn't poetry by ratsimihah on Wednesday April 02, 2014 @03:03PM (#7518118)
But it is!
Re:Code isn't poetry by Tanner on Wednesday April 02, 2014 @03:18PM (#7518228)
Why do you think that?