What are 10 tips for effective coding?


  1. Get a solid nights sleep. Coding is mentally exhausting;
  2. Work out. Sitting in a chair for 8 solid hours is physically demanding;
  3. Don’t overdo it. Coding marathons lead to shit code. Shit code will haunt you for years;
  4. Be wary of the Zone. The Zone is a mental state where nothing but code exists. You feel focused. You feel like you’re racing! You’re not. Like a racehorse, you’re wearing blinders that prevent you from seeing what is going on around you. Which brings me to my next point;
  5. Walk away. Often. This one’s from personal experience. I like hammering on a problem until it is fixed. Quitting in the middle feels like giving up. It feels like failure. The irony is that when I walk away the quiet part of my brain has a chance to whisper some really good ideas to me. Ideas that solve the problem without wrecking the code. This happens when I enter ‘The Zone’ and step out;
  6. Be on good terms with your spouse and children. Nothing kills creativity more than worrying if your partner is going to leave you or if your children will grow up to hate you. Coding is demanding. Coding is addictive. You’ll be tempted to spend every waking hour thinking about it or fiddling with some new idea. There’s a time and place for that and it comes after your family, your foundation, is in order;
  7. In your own time, work on your own code. Do something fun. Do something pointless. Abandon with abandon. There is no pressure to finish anything other than the pressure you put on yourself;
  8. You’ll never know everything so don’t even try. Keeping up with the pace technology is evolving is nigh impossible. Know what you need to know and know it well. Then, dig a little bit deeper;
  9. Work in a quiet place. Wear headphones if your office is noisy. I personally never listen to music as I find it more distracting than helpful;
  10. Don’t rely on coffee or energy drinks to keep you ‘buzzing’. This is a clear indication that you’re too tired to do good work.

As you may have noticed, my ‘top 10’ tips had nothing to do with coding or coding practices. This is because feeling good is a prerequisite to writing code effectively.

Happy coding :)


COMMENTS

Name

5G,1,Business,2,Bussiness,3,C,2,C++,4,CodeProject,3,Companies,5,Computer,1,Dev.to,1,Facebook,1,Featured,1,Future,2,Google,4,Javascript,2,Microsoft,2,Motivation,6,PHP,3,Programmer,6,Programming,14,Projects,1,Python,3,Quantum,1,Quora,10,Software Development,3,Tech,4,VS Code,2,
ltr
item
9to5Programmer: What are 10 tips for effective coding?
What are 10 tips for effective coding?
Get a solid nights sleep. Coding is mentally exhausting; Work out. Sitting in a chair for 8 solid hours is physically demanding; Don’t overdo it. Coding marathons lead to shit code. Shit code will haunt you for years;
https://i.imgur.com/zsmzUCr.jpg
9to5Programmer
http://www.9to5programmer.com/2019/02/what-are-10-tips-for-effective-coding.html
http://www.9to5programmer.com/
http://www.9to5programmer.com/
http://www.9to5programmer.com/2019/02/what-are-10-tips-for-effective-coding.html
true
1435496506228626257
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy