Before you go, check out these stories!

0
Hackernoon logoGet Rid Of Mistakes In Coding Once And For All: Useful Tips For Beginners by@RAHULISM

Get Rid Of Mistakes In Coding Once And For All: Useful Tips For Beginners

Author profile picture

@RAHULISMRahul

Front-end Web Developer and Blogger

Here in this post, I am going to tell you about the 10 common mistakes you will make or who knows you're still making as a beginner and will clear them all.

First Mistake

Bad Variable Names

  • Variables are essential in programming. Use them as they are intended. It will not make your life easier but also make it easier for people to help you.
let x = 0.4
// PURELY WRONG

The Correct way

let interestRate = 0.4
// CORRECT WAY

Second Mistake

Repetitive Code

  • Don't Repeat Yourself (DRY). Remember this phrase every time you code. If you're ever copy-pasting your same code in different places, you're falling into this trap.
  • Learn about loops
  • Learn about functions

Third Mistake

Not using comments

  • Early on get the habit of writing comments whenever you create a new function or define logic within your code. <br>

This will help you remember as your codebase grows larger.

It also makes it easier to navigate through your (messy ๐Ÿ˜‚) codes.

Once you've gotten experience start documenting your code properly.

Fourth Mistake

Overusing Frameworks

  • Don't get started with a complex framework without first understanding why you need it in the first place. Ruby, Scala, SQLite, NodeJS, express, whatever. Have Intent.

Most of the time, in the beginning, you can do your basic project with one framework.

Always remember: It's just a tool helping you solve the problem๐Ÿ‘Š.

Fifth Mistake

Not Using Version Control

  • Get in the habit of using a version control. Git, svn, or whatever you want.

Just backup your code to avoid frustration

Sixth Mistake

Complicated Code

  • Why are you writing such complicating code ?

Think about solving the problem simply and efficiently. Simple code is much easier to maintain and understand.

Seventh Mistake

Not Reaching Out For Help

  • You're going to get stuck. Everyone does. Don't give up. Try yourself first. Search for it on google (You'll find most probably on StackOverflow) If you can't find the solution use social media as a tool and ask a question, the amazing developer community on Twitter loves to help.

Eighth Mistake

Have realistic expectations

  • You won't create an app in 2 days or you won't create an Instagram in 5. Start small. Build a few simple projects. Build good habits before trying to move mountains.

Ninth Mistake

Overlearning

  • Don't try learning every new framework.
  • Don't keep watching courses and videos.

Watching is not equalled to learning. Get your hands dirty.

Tenth Mistake

Not Enjoying

This is important

Don't aim to become a developer because it'll pay well or there's "Scope". These are all by-products.

Get into coding because you want to build things and solve problems.

If you don't love what you do, you'll be never good at it.

If you find this article helpful just subscribe, react and comment.

THANKS FOR READING

Previously published at https://blog.rahulism.co/10-mistakes-to-avoid

Tags

Join Hacker Noon

Create your free account to unlock your custom reading experience.