DEV Community


6 tips for being a better programmer.

Murtaja Ziad
A Full-Stack Web Developer.
Originally published at on ・1 min read

In this article, I will show you 6 tips for being a better programmer.

Photo by Cátia Matos from Pexels

1. Name variables appropriately.

The variable name should define its value, so you shouldn’t name a variable something like x, y, or z.

2. Read the documentation.

Documentation is the source of everything, including educational videos. So, reading them makes you an expert.

3. Split your code.

Instead of writing everything in one large function, split your code into multiple smaller functions.

4. Add comments to your codes.

Nothing is worse than not understanding the code that you wrote a month earlier, right?

5. Build a portfolio.

Make a website and put your work inside it, so people can see your programming and designing uncomplicated!

6. Learn to read others’ code.

When you join a new company, you’re more likely to continue an existing project, so you should be able to read others’ code and improve it.

Discussion (0)