Live data from Hacker News

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

sleepsources.com

11–20 of 140 posts

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

#11
post #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 Ter…

Oh come on, he's a kid. lol

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

#12

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

I think this is a great project for a 15-year-old. My own son did something like this recently, and loved it. Let's encourage that.

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

#13
post #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 Ter…

Jesus Christ dude. Be nice.

Why not try being encouraging instead of.. whatever that was.

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

#14

Earlier quoted context omitted.

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

I think this is a great project for a 15-year-old. My own son did something like this recently, and loved it. Let's encourage that.

did your son drop out of high school to pursue a degree in web development?

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

#16
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 :)

Or hook into some wrist heart rate monitors / accelerometers (Garmin, Apple, etc) and correlate heart rate and movement with REM cycles. Wouldn't be surprised if this was already done too but no reason not to try it for a hobby endeavor. Gotta be tons of public research on the correlational methods available on Google Scholar.

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

#17
post #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 Ter…

Maybe he used this theme? https://github.com/bencentra/centrarium

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

#18
post #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 Ter…

Jesus Christ dude. Be nice. Why not try being encouraging instead of.. whatever that was.

I think that could have been worded much more nicely, but I get the OPs objection - it's sad kids are getting taught "this is the way to do things" and have no idea there was a better cleaner way.

I don't think this is the standard 'oh assembly in my granddads day, c in my dads day, ruby in my day, these young tigers and their js' either, there is no benefit to modern frameworks besides vendor lockin, which is an antibenefit. Its mostly a heaping pile that just seems to have more bugs and generally is making the web a horrible place.

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

#19

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…

my last comment seems to have been removed by the moderators for being contrary to the tone of the rest of the forum, so i will say this:

this is like some sort of sponsorship for a mattress company or something if you check the bottom of the page.

i don't know why, but it is just very upsetting to me to see that some kid is reviving so much praise for being interested in something as meaningless as web development. As if you learned an instrument or joined a sports team or something. I think this will eventually lead you down the road of forming an identity around work as a programmer, which is not a good thing especially considering the low barrier of entry of becoming a programmer.

When i was your age I too got into these sorts of things, and in retrospect I would not have made the decisions I did.

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

#20

Earlier quoted context omitted.

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

I think this is a great project for a 15-year-old. My own son did something like this recently, and loved it. Let's encourage that.

Thank you!
Post reply on HN