I disagree. Having a consistent style allows you to ignore the formatting
and concentrate on the content of the code itself. Differing coding styles
are unnecessarily distracting. I used to code in the BSD style, but now I
prefer OTB. Whenever I update old code, though, I revert back to the BSD
style. For the framework, the OTB style is established and is perfectly
sufficient.
I also prefer braces around all conditionals for consistency and visual
demarcation. It also ensures that people don't forget to add braces when
they add a second line to the conditional code.
-Matt
----- Original Message -----
From: "Christopher Thompson" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Saturday, September 30, 2006 10:47 AM
Subject: Re: [fw-general] Coding Standards & ZF 0.2
I think what we really need is flexibility, not rigidity, to things as
trivial a spacing. It is Good Software Design, not formatting, that truly
frees the mind.
I think that rather than forcing half the group to conform -- we should
all of us become more flexible. That flexibility may also improve our
designs and communication. I say allow flexibility in braces for ZF
developers. I find both K&R or BSD style braces are perfectly readable. I
think transcending "bracism" would be an important statement of maturity
for this framework.