2012年7月10日星期二

Community News: PHP, The Right Way Site Launches


In response to some of the recent talk about the quality of PHP and some of the recent suggestions about the right and wrong ways to write PHP, the PHP The Right Way site has been lunched.



There's a lot of bad information on the Web (I'm looking at you, W3Schools) that leads new PHP users astray, propagating bad practices and bad code. This must stop. PHP: The Right Way is an easy-to-read, quick reference for PHP best practices, accepted coding standards, and links to authoritative tutorials around the Web. It is important to understand there is no canonical way to use PHP. That's the beauty of it. This website introduces new PHP developers to best practices, available options, and good information.


The site has some "getting started" tips for working with PHP 5.4, links to some of the current PSR standards and gets into some of the best practices for things like proper OOP structure, namespacing and using the SPL. There's also hints on using Composer for package management, working with databases and some basic parts on security and testing.



Additionally, the site is also an open source project so you can contribute your own content (it'll have to be approved before merging) on topics you might not see or want to improve.

没有评论:

发表评论