DEV Community

Discussion on: When Over-Engineering Hits You Hard

Collapse
n_develop profile image
Lars Richter Author

Well, consistency is good. I totally agree. But once again, it depends.
Consistency is very important in a lot of cases. Coding guidelines are a classic example. You don't have to love all the rules. But it's better to be consistent than to do your own thing.

I think it's a little different with the techniques I mentioned in the post. With these architectural decisions, there is no "one size fits all" solution. For some parts of the code interfaces, dependency injection and stuff like that are a perfect fit. But there are other parts of the code where this is not a great choice.
As mentioned in the post, sometimes is just a case of "Since I got my new hammer, everything looks like a nail". Ask me how I know. ðŸĪŠ