0
what are the best coding habits?
coding habits
4 Answers
+ 2
Think twice code once.
+ 1
Good Habits:
https://www.hongkiat.com/blog/developer-habits/
https://www.wanderlustworker.com/the-8-best-programming-habits-all-coders-should-have/
http://blog.teamtreehouse.com/7-good-developer-habits-wish-id-developed-sooner
Bad Habits:
https://techbeacon.com/35-bad-programming-habits-make-your-code-smell
Post I made earlier about how I plan my code:
1. Write down a problem-statement and my general plan of resolving that problem.
2. Write pseudo code so that I can create a road map for the program and get an idea of how I'll want it to flow prior to writing any code. This helps think of things you may not have anticipated. As well, when it comes time to write the code, you'll be able to do it with more ease and gives you less potential of having to start anything over because you didn't plan properly.
3. After I have a good idea of what I want to do and how, then I break everything down into individual sections. Depending upon the size of the project, I may just break it down into its various classes or may have to break it down further than that if it's a huge project.
4. Once I have everything broken down into chunks, I organize the list in the order that I'll work on them. I create a spreadsheet and I keep track of my progress so I can hold myself accountable. Mostly, I adopt most of the SCRUM concepts. (https://www.scrumalliance.org/why-scrum)
5. I brew a pot of cofee and get busy coding!
6. When I'm done with one chunk, I do extensive testing on it before moving to the next chunk. When you're done, do extensive testing - test anticipated ranges and test a few extremes.
7. Make sure that you created proper documentation on your program.
+ 1
Just the right amount of background distraction. To me, that is my Red Dwarf boxset.
0
self documented code through good commenting