RSSAmplifier

Aaron Renner’s Blog · Jul 22, 2023

Walkthrough of Elixir’s Adapter Pattern

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

Sometimes we need to be able to change how parts of our application behave depending on the environment we’re running in. Examples of this include: Toggling sms gateway adapters (production sends a real sms while staging redirects sms to a test phone number) Testing with a stubbing library like Mox If the behavior change is large enough and needs to happen application-wide (like using a different…

Read on localhost

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.