I've dealt with poor sleep for many years. As someone who's excited & energetic, I had a hard time going to sleep. And as a startup founder, I've had a hard time staying asleep.

Today I sleep ~8 hours, and almost every aspect of life is better. Here is an ordered list of tips:
1. Schedule

Your mum was right: Go to bed and wake up at a consistent time. Weekends, weekdays, holidays, etc -- always stick to a routine!

If you sleep late after a night out, wake up early. If you're tired, resist going to bed early.

Eventually, sleep will become automatic.
2. Sleep hygiene

It's all about programming yourself for better sleep. Keep your room a sleep sanctuary. Resist working in there. Or even reading. The more things you associate your bedroom with, the weaker its automatic connection to sleep is.
3. Cognitive behavior therapy for insomnia

The above is about cognitive programming. Sleep is an automatic function, and insomnia/poor sleep are the results of bad habits. If you develop bad habits then you need to reformat your brain for better sleep: ilya.sukhar.com/blog/an-algori…
Between the first three tips and the rest are a very big drop in ROI. I know that sleep gadgets are all the rage, but in the end, without a good schedule and good hygiene you're operating on the margins. With that being said, here are the rest:
4. Temperature

Room temperature is very important for sound and deep sleep. I found that if I'm waking up in the middle of the night it's generally because I'm hot. I prefer 63-65 degrees. If you can't control your room temperature, @eightsleep helps here.
5. Don't eat late

It will make it harder to fall asleep and your sleep quality will suffer. I've found that 3-5 hours from the last meal is ideal for sleep (being too hungry can also be a problem for falling asleep so make sure you eat a good amount of fat for your last meal).
6. Limit coffee and never drink alcohol

Coffee has a 5-hour half-life so if you want to go to bed at a reasonable hour never have it past noon.

Alcohol is practically poisonous for your sleep. (Maybe a glass of wine with dinner every once in a while is not the end of the world)
7. Avoid late-night stimulation

While I think "winding down ritual" is a bit oversold, I think overstimulation before bed can be terrible. Resist tweeting that hot take at midnight, and don't watch intense TV.
8. Avoid naps

Naps can be really great, but only once you've mastered your sleep. Before you've had a solid sleep schedule, naps -- especially close to bedtime -- can really set you back.
9. Sun in the morning

When you wake up go outside or get exposed to natural light. Even better if you get sun in your bedroom because it can serve as a natural wake-up cue.
10. Supplement magnesium

I've tried dozens of supplements and the only thing that has had any measurable impact was magnesium. It made it easier to go to sleep and stay asleep. I have no idea by what mechanism.
Addendum: sleeping for 8 hours but not feeling refreshed? Do a sleep study and check for sleep apnea. Lofta has a really easy and advanced home sleep test you can do. lofta.com
Addendum 2: If you really want a "pick me up" afternoon, try going for a walk. If that doesn't work, nicotine gum might work. It's shown to not nearly be as addictive as smoking and has a half-life of just two hours. @lucynicotine is great!
Addendum 3: If you go through a period of bad sleep, don't sweat it. People can function on really low sleep (for extended periods of time). Poor sleep is often the result of sleep anxiety, so the worst thing you can do is stress too much about it.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Amjad Masad ⠕

Amjad Masad ⠕ Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @amasad

28 Dec
I landed in the United States 10 years ago with nothing but credit card debt.

After one startup exit, one big tech job, and one unicorn, I genuinely believe that it wouldn't have been possible anywhere else in the world.

Here are 10 things I love about this country: Image
1. Work Ethic

First thing I noticed was that everyone regardless of occupation took pride in doing a bang-up job, even when no one looked.

I asked people: "why do you pour everything into a job even when it is seemingly thankless?" And it was like asking fish "what is water?"
2. Lack of corruption

In the 10 years in the US, I've never been asked for a bribe, and that's surprising.

When you know that you predictably get to keep a sizeable portion of the value you create and that no one will arbitrarily stop you, it makes it easier to be ambitious.
Read 13 tweets
27 Dec
If you want to start or join an early-stage startup, the most important investment you could make today is inner work to ensure you have the stamina & resilience to do extremely hard things.

Here is all self work I did between my 1st and 2nd startup that paid off big time:
1. Understand what matters to you

Startups are hard; if you start one you should aim to work on it for at least 5 years. To do something difficult for a long time you should care enough about it you'd do it for free.

I wrote more about it here:
2. Stop being a perfectionist

Putting yourself and your work in public requires a great deal of courage.

Perfectionism is often a protection mechanism against being hurt. You have to be okay with your work being criticized and even hated.

Blogpost: amasad.me/perfectionism
Read 12 tweets
26 Dec
Fascinating that infinitely complex systems can be constructed from ONE key component. Examples:

- NAND gate and computers
- Neuron and brains/minds

What other systems are like that?
When I was designing a debugger I figured that you could construct it from one operation: STEP_IN which returns stack and other info. Then everything else could be on top of that. E.g STEP_OVER is simply a series of STEP_IN until the stack is length is equal to the starting point
It’s fun to design systems by boiling it down to one thing. But it might not be practical (eg slow). Nonetheless it gives you a better grasp on the problem.
Read 5 tweets
24 Dec
I'm fascinated by the idea of computers doing The Right thing without explicit user input.

amasad.me/right
Today this is most apparent in autocorrect, but the idea -- in a more advanced form -- goes back to the early days of computing. Interlisp shipped with a feature called Do What I Mean, which corrected spelling but also basic programming logic errors. Image
A more advanced and fascinating idea is for the computer to detect intention and act on it. Humans do it all the time; we see the intention in other people and act on it.

Software too can and should do basic intention-detection and I'm surprised I don't see it much in the wild.
Read 6 tweets
6 Dec
Competition is for losers.

How to win without competing, a thread:
We grew up in a very competitive field. Online environments have more dead startups than alive. We zoomed past startups 10x our size and capitalization, and we thrive despite incumbents many orders of magnitude larger than us.

We do it while rarely thinking about competition.
First, an axiom: humans are memetic creatures.

Remember how every startup was a chatbot startup a few years ago? Or a more recent example: Metaverse. Facebook renamed to Meta and two days later Microsoft announced their Metaverse strategy. I'm sure IBM is working on it too.
Read 10 tweets
5 Dec
A new kind of program analysis is emerging: AI code analysis. Here is the current state of analysis and where I think it’s headed:
Static analysis, arguably a Good Old Fashion type of AI, it relies on explicit “reasoning” about the program using tree search and other algorithmic methods.

It’s painfully limited because it’s an ultimately undecidable problem. Eg, try proving that a program never halts.
To make code more analyzable there has been a trend to push the programmer to do more of the work. People are adding typing to all the dynamic languages: JavaScript, Python, Ruby.
Read 16 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(