324 points · by gyre007 · 7y ago · 206 comments
Now, I see sleep deprivation as a serious health debt that you pay nosebleed compound interest rates on. If you get less than your preferred amount of sleep, everyday living can become more complicated. Simple tasks can become dangerous. Do not walk down stairs without holding the hand rail if you are tired!
Also, my sleep tracker confirms that, on average, it takes about one hour more of being in bed to get X hours of sleep. So if you need 8 hours of sleep, you need to be in bed around 9 hours! I aim for 7 hours (8 hours in bed).
Except, sleep isn't a debt because the loss can't be repaid.
This is one of many important things I have picked up from Dr. Matthew Walker who wrote "Why We Sleep" and has been doing the podcast rounds lately.
Not to pick on you at all. It sounds like you have made some big realizations and are making fantastic changes. Realizing I can't make up sleep to pay off the "debt" has been eye opening.
sort of?
The impact of missed sleep has a half life. A single night of 4 hours sleep, followed by a year of normal nights sleep will lead to a me that is indistinguishable from the me that slept 8 hours that same night.
I'm all for sleeping properly, but lets not suggest that it is the end of the world any time someone doesn't get their standard n hours
And please note, I'm not prescribing or suggesting anything about the end of the world regarding a single missed night of sleep. I am commenting about the world of ignorance I had regarding sleep prior to a very recent education.
If you or other people reading this are unaware of the depth of what sleep research has learned in the past 15 or so years I will point you to this six hour conversation that Dr. Matthew Walker had with Peter Attia on his podcast.
Part 1 https://podcastnotes.org/2019/04/02/sleep-4/ Part 2 https://podcastnotes.org/2019/04/17/sleep-5/ Part 3 https://podcastnotes.org/2019/04/18/sleep-6/
Usually. Except if the 4 hours of sleep leads you to crash your car, or run into a pedestrian, or forget your child in a car.
In the usual case, a day of missed sleep is normally OK, but when you are responsible for other people (rather than just code quality/productivity), why risk it? And even in the general case...why risk it? It is far better to lead a normal lifestyle and be at peak performance in all parts of your responsibility.
After a week or two of great sleep, I will feel the effects of even a single night at 6-7 hours. My blood glucose tracking makes this clear (it's going to be north of 100 in fasted state), and if the required work for the day is cognitively challenging, ie. "deep work", it will be distraction city.
I think of it kind of like burning yourself on a flame. Yes, a second degree burn will heal, and in a year you won't notice it, but if you do it over and over, or really burn yourself, you'll scar or kill nerves and never fully recover.
You do actual damage to your brain when you don't sleep enough, and it will effect your memory and cognition permanently if you do it too much.
Edit: to incorporate the valid suggestion below
> You can miss a good night's sleep and make it up later in terms of being rested, but whatever lessons and growth from the day prior to the lack of sleep will never be processed. They are lost, even if you sleep enough on a later night.
> It's sort of like saying there is 'eat healthy debt' where you eat junk food all week and then try to cancel it by eating super healthy on the weekend. That healthy eating on the weekend is a good thing, but it doesn't un-eat the unhealthy food.
Your two examples are not equivalent. In the first you mention missing _a_ good night's sleep. In the second you are not missing a night of healthy eating but intentionally engaging in the opposite consistently. A more accurate comparison would be something like a "cheat day" in a diet, to follow the logic of the first example.
From what I remember he said if you stay up all night you don't sleep 16 hours the next night to make up for the missing 8 hours (you may only sleep 12) therefore you never make up that 4.
I'd suspect that it doesn't work that way and you can catch up without requiring double the amount of time (there's probably a consistent overhead).
If I'm missing some core of his argument please let me know, but from what I heard it made me dismiss the rest as probably bad.
It’s repaid all at the end.
The mortality rate among participants with short sleep during weekdays, but long sleep during weekends, did not differ from the rate of the reference group. Among individuals ≥65 years old, no association between weekend sleep or weekday/weekend sleep durations and mortality was observed. In conclusion, short, but not long, weekend sleep was associated with an increased mortality in subjects <65 years. In the same age group, short sleep (or long sleep) on both weekdays and weekend showed increased mortality. Possibly, long week- end sleep may compensate for short weekday sleep.
[1] https://onlinelibrary.wiley.com/doi/pdf/10.1111/jsr.12712
Are you saying that there are significant health repurcussions even after bad sleep habits have been fixed? Do you have a source for that? I have... er... a vested interest
I finished most of the book, but don’t remember seeing what he wrote on this.
https://news.berkeley.edu/2010/02/22/naps_boost_learning_cap...
"Can naps help with sleep debt?
Walker: And the answer, unfortunately, is no. Sleep is actually not like the bank. You can't accumulate a debt and then hope to pay it off at some later point in time. So sleep is an all-or-nothing event in that sense. So you can't short sleep during the week and then try to binge and oversleep at the weekend."
https://www.businessinsider.com/sleep-expert-naps-dangerous-...
But the lost productivity from when we were tired can not be recovered.
When i was HS living out in the countryside of North Texas the father of a friend of mine would take me hunting and target shooting a lot. He said he did an experiment once where he shot 3 groups of 5 shots then measured his precision and accuracy. Next, he drank a beer (i know, not the wisest thing to do) then repeated the shooting exercise. He did this for a few iterations and his conclusion was that it didn't matter that he didn't feel the effects of the alcohol right away, his shooting steadily declined on each iteration.
I think sleep is the same way, whether or not you immediately notice you're not getting enough sleep your performance steadily declines.
Yes, it does. I mean, it takes time to fully absorb it, but alcohol begins entering the bloodstream immediately when reaching the stomach, it is not digested.
Rapidity of effect will vary by a lot of personal and other factors.
I wish it were that easy! Years and years of sleep deprivation left me dealing with pretty bad anxiety attacks. It's been almost 6 years now and they are mostly manageable. I'm still on medication though, which has other not-so-fun side effects.
Don't be stupid like me. Get enough sleep! It's the only part I dread about having children: The lack of sleep in the first few months/years is probably going to worsen my anxiety attacks :-/
I still really want kids though :-)
After about four years from birth you'll recover though and looking back you won't even remember anything so it's all good.
One of the most important features for me was ability to measure sleep quality in terms of "daily hours of deep sleep," whatever that scientifically means.
Over the course of several months, I've been able to identify things which affect my sleep quality:
* eating late: bad
* drinking late: one beer... not really that bad
* answering work emails until midnight: REALLY BAD (even while drinking soothing chamomile tea during soft rain) etc.
I'm trying as reduce as many "bad" things as possible as I can feel a huge difference between 30 mins and 3+ hrs of deep sleep, as measured by the device.
I feel much better during the day, can work more productively and, most importantly, my "fuse" seems to be much longer.
Probably best $30 ever spent.
(still missing weekend code binges of early 20s, though :/ )
Also getting enough sun or vitamin d helps. Trying to burn off as much energy before my mind has a chance to race before the end of the evening.
Never feel tired at work anymore, but I do actually start getting tired around 8-9PM when the caffeine from work starts wearing off. The energy and focus is great
I can shift this a bit, say go to bed around 11 or 12 and sleep later, but I am not nearly as productive in the mornings then. If I push this more extreme and say go to bed at 2-3am, even if I sleep until 10 or 11, I am wrecked the next day. I actually feel worse than if I only got 6 hours of sleep instead, but went to bed earlier.
Mind you - I don't have hard data to support this!
Anything you’ve done or do to improve the amount you get?
My Oura and Fitbit sometimes give wildly different sleep phase readings for the same night. Also, each will sometimes give arbitrarily unexpected readings that leave me scratching my head.
However, if you think you don't get much deep sleep, for the love of everything, get tested for sleep apnea. A home sleep study is quick and easy if you have reasonable insurance, and if you do have apnea, getting it treated could literally change your life (or even save it).
Sleep is super important to success and happiness, and I just recently found that sleep is not enough. I need also rest. If I don't have rest and relaxation often I get tired for several days regardless of sleep time. Writing this after deliberate 5 minutes downtime.
I’m solving problems not just because I’m doing a mundane task and have time to ruminate. It’s also because I just slept and am fully rested.
If a mechanic treated his tools like we treat our bodies his coworkers would look down on him for sloppiness. Take care of your “tools”.
To this day, candidates that don't take care of getting enough sleep just to get things done, raise a red flag for me.
Pomodoro is another of those life-work habit enhancements which (counterintuitively) increases productivity and happiness.
So why do programmers still sleep less than they need to? Often it's because they're working long hours, and to get time for the rest of their life they cut back on sleep.
If that's you—it doesn't have to be that way. You can set boundaries at work (https://codewithoutrules.com/2019/04/03/setting-boundaries-a...), you can say no to your boss (https://codewithoutrules.com/2018/08/16/how-to-say-no/)... and you'll be doing your employer a favor because your output will go up.
My quality of sleep reflects this.
Anecdotally, when I worked construction I had zero issues going to bed at 9pm and getting to work at 7 every day. But now that I sit at a desk for 9-12 hours a day, I'm rarely able to fall asleep by midnight and getting to work reliably by 8AM is impossible. Ironically, I have no issues sleeping "early" on the weekends when I spend the days out-and-about and doing house work.
Yes, this is absolutely the case. I do software as a dayjob, but do an hour or two of heavy physical activity every day (or more on weekends), and sleep great nearly all the time.
When I've had injuries that prevent me from my regular exercise routine, my quality of sleep takes a huge hit. To the point that last time I had a severe ankle sprain, I'd go to a gym (which I don't normally do) just to use one of those arm bike machines to tire myself out.
That statement, in isolation, could be taken completely out of context.
Of course no sane person would conclude that a sleep deprived developer can fix more bugs. However there are many executive-level staff that are definitely not sane.
I catch myself doing this sometimes when I'm tired or disengaged - spending my time on pointless refactoring or gold-plating. Presumably because these things are easier than what I should be tackling, but trick me into feeling productive.
When I do anything even remotely exciting, I have harder time falling asleep. Not only that. I will also wake up 1-2 hours earlier and have very hard time getting back to sleep.
If I do something calming, I have none of this issues.
Watching movies is great. Think about something absolutely unrelated to your stress for 90 minutes.
And yes, my insomnia is stress induced. If I’m on a holiday, which I haven’t been for couple years, I have none of those problems.
Personally: I recently realized that I should make an effort to work out sooner in the evening. I have an exercise bike at home and I tended to work out only after everything else was done, sometimes at 11PM, right before going to sleep. Exercise increases cortisol levels, so it's best to do it earlier in the day.
(Same devs on multiple occasions, sometimes well slept, sometimes not. Matching tasks for both groups. Learning effect is controlled by swapping group order of task execution. This is fully factorial fully crossed design.)
However, the magnitude is indeed big and the results probably valid but might not quite match up for experienced devs.
Hopefully, they now are able to get amazing grants because of these results to study it more in-depth.
The politics of science >= doing actual good science [1]
[1] Provided the right intentions are there (advancing truthful knowledge of humanity)
The plan is to take a week with someone - comparing various “in bed” times along with quality of sleep to a simple, dynamic cognitive task.
If anyone finds that interesting, please reach out to the email in my profile.
https://www.cnn.com/2019/04/15/business/jack-ma-996-china/in...
Although realistically I imagine it might take more than one night with good sleep for you to recover fully from that. And then you know, there's going to be variation between each individual, quality metrics may be up for debate, etc.
I’ve tried to borrow some ideas from protocols for hypoxia. By the time you’re loopy you should not be making any decisions.
Came into work, wrote some brand new code, and since it was basically all written on that day, and all by him, it was easy to trace back to him / that event.
The whole thing was riddled with bugs, and well below his usual quality level. Most of it got rewritten fairly quick, but yeah, if he'd taken the day off and then written it the next day, time would have been saved.
I feel like it's hard to really know when you're in that state, too. Your mind is too apt to go "I'm fine."
We've seen a similar phenomenon with athletes, which drove us to create a sleep improvement app, called Rise Science (https://www.risescience.com), for athletes that tells them what to do to improve their sleep tonight based on science. It's currently being used by both professional and collegiate teams across the NFL, MLB, NBA, MLS, and NCAAF.
We're now taking what we've learned from athletes and adapting it so anyone can engage in a lifelong practice of healthy sleep. If you're interested in helping test the early beta version of our app sign up here: http://bit.ly/hacker-friends
(for those interested in similar studies, here's a related paper from a friend of Rise at Stanford, where they quantify the impact of less sleep on cognitive performance using web search interactions as a proxy: http://timalthoff.de/docs/althoff-2017-population_scale_phys...)
https://www.cnbc.com/2018/12/21/lebron-james-reveals-the-nig...
It's early, so not everything is perfect—we're working at full speed to make improvements and roll out new features.
Asking employees to do this is like asking them to extend a line of credit that you can't pay back.
Also makes me wonder if it has any connection to how buggy some of these games are, or whether that's just a symptom of the modern system allowing you to patch stuff post launch.
Our goal is simple - if we can help folks sleep better we can improve their overall health and ability to flourish.
Happy to chat with anyone who is more interested in any way in what we are working on, has thoughts/feedback or would like to talk more about sleep in general.
1) Can I use my insurance for part of this? Even if it isn't directly covered, would it count towards the max out of pocket? Can I use an FSA/HSA?
2) On the /learn page it isn't clear what happens after 4 weeks. Do I keep access to sleep tracking? Of less interest to me, what about the marketplace or sleep course? What is the cost to stay subscribed? The sign up flow explains the monthly subscription for physical goods, but I didn't click into that page before I decided to leave a comment and went back to double check the /learn page's contents.
3) Other than the sleep coach, what are the concierge features? Does the content pack include articles, videos, podcasts, "homework", or other things? Is the apnea screening a qualitative questionnaire or does it use data from the sleep tracking? Are the personalized tools software, psychological tactics, physical sleep aids, or something else?
It certainly looks like an interesting product, but it's priced too high for me to buy before understanding it better.
Where can I do research like this? It seems easy, relevant and I'm academically equipped to do it (CS master psychology bachelor background).
I'm not sure how you'd blind lack of sleep and that's not the point, so the only issue is lack of randomization.
Much better than an observational study.
For example, productivity and learning would be considered ill-defined. How can you prove more sleep makes you more productive? Since that is difficult, you can instead do a quasi-experiment or case study to observe the effects.