Writing WordPress code that stays maintainable
A WooCommerce shipping calculator was one 2,000-line file that broke every time a class was added. Refactoring it around a simple interface and small classes fixed that, and it shows how WordPress core can teach better PHP.