nsfmc
Joined 17 years ago
Joined 17 years ago
this is probably only useful if you've started learning a very small amount of grammar, know hiragana well enough to make furigana useful, and have started memorizing enough kanji/vocab to make 'overheard train chatter' useful. probably, generously, something maybe 3-6 months into your japanese language journey, so not good for bootstrapping.
i'll just say, and i understand this is not the point of the article at all, but for all its faults, if you got in on flash as earl as html 2.0 and you were staring at an upcoming dead-end of flash in say, 2009, you also knew or had been exposed at that time to plenty of javascript, e4x and what were essentially entirely clientside SPAs, providing you a sort of bizarro view of the future of react in a couple of years. honestly, not a bad offramp even if flash itself didn't make it.
as an anecdote, for some jobs i've applied to, i received an internal referral to a specific recruiter and it just never went anywhere (although i could often observe the recruiter looking at my linkedin profile from linkedin's own upgrade promo emails). in many cases, i would have preferred a 5 minute call to see if i was even a good fit so as to cross a job off a list.
i'm not anybody special, also degree and over a decade in, but it seems like a market where i could be connected 1-1 to an internal recruiter that is actively filling a role but where on several occasions i was ghosted is just a different sort of environment than what you're describing.
it also solves the problem where sparklines feel useful to somebody reading a summary and not so useful to somebody that's just exploring data "in the moment." having it be available in postgres is brilliant.
a bit of shameless self promotion, i had done something similar ages ago but with a custom webfont and some small js to handle scaling of the input dataset, solving the problem of unicode graph characters not being baseline aligned well. http://nsfmc.github.io/chartjunk/ (turns into dust while looking at the last commit date)
const useCountdownValue = initialTime => {
const [time, setTime] = React.useState(initialTime);
React.useEffect(() => {
const interval = setInterval(() => {
setTime(t => t - 1);
if (t === 1) clearInterval(interval);
}, 1000);
return () => clearInterval(interval)
}, []);
return time;
}
const Countdown = ({time}: {time: number}) => {
return time > 0 ? <>Time left {time}</> : <>Done</>
}
const ActualCountdownInContextSomewhere = () => {
const remainingSeconds = useCountdownValue(60)
return <>
<Countdown time={remainingSeconds} />
</>
}
i'll say, i have never written a test for a hook or looked into what's needed to actually do that, but i suspect you don't need cypress or webdriver to test something like this has the correct output <Countdown time={-1} />
<Countdown time={0} />
<Countdown time={1} />
or likewise you can probably use sinon or jest's fake timers to test the hook (however it is hooks are tested without triggering that error about not calling hooks outside of a function component, i guess you need to mock React.useState?).but like, whatever works for your team! i think it's fair to argue for either direction, but neither is zero-cost unless you have buy-in for one direction vs another from your coworkers, which honestly is all that matters especially if you have to eat lunch with them occasionally.
you can see, for instance san diego's rates [1] which are $0.38/kWh in the winter and $0.48/kWh in the summer. for context, this means if i pay 11 dollars in electricity generation (because i'm part of a municipal electric generation coop), i'm still paying $36 for distribution/transmission/etc, which is $47 for 106kWh used or ~$.44/kWh which is roughly what electrify america charges ($.48/kWh) when i go to 'fill up my car.' as far as i can tell from talking to people, this is is more than most people anywhere in the country (including hawaii) pay for their electricity.
[0]: https://www.publicadvocates.cpuc.ca.gov/-/media/cal-advocate... [1]: https://www.sdge.com/sites/default/files/regulatory/1-1-24%2...
[ my public key: https://keybase.io/nsfmc; my proof: https://keybase.io/nsfmc/sigs/e9YAe_1k0aJVxOOadbxGJm6s_cFKeMeuWay_ocZyl50 ]
Verifying my Blockstack ID is secured with the address 12yroXUpFaXP4bL9wxw3LARRX8Be8HYZui https://explorer.blockstack.org/address/12yroXUpFaXP4bL9wxw3LARRX8Be8HYZui