If you’ve written PHP for a theme you should know by now that you need to keep anything complicated outside the templates. Functions.php can be a good place for this but there are many pitfalls and considerations you should keep in mind before (over)using it. This talk will examine your choices for organizing the code that makes up a WP site, ensuring you have plugin code in plugins and theme code in themes (it’s not hard!).
Prerequisites: This talk is for people already prepared to write themes and plugins. For best results PHP/HTML/CSS awareness are recommended.