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.
My name is Ikechukwu Charles. I am a Front-end web developer. I really love honing my skills to the extent that I started writing my own Javascript UI library from scratch, and playing basketball.
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.
Is it bad if I don't refactor my code? Because I just don't do it. It feels too time-consuming.