Skip to content
shimondoodkin edited this page Nov 20, 2010 · 1 revision

The coding style goes more then 10 years back when there ware only text mode editors. it is simple:

function ()
{
 while(..)
 {
  if(..)
  {
   ddd
  }
 }
}

One space per bracket, A new line before bracket.

It enables to easily track unclosed brackets when using command line editor without sophisticated highlighting, using a quick and mechanical method.

Some people may argue that is easier to spot bugs when using no brackets and identification I am completely open to that idea in addition from my experience I think it is more useful in the general file structure to use one space identification.