DEV Community

Cover image for ✅ Easily Write Better Code With 7 Tips to Get in the Zone

✅ Easily Write Better Code With 7 Tips to Get in the Zone

𝙽𝚒𝚗𝚊 𝚉𝚊𝚔𝚑𝚊𝚛𝚎𝚗𝚔𝚘 💜🐍 on October 04, 2019

What's Flow? Flow has been described as a mental state where you're able to become fully immersed, focused, and enjoy the task at hand. ...
Collapse
 
katylava profile image
katy lavallee

This is great advice. I’ve saved it to refer to it in the future. I usually get stuck because of lack of clarity. What helps is to open a blank file in my editor and just start writing what I’m thinking. Usually that leads to researching things on the internet and copying and pasting code snippets and links into my brainstorming file for later. I often forget to just open up that blank file though! I even have an alias, unstuck, that will open it for me and I still forget to use it.

The only thing I would caution further on is #5. I think I’ve worked with some people who’ve used that technique to get into the flow state, and they end up creating something that nobody else can maintain because nobody else has time to learn the new language, or framework, or whatever. Often times the best tool for the job is the one everybody already knows. It’s kind of sad but it helps us build things quickly and reliably. You might increase productivity of your whole team by being bored in that case.

Another thing to be careful of when you are in flow state is writing readable code. In flow I think your working memory is in top form and you can hold more in your head at once than the person who is going to be reviewing your code later.

Also it’s pretty easy to get into flow state by going down a rabbit hole — getting side-tracked trying to solve a problem that’s not important to solve at this time and can limit the options for your future self — so watch out for that!

In short, flow is great, but it’s okay to not be in flow too. It’s okay to only be in flow a couple hours each day.

Collapse
 
jasperhorn profile image
JasperHorn

While the tips didn't help me improve things directly, the rest of your article helped me understand myself a bit better. Thanks!

Collapse
 
mateusz__be profile image
Mateusz Bełczowski

I'm just reading the "Flow: The Psychology of Optimal Experience" and I'm really loving it :)

Collapse
 
nnja profile image
𝙽𝚒𝚗𝚊 𝚉𝚊𝚔𝚑𝚊𝚛𝚎𝚗𝚔𝚘 💜🐍

That's awesome! If you get the chance to, come back and share your highlights once you're done with the book.

Collapse
 
makampos profile image
Matheus de Campos

wuoo great article.

I need check to read later when I having more time!
thanks, thanks!