Show HN: I'm 15 and made a bedtime calculator with React JavaScript
1–10 of 140 posts
Re: Show HN: I'm 15 and made a bedtime calculator with React JavaScript
#2This 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
#3Re: Show HN: I'm 15 and made a bedtime calculator with React JavaScript
#4This 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
#5Re: Show HN: I'm 15 and made a bedtime calculator with React JavaScript
#6with 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/timeAlso, 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
#7Ever 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…
Re: Show HN: I'm 15 and made a bedtime calculator with React JavaScript
#8If you want to get the site-size down, like the top-comment suggested, you can switch from React to preact.
Re: Show HN: I'm 15 and made a bedtime calculator with React JavaScript
#9Doing things like this get you valuable experience, more useful to actually working than school.
Re: Show HN: I'm 15 and made a bedtime calculator with React JavaScript
#10This 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.