3 ms·
I agree with the idea of not maintaining an intermediate representations of things that serve no useful purpose. But the pattern the author argues against isn'
by jmull 2y ago
I agree with the idea of not maintaining an intermediate representations of things that serve no useful purpose.
But the pattern the author argues against isn't necessarily bad. Certainly not an "anti pattern" or against "the spirit of the law".
Take their own example. An app may very well render a certain set of "nav items" to JSX in multiple ways. In that case it probably makes sense to define the common parts separate from the JSX -- otherwise you'd have to maintain each list of nav items in JSX separately.
- mikojan 2y agoThis is not an issue. It is a stylistic question ("Do I express this in JSX, or in JSON?"). Only, this question has already been answered for you.