
Jan. 19, 2016
5:09 a.m.
Alexander Walters wrote:
When someone trying to make this argument in #python for Python code... the response is newlines are free.
Well, I disagree. I very rarely put blank lines in a function in any language, because it makes it hard to scan the code visually and pick out the beginnings of functions. So while they may help readability locally, they hurt it globally. If I find myself needing to put blank lines in a function in order to make it readable, I take it as a sign that the function ought to be split up into smaller functions. -- Greg