Very early in my programming practice I realized that there is a difference in knowing how to write code and knowing to how to write a good and quality code.
So what is a good code anyways?
First requirement is for the code to work, obviously. But that’s not enough. Because you are usually not the only developer working on a project, and at some point someone might need to change or fix something you wrote. So it’s important that your code is easy to read and understand. It also should be easy to change and maintain so you can respond to clients requirement to change something faster. And it should be efficient and work fast.