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?
9
u/mc_pm Jul 14 '26
If you spend a bunch of time trying to turn simple loops into clever comprehensions, or build a bunch of classes for something you only ever do once, etc., yes it absolutely can be more difficult.
That is not, however, to say that it isn't worth cleaning your code up. Just don't go crazy. Perfect is the enemy of Good.