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

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
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

"I really want to break into Product Management"

make products.

"If only someone would tell me how I can get a startup to notice me."

Make Products.

"I guess it's impossible and I'll never break into the industry."

MAKE PRODUCTS.

Courtesy of @edbrisson's wonderful thread on breaking into comics –
https://t.co/TgNblNSCBj – here is why the same applies to Product Management, too.


There is no better way of learning the craft of product, or proving your potential to employers, than just doing it.

You do not need anybody's permission. We don't have diplomas, nor doctorates. We can barely agree on a single standard of what a Product Manager is supposed to do.

But – there is at least one blindingly obvious industry consensus – a Product Manager makes Products.

And they don't need to be kept at the exact right temperature, given endless resource, or carefully protected in order to do this.

They find their own way.
First update to https://t.co/lDdqjtKTZL since the challenge ended – Medium links!! Go add your Medium profile now πŸ‘€πŸ“ (thanks @diannamallen for the suggestion 😁)


Just added Telegram links to
https://t.co/lDdqjtKTZL too! Now you can provide a nice easy way for people to message you :)


Less than 1 hour since I started adding stuff to https://t.co/lDdqjtKTZL again, and profile pages are now responsive!!! πŸ₯³ Check it out -> https://t.co/fVkEL4fu0L


Accounts page is now also responsive!! πŸ“±βœ¨


πŸ’ͺΒ I managed to make the whole site responsive in about an hour. On my roadmap I had it down as 4-5 hours!!! 🀘🀠🀘