Lead Product Evangelist @Kentico, Founding partner @craftbrewingbiz. love to learn / teach web dev & software engineering, collecting vinyl records, mowing my lawn, craft 🍺
This helps keep the value directly tied to the field.
I still have reservations about using a concretion directly, especially a volatile one (it depends on environment specific config) that is new'd up outside the composition root.
This complicates unit testing, effectively requiring integration tests for this section of code.
That said, direct access to feature state/status is easier to understand and requires less architecture.
👍
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.
Cool! This seems like a good overview of how this library works.
I like Jason Roberts' content on Pluralsight and he seems to have made a real pragmatic library here.
One way I've avoided "scattered strings" used for config is to use the
nameof()
operator.This helps keep the value directly tied to the field.
I still have reservations about using a concretion directly, especially a volatile one (it depends on environment specific config) that is new'd up outside the composition root.
This complicates unit testing, effectively requiring integration tests for this section of code.
That said, direct access to feature state/status is easier to understand and requires less architecture.
👍