Live data from Hacker News

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

sleepsources.com

1–10 of 140 posts

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

#2
Ever wake up feeling groggy, even though you thought you had enough sleep? It turns out that by timing your wake up time based on REM cycles, you can wake up more refreshed and more productive.

This got me thinking, why don't I put my front-end web development skills to the test and build a tool that will help people optimize their sleep schedule?

So, I built a bedtime calculator with React JS, as well as some fancy CSS animations.

Looking forward to your feedback and suggestions :)

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

#3
This is quite nice but I feel a bit too simple. Sleep cycles vary widely from 70-120 minutes per person. I think an advanced mode where a person can input their own record of sleep duration would be nice. Or even getting a couple of sliders to play with varying REM, NREM cycles would be nice.

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

#4
post #3

This is quite nice but I feel a bit too simple. Sleep cycles vary widely from 70-120 minutes per person. I think an advanced mode where a person can input their own record of sleep duration would be nice. Or even getting a couple of sliders to play with varying REM, NREM cycles would be nice.

This is a great idea! I'll plan on adding this soon, if the tool gets more feedback and usage :)

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

#6
This was already done years ago:

https://sleepyti.me

with way, way less JavaScript. Sleepytime jQuery plus HTML is 40 KB. This new site with all JavaScript and HTML is over 600 KB. Seems much of the JavaScript is in creating the time picker. Thats disappointing, as you can do pretty close to the same thing with one line of HTML:

    
https://developer.mozilla.org/Web/HTML/Element/input/time

Also, why is your name Josh Ternyak, but source of the page has this:

    
    

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

#7

Ever wake up feeling groggy, even though you thought you had enough sleep? It turns out that by timing your wake up time based on REM cycles, you can wake up more refreshed and more productive. This got me thinking, why don't I put my front-end web development skills to the test and build a tool that will help people optimize their sleep schedule? So, I built a bedtime calculator with React JS, as well as some fancy…

if you really are 15, I think you are wasting your time kid. maybe you should learn something useful. maybe go outside or something

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

#10
post #3

This is quite nice but I feel a bit too simple. Sleep cycles vary widely from 70-120 minutes per person. I think an advanced mode where a person can input their own record of sleep duration would be nice. Or even getting a couple of sliders to play with varying REM, NREM cycles would be nice.

I never knew this. How can someone determine how long their sleep cycle is? I’d love to figure out how long mine is.
Post reply on HN