News for hackers. Stuff that matters.
Re:Signs You're a Crappy Programmer (and don't know it) by Tichy on Monday November 26, 2007 @02:50AM (#83517)
I would not put everything on the same line, but I admit to putting the opening bracket on the same line. In fact, I consider the other variant extremely ugly. Just consider

  if(...)
  {
    ...
  }
  else
  {
  ... 
  }
vs

  if(...) {
    ...
  } else {
    ...
  }
I can't for the life of me understand why someone would want to move the bracket to the new line ;-) It's just empty (wasted) space without any meaning. I can see the control blocks with the tighter version just fine, plus, it's the Sun Coding Convention for Java. But it's really a fruitless discussion...
Re:Signs You're a Crappy Programmer (and don't know it) by jamongkad on Wednesday November 28, 2007 @12:34AM (#84139)
I on the other hand find this quite elegant

(...) ? $doThis : $doThat;