DEV Community

Murtaja Ziad
Murtaja Ziad

Posted on • Originally published at blog.murtajaziad.xyz on

6 tips for being a better programmer.

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.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay