3 ms·
Convention over configuration achieved with opaque magic can actually harm the dev process more than it helps.
by kaonashi 13y ago
Convention over configuration achieved with opaque magic can actually harm the dev process more than it helps.
- alipang 13y agoHaskell: favor composition over configuration over convention.
- kaonashi 13y agoIt works well for JS, too. Favor function composition & higher order functions for code reuse over complicated prototype hierarchies.
- platz 13y agofunction composition in js can be tricky to visually parse the "types" (especially if curried).
- kaonashi 13y agoIt depends on the return value, yes. I usually try to keep modules small and use some kind of threading (needle + thread analogy, not os threads/web workers) strategy when building functions -- pulling out common patterns into globally visible utility functions that work with common types (e.g. jQuery events/objects). It's not ideal, but in the absence of a true type system, it's all about mitigating potential problem areas.
- badman_ting 13y agoYeah, it kicks your ass when you're just getting started and helps you move somewhat quicker once you have experience. But I have observed what you point out many times. I'm not sure it's worth it, in the end. You learn how to Google error messages, that's for sure.