Re:I Have a Dirty Secret. I’m a Software Craftsman
by 88913527 on Sunday April 23, 2023 @03:20PM
(#35679571)
Rules of thumb get pumped hard because it's easier to have a simple, global message to all engineers on the team than it is to express nuance. Everything has a time and place, but telling people that doesn't really give them the tools to succeed. Identifying general usage patterns that work well 80% of the time is a better message, and you can add that 'there are no silver bullets'. The only way people can develop a fine-tuned sense of when to follow patterns and when to deviate is empirically with more experience.
Even DRY, I've seen DRY cause test suites become hard to work with. Rules of thumb sometimes get pumped really hard and I think it causes people to over-use them. The rule becomes the goal rather than something more material like UX or DX. This code is DRY, DRY is good, therefore this code is good - I hear arguments like that quite often. But your take feels very grounded.