Page 1 of 1

Consistent Code Formatting - Suggestion to Developers-Hackers

Posted: Wed Jul 29, 2009 2:37 pm
by fatlizard
[speech]

Some do it {
this way },
and some do it
{
  that way
}

What about       tabs      instead      of
            spaces ?

function TryToFollowThisCode {

case 1: {
          do something here
                 }
case 2: {whatever}
              else{
                 not sure}
  default: some meaningless error


}

We all have our favorite ways of doing things, but, unfortunately, mine may not be yours, and the other way 'round.

What about using phpCodeBeautifier (http://www.waterproof.fr/products/phpCodeBeautifier/)?

It's free, and released code can then be consistent, and far easier to read and follow by everyone.

Also hackers can then have some consistency to emulate, or if phpCodeBeautifier's settings are made known, can format their own code accordingly.

A multi-tasked and widely dispersed team force can then present a united approach and delivery.

[/speech]

Fat Lizard

Re: Consistent Code Formatting - Suggestion to Developers-Hackers

Posted: Wed Jul 29, 2009 2:49 pm
by calguy1000
and here goes the next round of religious arguments...
just like the vi vs emacs arguments.

Re: Consistent Code Formatting - Suggestion to Developers-Hackers

Posted: Wed Jul 29, 2009 2:57 pm
by fatlizard
Religious arguments?

A sensitive issue it would appear.