6 Ways to Help Keep You Going When Working on JavaScript Projects
Tags: javascript, productivity, webdev, motivation
Published: 2019-09-01 15:44:09

Find me on [medium](https://medium.com/@jsmanifest)

While you're coding you might feel happy, sad, tired, or unmotivated. Some of these can undermine your abilities to effectively code JavaScript applications. But there are ways to treat this behavior (based on my experiences) and keep you coding for the whole day without feeling overwhelmed.

In the weekends I spend an average of 15 hours per day coding in JavaScript or at least being involved somewhat in some JavaScript related activity like reading changelogs of libraries or listening to JavaScript related podcasts on YouTube. While it's unhealthy to be doing these for such long periods of time, the point I want to make is that I _never_ get bored and _I always feel like the day ends TOO soon_, which i'm sure is what some developers need in their lives--to stay focused and not get distracted, bored, or overwhelmed at writing JavaScript applications. When the weekend ends, I _always feel like I need more time_.

This post will list some things that make _me_ code for longer periods of time and the goal is to help shed some light on how _you_ can take some of these tips to improve your focus on your tasks.

Having said that, this isn't an article where I'm saying "Please do this to code for 15 hours a day like I am". You don't need to code 15 hours a day. You just need to avoid feeling unmotivated, hopeless, or overwhelmed. We're all adults here and I trust you to make the best decision :)

When you're _not_ working, don't be like me where I'm still coding until it's bed time. I have my reasons but I am glad I'm able to code and never get bored, which happened to be something I needed at the right time. Spend time with your family, friends, and eat well!

Here are 6 Ways to Help Keep You Going When Working on JavaScript Projects.

## 1. Have At Least One JavaScript Project in Active Development That You Believe Will Benefit Your Future

![10-10-10 rule](https://jsmanifest.s3-us-west-1.amazonaws.com/posts/6-ways-to-help-keep-you-going-when-working-on-javascript-projects/10_10_10_rule.jpg)
Photo by Avi Richards on Unsplash

I like to use the 10/10/10 rule to keep me in check and motivated to code for ridiculously longer periods of time. I always like to have a project that i'm actively developing on when I'm not working which I believe will end up providing a lot of impact on my future.

But how can you tell if your project will benefit your future?

While definitions of the 10/10/10 rule vary here and there, here's the 10/10/10 rule I follow at all times:

Will this project be worth all the trouble 10 days from now? How about 10 months from today? 10 years? If it satisfies all three of these criterias, this should be enough to keep you on your feet to code like your life depends on it. And when it's time for bed, you'll feel like you're going to code harder tomorrow because you underestimated today.

## 2. Listening to JavaScript Podcasts

![listening to javascript podcasts](https://jsmanifest.s3-us-west-1.amazonaws.com/posts/6-ways-to-help-keep-you-going-when-working-on-javascript-projects/listening_to_podcasts_in_javascript.jpg)
Photo by Juja Han on Unsplash

I like to listen to JavaScript related podcasts in the background while I code. This means I would just turn on a podcast and leave it running in the background while I write JavaScript.

Before I begin working on something, I often like to brainstorm the code that i'm going to write so that my mind is already prepared for writing so that I can confidently give a little more attention to the podcast playing in the background.

The reason why I like listening to podcasts in the background is because it helps keep me updated with what's going on in the JavaScript community and I always end up learning new things about _people_, the technology, best practices in code, etc. This sort of fills in the gap of missing out on the social experiences. This might apply more or less important for certain people.

Podcasts go by quick, and normally by the time the podcast ends it makes me feel productive because now I've got all this new valuable information in my head. This makes me feel great about my progress. It excites me. You know that awesome feeling when you're finally getting progress from the gym, and now you just don't want to stop? Keep the momentum going.

The podcasts I listen to is normally whatever sparks my curiosity. I listened to [Kent C. Dodds and Ali Spittel](https://kentcdodds.com/chats-with-kent-podcast/seasons/01/episodes/growing-your-skills-and-career-through-teaching-with-ali-spittel) while I coded and learned valuable insights on life like how people deal with imposter syndrome when it creeps onto them, which online communities are toxic (Very important actually. Surround yourself with positive energy and keep yourself motivated and strong at _all times_), how she became successful, etc. An important thing to keep in mind when listening to these podcasts is that these people are JavaScript developers too. Anything they experience can potentially become your experience.

Some other notable ones I listened to were between [Kent C. Dodds and Dan Abramov](https://kentcdodds.com/chats-with-kent-podcast/seasons/01/episodes/realigning-your-model-of-react-after-hooks-with-dan-abramov) and [Kent C. Dodds and Swyx](https://kentcdodds.com/chats-with-kent-podcast/seasons/01/episodes/you-can-learn-a-lot-for-the-low-price-of-your-ego-with-shawn-wang). Podcasts like these expose some valuable information that you wouldn't find anywhere else.

## 3. Listen to Good Music

![listen to good music while writing in javascript](https://jsmanifest.s3-us-west-1.amazonaws.com/posts/6-ways-to-help-keep-you-going-when-working-on-javascript-projects/listen_to_good_music_while_writing_javascript.jpg)
Photo by Steinar Engeland on Unsplash

This might sound silly but when I listen to music that make me feel "badass", I apply better code practices which makes coding a great experience.

Many positive effects can happen by listening to music while you code. For example, a research from the journal of [Psychology of Music](https://journals.sagepub.com/home/pom) in 2005 had demonstrated that software developers had experienced increased positive moods, quality and efficiency when listening to music. It also mentions that music can alter your moods.

I've never had a great coding experience listening to sad music. Just putting this out there.

## 4. Always Having a Cup of Coffee Nearby

![always have a cup of coffee nearby when writing javascript](https://jsmanifest.s3-us-west-1.amazonaws.com/posts/6-ways-to-help-keep-you-going-when-working-on-javascript-projects/coffee+with+javascript.jpg)
Photo by BRUNO CERVERA on Unsplash

Coffee helps you code more effectively in several ways. First, the consumption of coffee was proven to [improve memory and cognitive function](http://www.health.harvard.edu/press_releases/coffee_health_risk) over time as we age. This means that our performance in writing JavaScript applications (or _anything_ really) becomes stronger as we're able to solve problems faster and focus on tasks throughout the day.

Now when I drink coffee while I code, I find myself coding for longer periods of time. It helps make me type faster and it noticeably helps to avoid random thoughts of my personal life in between coding.

It helps keep my focus and mindset in check. There is some backed up science behind this effect in coffee consumption.

For example, [coffee can help temporarily relieve annoying headaches](http://www.webmd.com/migraines-headaches/guide/triggers-caffeine) because it reduces inflammation in the body. But sometimes I get headaches _from_ drinking coffee. In this case it might occur to me that dehydration is the cause (_water ALWAYS helps to remove the headache when this happens by the way_). Coffee [stimulates the release of dopamine, improving mood and helps stabilize your emotions](http://thebrain.mcgill.ca/flash/i/i_03/i_03_m/i_03_m_par/i_03_m_par_cafeine.html) so I feel better throughout the day. This also contributes to the effects of keeping random personal thoughts away from coding. It's a natural adderall.

## 5. Drinking Water Every 30 Minutes (Coffee still applies)

![drink water while developing in javascript](https://jsmanifest.s3-us-west-1.amazonaws.com/posts/6-ways-to-help-keep-you-going-when-working-on-javascript-projects/water+with+javascript.jpg)
Photo by Steve Johnson on Unsplash

At my job, people know that I drink a lot of water because i'm always carrying and refilling [these](https://www.ebay.ie/itm/0-17-Gallon-Mini-Water-Bottle-Jug-Water-Sports-Bottle-Aqua-Drink-Jug-Container-/351669533209) bottles. I drink a minimum of three of those per day.

Water helps me maintain a [good state of mental health and wellbeing](https://www.oxbridgeessays.com/blog/simple-way-better-university-drink-water-increased-concentration/) which is _a vital combination with frequent sips of coffee_! This is probably the most effective habit in the entire article that helps you code longer. I'd call it a secret of mine, but that'd be silly. We should all drink plenty of water and at least a cup of coffee every day :)

## 6. Sitting Next to a Window With Sunlight

![sit next to a window with sunlight when writing javascript](https://jsmanifest.s3-us-west-1.amazonaws.com/posts/6-ways-to-help-keep-you-going-when-working-on-javascript-projects/sit+next+to+a+window+with+sunlight+in+javascript.jpg)
Photo by Ethan Sykes on Unsplash

My desk is literally right next to my window inside my room. When I wake up in the morning, there's sunlight coming through this window. My computer is literally right next to it. It's like I have a window in my chest where sunlight is pouring in. _JavaScript, here I come!_

Try not to be coding in dark areas. When walls and desks are dark, or when there aren't any plants or pictures on the walls, [this has detrimental effects on your health and productivity which can lead to depression and anxiety](http://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0155614&type=printable).

## Conclusion

And that concludes the end of this post. I hope you found something valuable and look out for more in the future!

Find me on [medium](https://medium.com/@jsmanifest)