What good habits should a beginner programmer start to develop as early as possible?

  1. Focus on good code decomposition
  2. Learn how to rigorously and systematically debug code
    I like the point about using scientific method in debugging code, I also do that.
  3. Start writing tests
    I notice this important point thanks to my senior. He introduced to me the concept of automated testing. I find it important because there are too many things to test and its hard to keep track, instead, code tests into your code and your will remember and it is automated, also saves the work of the tester.
  4. Have a good sense of craftsmenship
    A good point about googling about X best practices and X style guide before writing code where X may be the language you are coding e.g. PHP, JavaScript, etc.

Reddit: What good habits should a beginner programmer start to develop as early as possible?

Leave a Reply