4 ms·
Excellent post. I like seeing advanced PHP stuff here. The ignored step-child of languages around here, it seems. Even though I'm a bit of an OO snob and use
by jakejake 15y ago
Excellent post. I like seeing advanced PHP stuff here. The ignored step-child of languages around here, it seems.
Even though I'm a bit of an OO snob and use design patterns in my work, I also like the simplicity of WordPress's plugin system. I'm not even sure what it would be called but it's proven to be really effective with thousands of plugins.
- ircmaxell 15y ago@jakejake Wordpress uses a procedural version of the mediator pattern (just like Drupal's hooks). As I said in my post, just because an application doesn't use classes, doesn't mean it's not OOP or borrowing OOP patterns (and Drupal is actually a pretty good example of that).
- jakejake 15y agoI suppose resembles the mediator. I just find it to be really simple even though I don't write code in a procedural style, I appreciate different techniques. I think what makes me an OO snob is that I want the interfaces to be there so my IDE or the compiler/interpreter can tell me if I missed a parameter or didn't return the right type.
- troels 15y agoActually, my impression is that the php-is-bad dogma has eased up a bit recently. And good at that - programmung language religion gets boring very fast.
- jakejake 15y agoIt is strange and interesting to see the perception of a language change. Javascript has probably had the fastest and most extreme change in my mind - going from a tool for building doo-dads and alert boxes to one that has MVC frameworks, server-side code, etc.
- NameNickHN 15y agoEven though I'm not a Wordpress fan, I recently adapted their plugin system for one of our projects. I really like the simplicity of it.
- jakejake 15y agoI do as well. Just having every function that you write instead of returning values, return values through a "do_plugins" function. It's such a simple and easy thing to write into your code with almost no effort, yet if you do it for every function your app would wind up being extremely pluggable.
- ethanpil 15y agothis seems interesting. any (simple) examples I can study?