Hacker News new | ask | show | jobs
by OmniBus 5702 days ago
I code like this. It is easier to identify code structure.

  for (int i; i < 10; ++i) {
    if (i % 3 == 0) {
      continue;
    }
    array[i] += 2;
  }
I use blank lines to separate declaration and other codes, and logical block within a function, and also between functions.

It is no use for me to put blank lines between statements. It would better to view structure in one screen. Scrolling between pages make me tired too.

1 comments

I also like code like this. Sometimes a closing curly brace will pass for a blank line.

And ya, scrolling is the enemy.