Topic on Manual talk:Coding conventions

What about carriage returns between sections of code?

2
Peachey88 (Flood) (talkcontribs)

When is it good to include blank lines? I usually include a blank line between functions, classes, etc. But is it also good style to include blank lines between, say, major code sections within a function? That leads to the question of what counts as a major section of code within a function; I find it to be a pretty arbitrary/subjective decision, and ultimately having a lot of blank lines just hinders the reader from seeing very much of the code without scrolling.

This post was posted by Peachey88 (Flood), but signed as Tisane.

Peachey88 (Flood) (talkcontribs)

Pretty much as you say: they're good, but should be used sparingly; it's much easier to say "apply common sense" than to try and legislate for it.

This post was posted by Peachey88 (Flood), but signed as Happy-melon.