Login | Register
My pages Projects Community openCollabNet

propel
Reply to message

* = Required fields
* Subject
* Body
Attachments
Send reply to
Topic
Author (directly in email)
Please type the letters in the image above.

Original message

Author hlellelid
Full name Hans Lellelid
Date 2006-09-21 07:27:23 PDT
Message Cameron Brunner wrote:
> Against just following the heard and using PEAR standards
>
> switch ( $blah ) {
>
> case 'blah':
>
> echo 'asdf';
> break;
>
> }
>
> indenting the case is something i prefer over not for a start
>
> $long_variable example... well, we could follow that but... painful
> for nothing?
>
> These are just what I like and find easy to follow and read without
> having to think much when i jump into new code. Mostly its just about
> not being lazy and getting over typing a few extra lines to save
> headaches maintaining.
>
Ok, well, it's been awhile since I've looked at PEAR coding standards.
I definitely don't like their variable naming standards. I don't think,
for example, that all private/protected variables & methods should be
prefixed with underscore. I don't think it's necessary -- and in the
case of variables, I think they should generally all be
private/protected anyway.

Hans