DEV Community

Discussion on: What do you think about the idea that "there should be only one way of doing a thing" in programming languages?

Collapse
 
protium profile image
protium

I think flexibility is good for a solution to evolve in the most enhanced version of itself. But there should exist boundaries around it. Boundaries and flexibility is a good combination to get the best from both worlds (one way/undetermined way) and end up with something good.

I've refactored many code in my career. And I like to read solutions from years ago and refactor them. Can I get a better solution? Does this hypothetical better solution worth the effort?

I'm that guy in the team who is against to "this is the only way" but just because a team needs a guy like that. It worked so far.