DEV Community

Cover image for How to be a better coder ?
Muhammad Ali (Nerdjfpb)
Muhammad Ali (Nerdjfpb)

Posted on

How to be a better coder ?

When I first start coding, I found it easy and thought that we can get from the google and coding so easy. But within time I understand that my this idea was flop. So I try to make myself better coder and started to learn many things also started working on my other skills too. Now I know properly why I do coding. Are you aware that why you are coding ? First find your “Why”. That is really important. Today I’m going share some tips how you can be a better coder. Have a look –

  • Don’t memorize, understand the logic and flow.
  • Read documentations, because they know the best. But sometimes, official documentations are not good, so use some tutorial or blogs to understand.
  • Stop watching so many tutorial, just work on code.
  • Try to refactor the code you already wrote.
  • Stop comparing yourself with others, your solution can be different from other but try to achieve the best performance or quality code.
  • Stop overthinking to solve a problem. First use some baby step and finally make it better with taking time.
  • Organize your folder properly so you can work with a team easily.
  • Try to naming variables or function properly

There are so many other tips also. But I just wanted to keep it simple and short. Long articles are pain sometimes right ? I have the same feelings while I read too. Do you get now what you should do ?

You can see the graphical version here

Originally it published on nerdjfpbblog. You can connect with me in twitter or linkedin !

Top comments (11)

Collapse
 
daleran profile image
Sean M Davis

All good stuff. I would recommend reading the book "Clean Code" by Robert C. Martin. It goes over a lot of what you recommend.

Collapse
 
cardotisler profile image
Cardo Tisler

Perhaps a silly question but would you say a book like this expects a lot of previous knowledge about coding from the reader? Or would you rather recommend this book as early as possible for a developer who is just starting out?

Collapse
 
daleran profile image
Sean M Davis • Edited

Learn a language and basic programming concepts first. (Data structures, algorithms, basic principles, and language syntax.) This would probably be a good read towards the end of your "beginner" learning path. You don't need to be an expert programmer to gain a lot from Clean Code but a pure beginner may not be able to glean as much useful information yet. I would read it before you get too far though and start ingraining bad habits.

Collapse
 
nerdjfpb profile image
Muhammad Ali (Nerdjfpb)

I didn't learned through books honestly and I find that understanding something by reading book is hard, when it is a technical thing.
I was a video so that I can hear and see and try to understand how someone is doing it.
Then after writing code I spent time with to playing and changing values, think more about! This is how I learned coding!

Book can be a great resource for coding, but for me I don't prefer books when starting, but when you know some part of coding, then you can drive into books. Because you can think in your head that time!

Collapse
 
nerdjfpb profile image
Muhammad Ali (Nerdjfpb)

That is a very good book. Actually I cut it short, because I think many people don't have time to read all the stuff.

Like I could've easily include - github.com/ryanmcdermott/clean-cod...

This one! But I didn't!

Collapse
 
etampro profile image
Edward Tam

Seriously good stuff. One of the most influential read in my entire career life.

Collapse
 
nerdjfpb profile image
Muhammad Ali (Nerdjfpb)

Yes! Clean code is an awesome book!

Collapse
 
nerdjfpb profile image
Muhammad Ali (Nerdjfpb)

But I think for majority they just watch tutorial. I always code with the tutorials, but there are many people who didn't even try to do code while watching tutorial.

They just know what the instructor teach, they don't even change the values and check other cases.

Also some people ended in a tutorial loop, they keep watching those, but can't build a single thing!

That's why I added this one!

Collapse
 
mwansa19 profile image
Mwansa Chupa

Very insightful. Great article

Collapse
 
nerdjfpb profile image
Muhammad Ali (Nerdjfpb)

Thanks man!

 
nerdjfpb profile image
Muhammad Ali (Nerdjfpb)

Yaah!!!