3 ms·
>making your little corner of the codebase nicer than the rest of it is fine, actually As TFA points out, you might find out that you've made your little corne
by devnullbrain 2y ago
>making your little corner of the codebase nicer than the rest of it is fine, actually
As TFA points out, you might find out that you've made your little corner worse, actually.
- lmm 2y agoI don't think the examples add up. Like, yes, if the system has a way to do auth then you should use it. But if the system's way of doing auth has nasty surprises, rather than cargo-cult the workaround to those nasty surprises, you should fix them! (Especially if the article wants to argue that adding inconsistency is bad - then by the same token removing the inconsistency that someone added before you is good). And if the system has its own custom auth implementation that does the same thing as a standard library, you should probably pull it out completely and replace it with that standard library.
- devnullbrain 2y agoThat's the wrong model for the example. Some nasty surprises are derived from real world complexity. Imagine something like a timezone library. Also: >you should fix them! OK, great! See you in 10 years when you've fixed everything and are ready to start implementing stakeholder requirements.