There’s a lot of outdated information on the Web that leads new PHP users astray, propagating bad practices and insecure code. PHP: The Right Way is an easy-to-read, quick reference for PHP popular coding standards, links to authoritative tutorials around the Web and what the contributors consider to be best practices at the present time.
#coding
Emmet Documentation
Child of ZenCoding, Emmet gives you some really powerful snippet-completion powers for writings lots of HTML quickly.
PHP 4/5 class library for Google Data APIs
PHP 4/5 class library for Google Data APIs
Handles AuthSub, requests, etc. Includes a sample application that the developer built for working with GCal.
zen-coding
An awesome plugin for TextMate that gives you a really powerful “abbreviation” syntax for writing blocks of HTML and CSS really quickly.
The Duct Tape Programmer
Awesome article on the non-design-pattern, non-over-architecting approach to software development. It’s all about getting shit done, and shipping product.
Quick PHP Tip
If you’re coding in PHP and checking variables to see if they have a strlen() == 0, or isset() or a variety of other possibilities, you might consider using empty() instead. It’s quite versatile and is nice because it doesn’t trigger any warnings or notices if you use it on a variable which hasn’t been set yet. Here are some examples to show you what it will match against:
<?php $zero_string = '0'; $zero_int = 0; $false = false; $empty_string = ''; $array = array(); $obj = new stdClass(); echo empty( $zero_string ) ? "'0' = empty\n" : ''; echo empty( $zero_int ) ? "0 = empty\n" : ''; echo empty( $false ) ? "false = empty\n" : ''; echo empty( $empty_string ) ? "'' = empty\n" : ''; echo empty( $array ) ? "array() = empty\n" : ''; echo empty( $obj ) ? "stdClass() = empty\n" : ''; echo empty( $foo ) ? "foo is empty (and the variable was never set)\n" : '';
WordPress CodeSniffer Standard
WordPress CodeSniffer Standard
Checks your PHP code to see how well it conforms to the published WordPress Coding Standard.
Data Validation
Excellent reference of data validation/sanitation functions and approaches used in WordPress.