[wp-hackers] Coding style

Stephen Sadowski stephen.sadowski at gmail.com
Mon Jul 3 21:57:03 GMT 2006


5. I personally think that all code blocks should be bracketed for the same
reason that Brian mentioned.

6. Doesn't casting break backwards compatibility to PHP4? I'm a little rusty
there, but I had thought that was something that was introduced in PHP5.

Alright, back to lurking now.

-S


On 7/3/06, Brian Layman <Brian at thecodecave.com> wrote:
>
> > This may be too intense for coding guidelines, but it seems to be the
> > convergent style.
>
> You're right about that.  The level of detail is a concern.  I thrive on
> rules like this, but it also can lead to hours/days of lost time in a
> project nit picking over code that executes perfectly.
>
> Re: your list
> 1, I already voiced my opinion.
> 5, I lean towards the former because too often the coder does the
> indenting
> wrong and the braces make the code explicit and clear.
>
> The rest of them I wholeheartedly agree with as best practices (though I
> hadn't thought of #6 before).
>
> _______________________________________________
> Brian Layman
> www.TheCodeCave.com
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list