WordPress Themes vs Plugins and the single responsibility principle

Have you every thought about what should go into a WordPress theme and what should go into a WordPress plugin? This is a question that I for sometime have been thinking reading about. The WordPress codex has the following definitions: ”Fundamentally, the WordPress Theme system is a way to ”skin” your weblog. Yet, it is more than just a […]

The single responsibility principle

”A class should have one, and only one, reason to change.” – Robert C Martin If I had to choose one design principle that has been most useful to practice over time it surely is the single responsibility principle (SRP). What is this principle about? The idea is that a module (or class) should only […]