Write the code you would love to read later and feel proud of.
Learn new methods of problem solving daily.
StackOverflow and books like ‘Programming Pearls’ are great resources
Read lots of code written by other people.
It either introduces new features in that language/framework or might excite you with a clever hack!
Write tests, even for edge cases.
It helps you to refactor the code without worries.
Have a notion of security while writing code.
A small hole we intentionally ignore may cause big problems in future.
Try to write the code in small independent units.
It helps while refactoring future.
Have a colleague or a friend to review your code and give you open suggestions.
Share the reusable bits you write – it often leads to creative discussions.
Use the best practices.
Listen to good podcasts and engage in social coding activities.
It’s all about continuous learning.
I believe the desire to improve the quality of code itself improves the code we write
More Resources on What can I do to improve the quality of my code:
Read more about What can I do to improve the quality of my code: