Live data from Hacker News

PHP: The Right Way

phptherightway.com

1–10 of 233 posts

Re: PHP: The Right Way

#4
Straight, simple and to the point. Nice.

Missing test and QA tools though. Probably an oversight, since the author does suggest following Derick Rethans and Sebastian Bergmann.

And another one: read up on the SPL library before you start re-inventing that wheel.

Re: PHP: The Right Way

#6
Something to consider mentioning - there are some in PHP these days that take this sort of stuff a bit too far. Drives me nuts to see people writing classes to encapsulate a 3 column database result. So much overhead and boilerplate.

Re: PHP: The Right Way

#7
post #4

Straight, simple and to the point. Nice. Missing test and QA tools though. Probably an oversight, since the author does suggest following Derick Rethans and Sebastian Bergmann. And another one: read up on the SPL library before you start re-inventing that wheel.

All good points. If you'd like to submit a pull request, I'll be happy to credit you with the additions and get them added to the site.

Re: PHP: The Right Way

#9
I'm wondering why a specific code style is 'enforced' while it has nothing to do with interoperability.

Libraries with different code styles can be used together without problems. It seems like they are using the PSR to declare they're own style as superior.

Post reply on HN