Unless I'm trying to avoid dependencies, my usual go to for configuration is dry-configurable as it provides a nice way to to define, even deeply nested, settings.
As a bonus you get settings thread safety.
Oh, nice! I had not heard about that one, will have to check it out. And yeah, the solution in this article is not thread safe.
Dry-rb has a lot of nice gems with basically no heavy dependencies.
Totally worth a look. Maybe worth an internal presentation @ Shopify, fellow Shopifolk.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Unless I'm trying to avoid dependencies, my usual go to for configuration is dry-configurable as it provides a nice way to to define, even deeply nested, settings.
As a bonus you get settings thread safety.
Oh, nice! I had not heard about that one, will have to check it out. And yeah, the solution in this article is not thread safe.
Dry-rb has a lot of nice gems with basically no heavy dependencies.
Totally worth a look. Maybe worth an internal presentation @ Shopify, fellow Shopifolk.