On 2011-08-10 18:02, bearophile wrote:
Dmitry Olshansky:

To get a small no-crap-included beta package see download section of
https://github.com/blackwhale/FReD for .7zs.

When you write some English text you don't write a single block of text, you 
organize it into paragraphs, and paragraphs into chapters, chapters into 
sections, sections into books, etc. Time ago I have understood that paragraphs 
are very good in source code too.

So I suggest you to add a blank line here and there inside your functions to separate 
them into paragraphs. I can't give you a style rule, you will need to create your own 
style, but often a function that's more than 10 lines line long needs one or more blank 
lines inside (some people say that every time you see one of such paragraphs in a 
function, especially if it has a comment before it, then you need to perform an 
"extract method" to improve the code. I believe this is a bad advice).

I always add a blank line before and after statements.

--
/Jacob Carlborg

Reply via email to