Make your code simpler to read and simpler to debug by breaking apart your conditional statements and exiting the function whenever possible. This helps to: make your code simpler ensure your functions have one purpose keeps your functions smaller makes your code easier to read makes your code easier to debug
Problem Difficult to modularize code and maintain separate repos. Submodules are difficult or problematic to use. Solution Git Subtrees allow you to track and update a repo within a repo without the headache of submodules. For a more in depth read on what / why – check out Vinicius’ awesome article. Setup 1. Add remote […]
When working with caching strategies, it’s important to step through your invalidation strategies. Namely, thinking through at what point does the data that you’re caching get regenerated, how does it get regenerated and who is regenerating it. It could be regenerated any time a new post is published, on a save_post hook by an author or […]
I did a quick screencast on what the WordPress Template Hierarchy is and why understanding it is one of the first steps to becoming a good WordPress developer.