As a budding programmer, I embarked on my coding journey with great enthusiasm. I had read countless programming books, taken online courses, and diligently followed various coding habits I believed were essential for success. However, it wasn’t until I sought guidance from seasoned developers that I realized some of these habits were doing me more harm than good. In this article, I’ll share 15 programming habits I broke after seeking guidance from those with years of experience in the field.
One of the first habits I had to break was my tendency to over-comment my code. While comments are crucial for documentation, seasoned developers taught me that well-written code should be self-explanatory. Instead of writing excessive comments, I learned to focus on writing clean and concise code that speaks for itself.
In my early days, I was hesitant to use version control systems like Git. Seasoned developers emphasized the importance of version control in collaborative coding projects. Learning Git and using it consistently has improved my coding workflow and made me a more efficient developer.
I used to dread code reviews, fearing criticism of my work. Seasoned developers encouraged me to embrace code reviews as opportunities for growth. Now, I actively seek feedback from my peers, knowing it helps me write better code.
As a beginner, I stuck to the programming languages and frameworks I was most comfortable with. Seasoned developers advised me to be open to learning new technologies and languages. This flexibility has broadened my skill set and made me a more adaptable programmer.
I used to write long, monolithic functions that were challenging to debug and maintain. Seasoned developers taught me the importance of writing modular and concise functions, making my code easier to read and troubleshoot.