3 ms·
I couldn't try it because there is no space near my webcam that I can nock out some pushups but I did set the alarm to see. But it looks like a great idea! It
by throwaway2016a 9y ago
I couldn't try it because there is no space near my webcam that I can nock out some pushups but I did set the alarm to see.
But it looks like a great idea!
It might not work for people in a co-living relationship. My wife would kill me if that alarm sound went off for more than 20 seconds (I get up before her).
What about React helps make this project easier than say vanilla Javascript? I would live to see a writeup on how it is made.
Also, random idea, think it'd be fun to be able to replace that alarm sound with the whooping sound from Rogue One.
- cholantesh 9y ago>It might not work for people in a co-living relationship. My wife would kill me if that alarm sound went off for more than 20 seconds (I get up before her) Good use case for Bluetooth headphones. >Also, random idea, think it'd be fun to be able to replace that alarm sound with the whooping sound from Rogue One. Or, to prank my pushup loving flatmate, Gene Belcher's fart keyboard sample.
- yoz-y 9y agoHm, are there any wake up alarms that actually go off through connected bt headphones? It seems like a recipe for being late.
- cholantesh 9y agoI don't really use wake up alarms so I'm not sure; I get up pretty regularly at 6AM (even if I went to bed at 1, it's pretty awful.
- ryanbertrand 9y agoMy Bluetooth headphones would die before I wake up. :(
- zodPod 9y agoYeah, until they fall out or die or the connection stops for whatever reason. Plus I can't imagine it's good for your ears to have headphones in for 5-8hrs every night.
- jbob2000 9y agoThere is nothing about react that you need to do this, unless they're using a react package to interact with the canvas element.
- faris-ssj 9y agoHaha, the alarm is quite annoying. I have custom alarm sounds as a todo now. My reasons for using React: Speed of development: I work with react nearly everyday at work, so a lot of its usage has become muscle memory. React abstracts away the need to think about the DOM, I don't need to write any query selectors, or think about what part of the DOM should be re-rendered when. The end result is that I can code up a simple view, and focus my efforts on the complex/fun stuff - the bit which counts the pushups. If I took the project no further, at least I invested my time on the most rewarding and fun parts of development. Code reusability for Mobile apps: The alarm uses setInterval to track when to go off. This works well for me on desktop, but when minimising a browser on a mobile phone the javascript code stops executing. I need an app. With this in mind, having a React codebase means I can create a mobile app with react native and reuse code I already have. Also, going forward I'd have parity of web app and mobile features. I sympathise with those who call for dynamic websites with a sprinkling of Javascript. I think most traditional websites like blogs and simple e-commerce sites are better served by that model. But, in cases where your sites core functionality needs JavaScript anyway, has a lot of state changes, and resemble what would have been a desktop app years ago, React makes sense. Saying that, even with traditional sites I'd be tempted to use react with server side rendering. Just because I love how I can reason about everything in JavaScript, compose my App from the ground up with components (divide and conquer), and group code by responsibility as opposed to arbitrary splitting between business logic and views.