#Adapter-Pattern
2 notas · última:
Writing extensible Elixir with Behaviours
The post explains Elixir Behaviours as explicit public contracts for interchangeable modules, then shows how Swoosh uses them to support multiple email adapters and flexible configuration.
Reading Rails - The Adapter Pattern
The article surveys how Rails uses the Adapter Pattern to hide differences between JSON libraries, databases, and time classes, keeping a uniform API while still handling library-specific details.
