---
title: "Discussion on \"Why Coding Less and Sleeping More Could Make You a Better Developer\" | Hashnode"
description: "Discussion on \"Why Coding Less and Sleeping More Could Make You a Better Developer\". On your journey of learning to code it's highly likely that at one point or another, you'll lose sleep over it.\nPerhaps working late into the night trying to tackle a seemingly-unfixable bug keeps you awake long past your bedtime, or waking up in the..."
url: "https://hashnode.com/posts/why-coding-less-and-sleeping-more-could-make-you-a-better-developer/6173f94d0f452c1cd94f9f84"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why Coding Less and Sleeping More Could Make You a Better Developer](https://blog.danielcranney.com/why-coding-less-and-sleeping-more-could-make-you-a-better-developer?utm_source=hashnode&utm_medium=feed)

On your journey of learning to code it's highly likely that at one point or another, you'll lose sleep over it. Perhaps working late into the night trying to tackle a seemingly-unfixable bug keeps you awake long past your bedtime, or waking up in the...

Oct 23, 2021 · 6 min read · blog.danielcranney.com  
Updated Jul 19, 2022  
Read the article

-   [#coding](https://hashnode.com/tag/coding)
-   [#learning](https://hashnode.com/tag/learning)
-   [#education](https://hashnode.com/tag/education)

## Written by

[Daniel Cranney](https://hashnode.com/@danielcranney)

@danielcranney · Bristol, England

  
[View profile](https://hashnode.com/@danielcranney)

Developer and Designer

I am a teacher, designer and developer on the road to full stack. I love creatively solving problems by building web applications that look good and work well.

## Responses 7

Markdown supported · ⌘↵ to post

[Luchi](https://hashnode.com/@CodingLuchii)

[Jun 4, 2023](https://hashnode.com/posts/why-coding-less-and-sleeping-more-could-make-you-a-better-developer/6173f94d0f452c1cd94f9f84/comment/647c703a1147de02efa724ee)

Thank you so much for this, Daniel.

This should be a once-a-week required reading for all developers because even the ones that know tend to forget when it's needed the most!

Thanks, bro.

[Dawson](https://hashnode.com/@dawsoncodes)

[Feb 27, 2022](https://hashnode.com/posts/why-coding-less-and-sleeping-more-could-make-you-a-better-developer/6173f94d0f452c1cd94f9f84/comment/621b75c045bf7fc41cc9dbdb)

This is exactly what happened to me, Daniel. Gotta code less and sleep more 😆

[Gabor Pfalzer](https://hashnode.com/@pfalzergbr)

[Dec 29, 2021](https://hashnode.com/posts/why-coding-less-and-sleeping-more-could-make-you-a-better-developer/6173f94d0f452c1cd94f9f84/comment/61cc17e59d3f4828b7ba56e7)

Very underrated concept, I have to say. I'm an official early bird, my peak performance coding time is between 7 and 10am usually... That's when I tackle my most difficult problems, usually with a fresh brain. Sometimes, I'm fast asleep by 9pm.

[Daniel Cranney](https://hashnode.com/@danielcranney)

[Jan 5, 2022](https://hashnode.com/posts/why-coding-less-and-sleeping-more-could-make-you-a-better-developer/6173f94d0f452c1cd94f9f84/comment/61cc17e59d3f4828b7ba56e7#reply-61d61322a77b3810c05ce090)

I know exactly what you mean Gabor, I’m the same. I slowly taper off throughout the day.

Glad you enjoyed the article though!

[Faruq Abdulsalam](https://hashnode.com/@NagatoDev)

[Nov 23, 2021](https://hashnode.com/posts/why-coding-less-and-sleeping-more-could-make-you-a-better-developer/6173f94d0f452c1cd94f9f84/comment/619cf4d6fa52cd31fe52c98b)

This was a great read!!

[Daniel Cranney](https://hashnode.com/@danielcranney)

[Nov 23, 2021](https://hashnode.com/posts/why-coding-less-and-sleeping-more-could-make-you-a-better-developer/6173f94d0f452c1cd94f9f84/comment/619cf4d6fa52cd31fe52c98b#reply-619d5cc41a07d7765ae860b3)

Thanks so much Faruq! I'm glad you enjoyed it!

[Yosra Emad](https://hashnode.com/@yosracodes)

[Oct 23, 2021](https://hashnode.com/posts/why-coding-less-and-sleeping-more-could-make-you-a-better-developer/6173f94d0f452c1cd94f9f84/comment/61748e670c5e175a1c616da3)

loved this post Daniel! even though i'm reading this and it's past midnight 😂

[Daniel Cranney](https://hashnode.com/@danielcranney)

[Oct 24, 2021](https://hashnode.com/posts/why-coding-less-and-sleeping-more-could-make-you-a-better-developer/6173f94d0f452c1cd94f9f84/comment/61748e670c5e175a1c616da3#reply-6175ab1f0c5e175a1c617ed6)

Thank you so much Yosra! Hope you managed to get some well-earned sleep in the end! 😴

[Sumudu Siriwardana](https://hashnode.com/@sumudusiriwardana)

[Oct 23, 2021](https://hashnode.com/posts/why-coding-less-and-sleeping-more-could-make-you-a-better-developer/6173f94d0f452c1cd94f9f84/comment/617408740f452c1cd94fa0dd)

I can't do anything the next day properly if I don't get a proper good night sleep! You have nicely articulated all the points here with data. Really good write-up, Daniel!

[Daniel Cranney](https://hashnode.com/@danielcranney)

[Oct 23, 2021](https://hashnode.com/posts/why-coding-less-and-sleeping-more-could-make-you-a-better-developer/6173f94d0f452c1cd94f9f84/comment/617408740f452c1cd94fa0dd#reply-61743d1a0c5e175a1c6167bc)

Thanks so much Sumudu! If you start thinking about how you can use sleep to solve problems for you it’ll really make a difference 😀

Glad you enjoyed the article!

[Jennifer Williams](https://hashnode.com/@Naivejen)

[Oct 23, 2021](https://hashnode.com/posts/why-coding-less-and-sleeping-more-could-make-you-a-better-developer/6173f94d0f452c1cd94f9f84/comment/6173fe3b0c5e175a1c6162cc)

Loved this post! A great write up on the importance of sleep and a good reminder that resting is productive.

[Daniel Cranney](https://hashnode.com/@danielcranney)

[Oct 23, 2021](https://hashnode.com/posts/why-coding-less-and-sleeping-more-could-make-you-a-better-developer/6173f94d0f452c1cd94f9f84/comment/6173fe3b0c5e175a1c6162cc#reply-617414eb0c5e175a1c616493)

Thanks Jennifer, I’m really glad you enjoyed the post!

You make a great point that being asleep is still a productive thing to do!
