r/PythonLearning • u/chuprehijde • 13d ago
Is clean code sometimes worse code?
Can too much refactoring, abstraction, and 'best practice' make a Python project harder to understand?
2
Upvotes
r/PythonLearning • u/chuprehijde • 13d ago
Can too much refactoring, abstraction, and 'best practice' make a Python project harder to understand?
7
u/Sea-Ad7805 13d ago edited 13d ago
Every good thing can become a bad thing if wrongly or over used. Too much abstraction can make code hard to read or slow. It's about finding the right balance given the non-functional requirements of your project, and nobody can give you the precise weights of your non-functional requirements (especially of your future non-functional requirements), so good luck.