WordPress coders have no Class

Some days ago last month, Andrew Rickman blogged about the lack of Object Oriented Design in WordPress. He makes some very thoughtful statements even the article first starts with a lot of assumptions that made it easy for me to misread it.

I share some of his experiences with archtitectural design of wordpress and OOP:

  • Lack of Design and Architecture.
  • Developed by achieving specific things and extended on the way.
  • WP has a functional approach with variables in the global namespace. That is contradictory to the Blackbox character of Objects.
  • Object-oriented code is not necessarily better, it is different.

Additional thoughts can be found in the comments, I think the article and discussion is worth to read for a calmer approach on to the issue(s).

Part of the article is about the topic wether it’s easier for new developers or not. It is assumed that new coders are understanding functional programming better then object oriented (which I do not know if that is really a rule/ the case). I think that question is totally regardless because you can do both in your plugins / themes. So this just is not an issue. The core won’t change to pure OO written code overnight, right?

This entry was posted in Pressed and tagged , , , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.