
53: SOLID Elixir with Ilya Averyanov
Thinking Elixir Podcast
00:00
The Open Close Principle in Java
An example of the open close that I think of is Ecto and change sets. We don't change the way that change sets works altogether just to add a new validation. That's extending it. In Rails, what this could look like is you're not necessarily inheriting from rails' controller all the time. You have a spot for yourself to extend how the controller works across your entire code base. It's open to extension, closed for modification.
Transcript
Play full episode