I am definitely a "brace on the end of the top line" kind of guy.
I also prefer the "} else {" notation.
Fortunately, the WordPress coding standards agree with me.
https://make.wordpress.org/core/handbook/coding-standards/php/#brace-style
My pet peeve, though, is var2 = "#var#" in cf code.
And unequal tab spacing inside a single file. You don't have to pick mine,
but stick with one style, please.
On Mon, Apr 20, 2015 at 9:16 AM, Cameron Childress <[email protected]>
wrote:
>
> For some reason I find myself switching at time between both styles. I am
> not really sure why. One just "feels better" sometimes and the other feels
> better other times.
>
> I think that if the file's short I prefer version #2 since it helps
> everything look compact. If the code's gonna be longer than one visible
> page I prefer #1 since it's gonna go over a page anyway and compactness
> doesn't matter.
>
> Or maybe it's just which shoe I put on first in the morning. Not sure.
>
> If we ever work on a project together, please try not to murder me. :)
>
> -Cameron
>
> On Mon, Apr 20, 2015 at 9:00 AM, Eric Roberts wrote:
>
> >
> > Heheh...yeah...I never understood that "indentation" style. The first
> one
> > makes more sense to me. It's much more readable. I definitely
> sympathize
> > with the characters LOL.
> >
> > Eric
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:373355
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-community/unsubscribe.cfm