10 Programming Mistakes to Avoid ❎ 👨🏻‍💻
Tags: programming, development, beginners, coding
Published: 2023-12-12 06:21:11

Hey Friends 👋 

Thanks to everyone who has read my posts so far in the past years and special thanks to my 3500+ dev.to followers for all your support 🙏🏻

<img width="100%" style="width:100%" src="https://media.giphy.com/media/USV6e3zMpJDEU4SYFW/giphy.gif">

As a developer it is common to commit mistakes, but if we are aware of what mistakes we encounter it will literally help us to improve in the long run

**[Mistake 1: Dont learn multiple programming languages at the same time](https://www.youtube.com/watch?v=2xM-ZPdkxqo&t=9s)**

While learning a programming it is necessary to grasp fundamental features like data types, loops, object orientation etc. If you learn one well, you can adapt to others

**[Mistake 2: Skipping the basics](https://www.youtube.com/watch?v=2xM-ZPdkxqo&t=33s)**

Spending a couple of hours learning the basics like classes, objects, variables will help you in the long run

**[Mistake 3: Going with the first solution you find to a problem](https://www.youtube.com/watch?v=2xM-ZPdkxqo&t=46s)**

Find multiple ways to do something and then finalise the solution instead of just picking one.

**[Mistake 4: Not using comments](https://www.youtube.com/watch?v=2xM-ZPdkxqo&t=64s)**

Write comments in a way that it is natural language instead of code. It helps us understand what we can do and also help when the codebase grows.

**[Mistake 5: Make appropriate use of modular functions](https://www.youtube.com/watch?v=2xM-ZPdkxqo&t=84s)**

Modular functions helps in code readability by breaking down a program into smaller functions. Try to define functions which has one purpose.

**[Mistake 6: Not using proper naming conventions](https://www.youtube.com/watch?v=2xM-ZPdkxqo&t=95s)**

This is easy to forget. Writing descriptive naming conventions instead of naming your variables as a,b,c or i,j,k.

**[Mistake 7: Not planning the code](https://www.youtube.com/watch?v=2xM-ZPdkxqo&t=108s)**

Ask few questions to yourself on how you are going to build your project. My approach towards planning the code is described in the below video

**[Mistake 8: Not following DRY](https://www.youtube.com/watch?v=2xM-ZPdkxqo&t=136s)**

Dont Repeat Yourself - DRY. Repeating code segments makes the code difficult to maintain and update on changes.

**[Mistake 9: Inconsistent Indentation](https://www.youtube.com/watch?v=2xM-ZPdkxqo&t=147s)**

Incorrect indentation can lead to syntax errors and makes the code visually confusing. Tools like prettier, eslint etc helps in maintaining consistent and readable indentation style

**[Mistake 10: Dont QUIT](https://www.youtube.com/watch?v=2xM-ZPdkxqo&t=167s)**

Passion is essential to achieve great things, same goes for programming as well. Some may feel hard or easy but consistent practice will surely help you achieve great things

<img width="100%" style="width:100%" src="https://media.giphy.com/media/i3q36zEFShC18oS6v0/giphy.gif">

A more concise, detailed and visual explanation would be provided in this video & this is my first long youtube video and expecting your support 🙏🏻

{% embed https://www.youtube.com/watch?v=2xM-ZPdkxqo %}

_Thanks for your time._

_**If you love this post, please give a like as a sort of encouragement and also share this post in social media which would benefit others.**_

Connect ⬇️
[Twitter](https://twitter.com/home) / [Instagram](https://www.instagram.com/dhanush_nehru/) /  [Github](https://github.com/DhanushNehru/)/ [Youtube](https://www.youtube.com/@dhanushnehru?sub_confirmation=1) / [Newsletter](https://dhanushn.substack.com/)