I have been writing software for over a decade.

My 5 best advices for developers

that will save you 1000+ hours (๐Ÿงต):

โšก๏ธ On writing code

Solve the problem *before* writing code.

Clear code >>>> Clever code

Always optimize code for readability

and THEN efficiency (if required)

Remember:

You are not bad at coding.
You just need more practice.
โšก๏ธ On debugging code

Code doesnโ€™t do what you expect

it does what you tell it to do.

Be ready to spend hours bridging the gap.

When debugging:
โ€ข Pay attention to error messages
โ€ข Use debuggers
โ€ข Ask for help when stuck

Prefer refactoring buggy code

over adding new code.
โšก๏ธOn testing code

Developers today are expected to:
โ€ข write software quickly
โ€ข without shipping bugs

Know that some tests are more important than the others.

Start with ad-hoc testsโ€ฆ

But use test automation as much as possible.

Test less. But smarter.
โšก๏ธ On writing documentation

Good code is self-documenting
but you should document tradeoffs
and decisions of your code.

Some tips:
โ€ข Automate doc generation
โ€ข Document just enough
โ€ข Use tests as documentation

Just remember that..
no documentation >> incorrect documentation
โšก๏ธ On code reviews

Code reviews are to ensure that code
โ€ข meets required functionality
โ€ข adheres best practices

Avoid reviewing large code changes.

Establish a process. Use checklists.

See code reviews as a form of

knowledge sharing.

Learn from feedback.
TL;DR

- On writing code
- On debugging code
- On testing code
- On writing documentation
- On code reviews
That's it!

If you enjoyed this thread:

1. Follow me @codewithvoid

2. Retweet to share it with your audience

https://t.co/KCMShmdeVG

More from Catagory jee

The average salary for a Data Scientist is $117,000.

Want to become a Google Certified Data Scientist?

Here are 4 free courses from Google you don't want to miss:

1. Learn Python basics for data analysis

This course is designed to teach you the fundamentals of the Python programming language, especially for the purpose of data analysis.

๐Ÿ‘‰
https://t.co/q8SIIUytbM


2. Introduction to Data Science

This course will give you a comprehensive introduction to Data Science and Analytics Landscape.

๐Ÿ‘‰ https://t.co/QwYX0U0mzY


3. Data Science with Python

This Data Science with Python program provides learners with a complete understanding of data analytics tools & techniques.

This program is an ideal kickstarter for anyone looking to become a data scientist today.

๐Ÿ‘‰ https://t.co/jVlrdbX654


4. Data Science with Python

Getting started with Python can help you gain knowledge on data analysis, visualization, NumPy, SciPy, web scraping, and natural language processing.

This program is an ideal kickstarter to become a data scientist today.

๐Ÿ‘‰ https://t.co/B70J8zD74g

You May Also Like