Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rimunroe
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
421.
▲
by
rimunroe
3y ago
I wouldn’t be surprised if this is because of the improved support[1] for writing types as JSDoc comments in TypeScript 5.0 [1] https://devblogs.microsoft.com/typescript/announcing-typescr...
422.
▲
by
rimunroe
3y ago
Aw I’m glad to hear that
423.
▲
by
rimunroe
3y ago
My brother writes xkcd. In 2006 I was living at home while attending community college. At the time, his site was still hosted on the old HP desktop that used to sit in our family room and now sat in his old bedroom. One day I was playing i
424.
▲
by
rimunroe
3y ago
They announced additional corrective lenses you can attach, which is the approach I use with my Index headset to supply my -5.5 and -6 prescription. The ones for the Index and other headsets are aftermarket though.
425.
▲
by
rimunroe
3y ago
As a layperson, that would be unsurprising if myopia is being caused due to short focal distances. It's not like your eyes are actually focusing on something an inch or two in front of them. As far as they're concerned, they'
426.
▲
by
rimunroe
3y ago
I really wonder about what the impact of having a lot of these devices in a house with animals which can hear higher frequency ranges would be. Most (all?) rodents, cats, and--to a lesser extent--dogs all hear well into the ultrasonic range
427.
▲
by
rimunroe
3y ago
I'm looking forward to using one of those. My mom's old Dell laptop died and she finally made the switch to the new MacBook Air. It seems fantastic. I had the 2015 MacBook. It was an oddball model which afaik never got a refresh:
428.
▲
by
rimunroe
3y ago
The VirtualBoy was famously a disaster for Nintendo. They slashed its price from $180 to $100 within a year of release, and I got one brand new from Toys R' Us later in the year for $30. I actually still have it, though I no longer hav
429.
▲
by
rimunroe
3y ago
> It’s very clear useEffect was created with a certain purpose and then the React folks realized that was a terrible use of it and changed the purpose of useEffect. I've compared the docs, and I don't think that's clear at
430.
▲
by
rimunroe
3y ago
For what it's worth, "the deps being the things sent to the query" is fundamentally correct. What were you doing wrong before and what are you doing now? There are alternatives to making queries with useEffect which can resul
431.
▲
by
rimunroe
3y ago
This isn't a recent development. People misusing useEffect just to update state has been a thing in React since they were introduced, even though a close reading of the original hooks docs should have conveyed that that's not what
432.
▲
by
rimunroe
3y ago
How does an HR person saying something isn’t a lie make it not a lie? If you’re saying something happened which didn’t happen, that’s a lie. A HR person saying it’s okay might indicate that it’s not a lie people would look askance at, but i
433.
▲
by
rimunroe
3y ago
Are there other domain names reserved by IANA for the same purpose? I trust the people in charge of domain names to not change their minds on something like this more than I would a company (such as Apple).
434.
▲
by
rimunroe
4y ago
I don’t know why it’s absurd to compare the Cybertruck (promised, delayed, not released yet) to that kickstarter (promised, delayed, not released yet). They’ve even been announced for similar lengths of time. As for “full self driving”, tho
435.
▲
by
rimunroe
4y ago
You can also express it as a combination of minutes and seconds (presumably hours are supported too): https://youtu.be/awM0nrlOZxk?t=6m10s
436.
▲
by
rimunroe
4y ago
I wish I could find a screenshot of it, but I believe the default Arabic font in Ubuntu ~10 years ago was pretty horrendous, whereas Windows had a much more reasonable one.
437.
▲
by
rimunroe
4y ago
> Building factories and qualification testing is literal progress. I get ~monthly emails about the progress being made manufacturing a chair I backed on a crowdfunding platform years ago. They constantly show great progress being made (
438.
▲
by
rimunroe
4y ago
The defining feature of vaporware is that the product gets announced and then either isn't released or isn't released for a very long time. The term has nothing to do with the amount of resources being poured into it. One of the
439.
▲
by
rimunroe
4y ago
I'm pretty sure you're mistaking power for energy. Watts are units of power, which is the rate of change in energy (joules per second). Asking for how much power something produces in an hour is like asking how many miles per hour
440.
▲
by
rimunroe
4y ago
So humans discovered a way for matter to be configured in a new configuration for this uranium isotope, but we didn't discover how to arrange things into the shape of a chair?
441.
▲
by
rimunroe
4y ago
Sorry, yes, I should have specified that
442.
▲
by
rimunroe
4y ago
I'm not a chemist, but this is something we're already very good at, and have been for quite some time. Silicon oxides occur very commonly in iron ores, and are a major component of slag.
443.
▲
by
rimunroe
4y ago
> Because the conditions for the universe to allow for this configuration of matter existed before man. > Humans, a product of the universe itself, just discovered or found a way to configure matter this way. If you accept this as the
444.
▲
by
rimunroe
4y ago
I did some electronic soldering in my teens and in college. I've occasionally done it since then to do minor repairs like replace part of a mouse I liked when it wore out after years of clicking. This past week I discovered that one of
445.
▲
by
rimunroe
4y ago
I imagine most of them could be, but this is an API which would require a lot of additions to the existing React.Component API, and would end up duplicating a bunch of already-existing functionality for something which in the end would pr
446.
▲
by
rimunroe
4y ago
Yes, that's true in this case, but it's not unusual to have something which uniquely identifies a debounced/memoized/cached function though, so that subsequent calls look it up against a registry and avoid repeated compu
447.
▲
by
rimunroe
4y ago
> I don't understand points 3 and 4, can you elaborate? I'm assuming that when i call `component.use(HookClass)` the component creates a new instance of that hookclass. Sure! You show ViewportHook's constructor receiving a
448.
▲
by
rimunroe
4y ago
> Running a single function multiple times that creates closures that run one time and get ignored all other calls of the function is not. This exactly describes a leading-edge debounce function, which I was asked in multiple interviews
449.
▲
by
rimunroe
4y ago
This is a hook version of the same code as near as I could guess it. function useViewport(initialValue) { const [state, setState] = useState(initialValue); useEffect(() => { return watchViewport((x, y) => setState(x
450.
▲
by
rimunroe
4y ago
> Its not normal for a render function to run all the time but the closures mentioned in it to be completely ignored. Thats completely the opposite of how most other APIs work in the language. Usually, a (constructor) function runs once,
More ›