Single Responsibility Principle - what does it mean to you and your Elixir apps?

I’m moving my thoughts out into a separate post here :slight_smile:

To me the SRP means:

  • Functions should only be responsible for one thing (use multiple function definitions instead of multiple if/elses)
  • Modules should only be concerned with one thing

I’m not sure if this counts as part of the SRP, but apps being split into components could be closely related as well.

2 Likes