2 min read

Baader-Meinhof and Drupal

Baader-Meinhof and Drupal

It's a phenomenon that I experience a lot. Once you learn about it and learn the word, you'll more likely than not experience a Baader-Meinhof phenomenon with the actual name of the phenomenon itself!

I'm not going to repeat too much what this site says about Baader-Meinhof but I will give my own experiences of it in relation to Drupal. I have to keep this blog vaguely relevant right?

Over the past few days I've been doing a little more work on another​ contrib module. It's currently still in sandbox but when I, and some of the community, are satisfied with it I'll promote it to a full project. Writing README files isn't really my idea of a good time but I'm aware of how necessary it is. README and INSTALL files like those linked are some of the most downright unhelpful things to be included in modules when you can't accomplish what you set out to immediately.

Within that module I decided that rules integration would be an excellent idea. I gave The Tiny Book of Rules a whirl and set out to write the custom events, conditions and actions that would give the module some much desired automation. It must be said that I've not really paid a lot of attention to rules before. Sure I'm aware that you essentially have to use it for anything Commerce related and I've heard tales of its uses but I've never really dabbled in it personally.

So here's the twist. Today whilst discussing methods to allow certain users instant access to auth-only material, rules seemed the perfect choice. I was able to explain how to implement something and​  I could even use complex words like 'action' and 'event'!

To the pre-Baader-Meinhof ​Adam Malone​ that's a spooky coincidence! I only learned about it a few days ago and suddenly it's useful, however I must now accept the more mundane answer. There have probably been a hundred or so other times prior to this where rules could be used to solve some issues that were plaguing us. However, because I was unaware of its power I did not suggest it. Now that I know of rules, sure enough, a use case appears and it seems like magic that I only learned about it the other day.

It's a sign!

The article linked above really is worth a read and I can guarantee you'll start experiencing your own personal Baader-Meinhof phenomena soon.