DEV Community

Cover image for 5 habits every developer should adopt!
Pasca Vlad
Pasca Vlad

Posted on • Edited on • Originally published at vladpasca.hashnode.dev

5 habits every developer should adopt!

If you found value in this thread you will most likely enjoy my tweets too so make sure you follow me on Twitter for more information about web development and how to improve as a developer. This article was first published on my Blog.

1. Don't repeat yourself

This habit is based on DRY.

The “Don't Repeat Yourself” principle is a software development practice aimed at reducing the repetition of information.

So when you have a piece of code that repeats in your codebase try to put that into a function.

2. Code every day

This is so important especially if you're learning how to code.

Typing some code for as little as 15 minutes every day can increase your skills a lot faster.

And by developing this habit you won't rely on motivation.

3. Never stop learning

Being a developer is a lifelong learning journey.

The worst thing you can do as a developer is to stop learning new technologies.

This field evolves so fast and you need to keep up with it.

4. Think before you write code

Don't just write code without having a solution in mind.

Start by thinking about the solution for the problem you want to solve and only after that start to write it.

This will save you a lot of time down the road.

5. Avoid burnout

Listen to your body.

When you feel like you need some rest take a break.

Burning out == at least a few weeks of no code.

A small break from time to time can help you avoid this.

Conclusion

I hope found this useful and if you did please let me know. If you have any question feel free to DM me on Twitter .

Latest comments (32)

Collapse
 
sara_kh06 profile image
سّ ا ر ة

.. / .-.. --- ...- . / -.-- --- ..- / -... .- -... -.--

Collapse
 
devcse profile image
devcse

nice tips, codesnipeet.com/

Collapse
 
aalphaindia profile image
Pawan Pawar

Thanks for sharing!!

Collapse
 
michaeljo94 profile image
Michael

TL:DR;

if burnout:
    # No Code
    pass
Enter fullscreen mode Exit fullscreen mode
Collapse
 
rishthekingboy profile image
Rishabh Singh

Damn true

Collapse
 
jakedamon profile image
Jake

Thank-you for these tips! Very useful.

Collapse
 
pascavld profile image
Pasca Vlad

Glad you found these useful mate

Collapse
 
anshulnegitc profile image
Anshul Negi

What about a few exercises?

Collapse
 
pascavld profile image
Pasca Vlad

Yes, this is really important too

Collapse
 
tankerguy1917 profile image
tankerguy1917

Sadly, I suffer from point 5, fairly often. I don't realize that I'm burnt out until its to late, and then I stop practicing for a few days to even a week.

Collapse
 
pascavld profile image
Pasca Vlad

You really need to find a balance mate, maybe don't touch coding at all during the weekends. Find what works for you

Collapse
 
yoursunny profile image
Junxiao Shi

I'm the stallion coder 🦄 and I cannot possibly burn out.

Collapse
 
pascavld profile image
Pasca Vlad

I don't think so:)

Collapse
 
yoursunny profile image
Junxiao Shi

The closest I got was one day of no coding after 20 days of 9~14 hours. I did logo designing on that day.
twitter.com/yoursunny/status/12791...

Collapse
 
gecikadm profile image
GecikaDM

Good points! I am agree about point 5, it happened to me and I ve been for a long time then away from coding... It took me a while to get back to it, and now I try to take it easy and get some break more often 👍

Collapse
 
pascavld profile image
Pasca Vlad

This is great, as long as you know that burnout is real you'll be ok

Collapse
 
tankerguy1917 profile image
tankerguy1917

I to agree with point 5. I love coding, but I often find myself getting tired and not coding for a few days at a time

Collapse
 
pascavld profile image
Pasca Vlad

You need to find a balance