Code Quality, Standards, and Best Practices: Discuss!
Code, Standards, BestPractices. Who cares anyway?1. Your users / customers / clients2. The community3. Potential employers4. You!
“Knowledge is power”But what do you need to know?1. Coding according to standards2. Following best practices3. How to do things the “WordPress Way”4. When to do what (easier said than done...) Quote: Sir Francis Bacon
“With great power comes great responsibility”1. WordPress is an Open Source platform2. Release themes into the wild3. Release plugins into the wild (even easier!)4. Posting code snippets Quote: Stan Lee via Uncle Ben
“Imagination is moreimportant than knowledge”1. Being able to apply knowledge2. Solving problems you’ve never seen before3. When should you use Custom Post Types? When should you add extra database tables?4. Knowing where to look... Quote: Albert Einstein
“I do not carry such information inmy mind since it is readily available in books.”• http://codex.wordpress.org/WordPress_Coding_Standards• http://codex.wordpress.org/CSS_Coding_Standards• http://codex.wordpress.org/Site_Design_and_Layout• http://codex.wordpress.org/Theme_Review• http://codex.wordpress.org/WordPress_API’s• http://codex.wordpress.org/Creating_Tables_with_Plugins• In case it’s not clear… WordPress Codex! Quote: Albert Einstein
“No man is an island”1. Not much hasn’t been done before by someone somewhere2. Be a part of the community. Ask questions, give answers3. Peer reviewing code4. No stupid questions, only stupid not to ask Quote: John Donne
“Never neglect the little things”1. Skimping on quality hurts your client, your client’s clients, and you2. Proper planning. Use milestones, and be realistic3. Client education and communication Quote: Og Mandino
Thank you!• Slides are here: http://japh.com.au/wcgc2011/• Follow me here: http://twitter.com/Japh• Talk to me here!