God yeah - this hits hard with me. I work in a place where the DRY principle is chanted like a mantra and I have to push back against it constantly. It’s like the one principle jr. devs learn (along with “never hardcode anything”) that just gets applied to everything whether it makes sense or not.
"These lines of code are very similar, let’s factorize them ! "
“We should take three simple functions that run similar (but different) things and make them call a single large complicated function that takes a parameter that tells it how to execute!”
You just reminded me of the early days at a company I worked where the factory pattern was absolute. There were interfaces and factories for fucking DTOs. It was insanity! That was the place where I really learned the concept of “cargo cult”
God yeah - this hits hard with me. I work in a place where the DRY principle is chanted like a mantra and I have to push back against it constantly. It’s like the one principle jr. devs learn (along with “never hardcode anything”) that just gets applied to everything whether it makes sense or not.
“We should take three simple functions that run similar (but different) things and make them call a single large complicated function that takes a parameter that tells it how to execute!”
::shudder::
You just reminded me of the early days at a company I worked where the factory pattern was absolute. There were interfaces and factories for fucking DTOs. It was insanity! That was the place where I really learned the concept of “cargo cult”