Consistent Code Formatting - Suggestion to Developers-Hackers
Posted: Wed Jul 29, 2009 2:37 pm
[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
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