Using Facades to Simplify Elixir Modules

Hey <<First Name>>,

My Elixir-powered guitar chord project has been continuing to grow in size and complexity. I’ve found myself repeatedly reaching for a pattern to simplify and shorten my Elixir modules. I decided to spend some time this week writing about that pattern.

Check out the full article here.

I initially released the article without the section on Elixir delegates. After pushing the article, Todd Resudek dropped me a line on Twitter and asked me why I didn’t use defdelegate to call into my implementation modules. After a quick trip over to the Elixir docs, I updated my project and the article. Thanks for the tip, Todd!

Later, Alexander Petrov soothed my worries over using the term, “facades”, by explaining that facades are a “higher order architecture” that transcends programming paradigm. I’m a big fan of that description. Those same thoughts were echoed over at the discussion on the article.

The folks behind The Big Elixir also started up a conversation about delegates, semantics, and private modules. What’s your opinion?

As you've probably noticed, I'm playing with a different format for these weekly letters. Love it? Hate it? Hit reply and let me know!
Copyright © 2018 East5th, All rights reserved.

Want to change how you receive these emails?
You can update your preferences or unsubscribe from this list