Live data from Hacker News

Show HN: I'm 15 and made a bedtime calculator with React JavaScript

sleepsources.com

101–110 of 140 posts

Re: Show HN: I'm 15 and made a bedtime calculator with React JavaScript

#101
post #88

This is great. I have used REM cycle quanta to set my nap times for decades and it has made an enormous difference. My gf’s prolonged use of alarm “snooze” is, imho, a dangerous antipattern.

Thanks! I'm glad it is a useful tool

Re: Show HN: I'm 15 and made a bedtime calculator with React JavaScript

#102

This is really cool and nicely made! Congratulations! I'm assuming you don't have years of programming experience (feel free to correct me!) which makes it even more impressive when looking at the things you got right. This include the idea/functionality, layout, source and that cool Moon animation! I would suggest improving a couple of things: 1) defaults: a) some people don't like pickers (especially this "modern"…

Thanks for the in-depth feedback! I really appreciate it and will look into the issues you found with the app.

Re: Show HN: I'm 15 and made a bedtime calculator with React JavaScript

#103

Nice work! I really like that i could drag the minute hand on the clock and it "snap" to the 30 minute value. That's a small but important touch. This is a simple and straightforward. Don't bloat up the site too much and this will be a great project to show off and easy to maintain. Keep building stuff like this :)

Thanks! Sounds good

Re: Show HN: I'm 15 and made a bedtime calculator with React JavaScript

#104
post #49

I've recently started going to bed at 2000-2100 and it's nice to not need to worry about this stuff anymore. I start work at ~0800 and I'm usually awake from 0400-0600 so I never risk oversleeping, and my body gets as much sleep as necessary. I'm also a morning person, so using the first two hours of the day to work on personal projects or stuff I want to learn is working out well. I guess my professional work can su…

I see, thanks for the comment :)

Re: Show HN: I'm 15 and made a bedtime calculator with React JavaScript

#105

Does your site explain how to calculate ones own sleep cycle? I couldn't find it, and it's a simple trick I learned from a teacher many years ago. Just choose an evening where you wait until you're feeling sleepy but don't go to bed, start a timer, stay up and after 20 minutes or so you'll start becoming less sleepy. It might help to do something like watching a video program or playing a game. After a while you'll s…

Wow that's interesting, thanks for the tip

Re: Show HN: I'm 15 and made a bedtime calculator with React JavaScript

#108

My two best changes for my sleep quality and restfulness were waking up very early (normally between 4 and 5), and usually sleeping for only 6h (7.5 when especially tired). I add 20 minutes as buffer to fall asleep. My Alarm Clock lets me choose between setting an alarm at a certain time, as usual, but also for a certain time span. I have it preset to the time span, so I just enter 6h20m (which is normally already pi…

Nice, I see.

Re: Show HN: I'm 15 and made a bedtime calculator with React JavaScript

#110

I thought sleep cycle length is variable to an extent. I once calculated my own to be around 110 minutes per cycle, rather than 90 minutes. Using that as a base for calculating bed time has worked well for me. If cycle length variability is indeed a thing, it would be an interesting parameter to add to the calculator. Thanks for sharing!

I'll look into it, thanks so much!
Post reply on HN