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
Top 10 Threads of the week 📈

Learn about Linkedin, Tools, Websites, Css, Youtube, Business, Presentation, Copywriting... And much more 🧵

1️⃣ 10 Free websites that feel illegal to use:

Topics: Tools, Websites, Website, Productivity, Web.
By: Ben Kelly


2️⃣ 9 CSS generators can save you from writing CSS Code...

Topics: Css, Frontend, Generators, Cssgenerators, Design.
By: Pratham


3️⃣ Even the most well-informed internet user wouldn't...

Topics: Websites, Tools, Website, Useful, Sites.
By: Alex Brogan


4️⃣ CSS generators can save you a lot of time and...

Topics: Css, Tools, Dev, Webdev, Generators.
By: Marko ⚡ Denic
Tools you will regret not knowing as a coder (trust me)🧵 ↓

👨‍💻 Icons:
https://t.co/v0dkE7xnM3
📝 Resume: https://t.co/nOBrCRzGYd
🎨 Illustrations, vector images: https://t.co/MSDgzqyndc
🍥 3D icons: https://t.co/skKrqgJMdy
🗃️ Create visual guides: https://t.co/pUmq0rXTrA
➗ Learn sorting visually:

📚 Learn Anything: https://t.co/m76TvGCi3y
🎠 Create bg with text: https://t.co/iFSixERygy
🍥 Source code to picture: https://t.co/azc3n5mlh5
🎥 Photo engine: https://t.co/4FusgEFSd4
👨‍💻 Handy Dev tools: https://t.co/H8HeFi5n3E
🎨 High-class illustrations:

Thanks for checking this out.

Follow @saumya1singh for more such threads. I generally write about tech, mobile app development, open-source, paid opportunities in tech, job updates & my journey! ✨

If you loved this, like and retweet the first tweet to help others.

You May Also Like