DEV Community

loading...

Discussion on: My developer journey: learn from my mistakes

Collapse
tinazhouhui profile image
Tina

I wonder, do you think paying attention to clean code and standard code style should also be at the beginning? As in, I am now learning Python and I have a great mentor who puts a lot of emphasis on this (we use an automated code review app) so I just wonder how do other people view this, thanks!

Collapse
mouadkh9 profile image
Mouad K. Author

It is important to try to write code as clean as possible, but if you're just a beginner don't spend too much time on it. The "Perfection Trap" is when you get stuck on minor tasks trying to write flawless, optimized code when you don't have to, instead aim for being good enough, and if you have enough time try to refactor later.