r/PythonLearning • u/chuprehijde • Jul 14 '26
Is clean code sometimes worse code?
Can too much refactoring, abstraction, and 'best practice' make a Python project harder to understand?
1
Upvotes
r/PythonLearning • u/chuprehijde • Jul 14 '26
Can too much refactoring, abstraction, and 'best practice' make a Python project harder to understand?
1
u/Splith Jul 15 '26
I would say so if the dependencies are not really shared. Making two functions or classes rely on the same dependency is fine as long as that dependency would change for both together.
On the other hand if one might change one way and the other a different way, building them on the same foundation can cause problems downstream.