Re:Making code better with code reviews
by raverbashing on Wednesday July 02, 2014 @10:24AM
(#7977129)
True, amongst the examples given they all score more or less the same to me (and it's a short example)
A lot on readability stands on the expectations of the reader (and the idioms of the language) as well. For a lisp programmer (* (hours 3600)) may be easier to read for example.
Now I can take that example and turn into
ttscds = x * (36 * 10 * 10);
And we know this is less readable, the intentions are hidden and nobody unfamiliar with the code knows what's going on.
A lot on readability stands on the expectations of the reader (and the idioms of the language) as well. For a lisp programmer (* (hours 3600)) may be easier to read for example.
Now I can take that example and turn into
ttscds = x * (36 * 10 * 10);
And we know this is less readable, the intentions are hidden and nobody unfamiliar with the code knows what's going on.