News for hackers. Stuff that matters.
Re:Do you use blank lines in your code? by fleitz on Saturday November 06, 2010 @03:59PM (#1877629)
I'll use blank lines if there is nothing else, but I tend to find that when you need to use blank lines to delineate function that a refactoring is in order.

The example

  for (int i; i < 10; ++i)
  {
    if (i % 3 == 0) continue;

    array[i] += 2;
  }
Could be rewritten as:

  for (int i; i < 10; ++i)
  {
    if (i % 3 != 0){
      array[i] += 2;
    }
  }
Re:Do you use blank lines in your code? by lucisferre on Sunday November 07, 2010 @03:22AM (#1879010)
That's not really a refactoring improvement. Same number of lines and one more level of nesting. I mean in that particular example it doesn't hurt either way much, but that is the problem with that example.