Consistent Code Formatting - Suggestion to Developers-Hackers

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
User avatar
fatlizard
Forum Members
Forum Members
Posts: 71
Joined: Thu Jun 18, 2009 1:24 pm

Consistent Code Formatting - Suggestion to Developers-Hackers

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Consistent Code Formatting - Suggestion to Developers-Hackers

Post by calguy1000 »

and here goes the next round of religious arguments...
just like the vi vs emacs arguments.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
fatlizard
Forum Members
Forum Members
Posts: 71
Joined: Thu Jun 18, 2009 1:24 pm

Re: Consistent Code Formatting - Suggestion to Developers-Hackers

Post by fatlizard »

Religious arguments?

A sensitive issue it would appear.
Post Reply

Return to “Developers Discussion”