skysight-inc/HackerNews huggingface dataset:
Also the id must be hold using useRef().

That's the whole problem with hooks: when things are easy, they are nice. When things are complicated, unfortunately, they look easy, and you start to think you understand what's going on. But most people, me included, don't.
The post "Why React Hooks?" helps explain the historical context and reason for their creation:

https://ui.dev/why-react-hooks/

I also discussed some of the tradeoffs in a conference talk and blog post:

https://blog.isquaredsoftware.com/2019/07/blogged-answers-th...

https://blog.isquaredsoftware.com/2019/09/presentation-hooks...
If you believe that A) you can't have literally everyone in the industry on POTUS's team and B) private industry often has some of the best expertise, I'm not sure I understand why you would be upset about this outcome.
It’s worth remembering that sound takes 3ms to travel a metre. If you’re standing a few metres away from a drummer then the round trip time is already pushing 20-30 ms of latency and yet you can still play together in a rehearsal room
10 years is the average or target lifespan of a truck, not necessarily the average age. I’m not sure what the average age or distribution for trucks serving California ports are

Similarly, human life expectancy is 80 years in the US, but the average age is 38.

The same fact check says that 96% of vehicles are compliant, and order vehicles can be made compliant by replacing the engine.

Either way, a lack of trucks is not the issue, it’s the lack of drivers (because pay and conditions are poor) and the bottleneck at the yards where they can’t exchange empty containers for full containers
As a long time Ruby fan, I support this. Good moves all involved.
The original email, from the 70's was a standardization of the set of proprietary, incompatible email-like services people had at the time.
I bought one of the Unicomp Model M keyboards in the 101 key configuration for comparison. Build quality is good, not great. Feels similar but is louder and the keys wobble slightly compared to my 89 model m.

If you want this experience, I’d suggest you grab a used model M on eBay. TFI had good reference on usb to ps2 adapters that work. For an xt cable, you can buy a sorros (sp?) converter for 40 bucks. Or a new usb to RJ cable that will plug directly into the keyboard.
So, when can we get these laptops in EU? Pretty please? :-)
Something to recognize.

Logistics can be somewhat thought of as a flow problem.

If demand far exceeds supply, and both supply and demand stay constant, the backlog will continue to get worse in severity over time.

For the problem to get better, either demand has to decline, or supply has to increase. However, the ability to expand supply seems limited in the short term. E.g. how long does it take to improve port throughput, or build new container ships?

Translating to the real world, think every ship stuck at the port removes another ship/containers from being able to pick up new goods which creates a self reinforcing problem.

Or thought another way, if the port can only unload 10,000 containers a day, and 20,000 containers a day are showing up, the number of backlogged containers will increase linearly with time.

Just yesterday we hit a record number of ships backlogged at the CA port, so I suspect this is exactly the situation we're in.

The free market will eventually solve by either supply throughput breakthroughs, or prices continuing to rise until demand destruction kicks in.

I want to lay a few stats out here. Retail sales has been ~20% elevated from 2019 levels since the pandemic started, primarily due to government benefits/stimulus checks.

https://fred.stlouisfed.org/series/RSXFS

Some is due to spending habits changing, but that's likely a smaller portion.

Check real personal income over the course of the pandemic.

https://fred.stlouisfed.org/series/RPI

Enhanced UI has ended, but it seems consumers are relying on credit now to maintain the same level of spending. It's not clear how long this will last, but it could be months, judging by the consumer loan data here.

https://fred.stlouisfed.org/series/CONSUMER

Note that many consumers paid off debts with the stimulus, is why this chart dips at the end. But we're quickly climbing back. Given lower interest rates, it's likely this can persist a few more months at current trend.

I suspect this will end organically whenever consumer credit is maxed out, and demand falls. But at the same time, wages are increasing fairly rapidly now... Is it possible higher wages can continue to support this new level of demand?

Probably in part, but not entirely.
Not sure about “state of the art” but if you’re on Mac, VDMX (https://vidvox.net/) is a good place to start looking. Its sort of like a DJ mixer for video sources but lets you do other things like control parameters of your video sources with a MIDI contoller for example.
you could but you don't need higher latency.
The de-facto standard resource on React + TS is the community-maintained React TypeScript Cheatsheet site:

https://react-typescript-cheatsheet.netlify.app/

But yes, I'd love to have some of this info added to the official docs as well.
People will act to maximize their short term benefits vs costs. They’ll buy American made, Union made, imported, whatever is cheapest. Of course at the margins some people will choose (place value on) one source or another, but one cannot expect the larger part of the population to act against their immediate incentives to achieve a desirable social outcome.
Because ATMs existed 30 years before Apple Pay?

Because it would cost a great deal of money to add Apple Pay functionality to ATMs?

Because adding other options increases the surface area of potential attacks - with technologies that are not within the scope of control of the ATM industry?

And why just Apple Pay? Why not other options?

When it comes to the financial system, consumer convenience is one of the lowest priorities.
I think it would benefit society if we could s/alcohol/cannabis/g in the public consciousness. Vaporized flower or edibles seem ideal, because combustion creates a variety of questionable chemicals and local pollution.

A subset of the population will always be looking for some way to escape reality, but the top 2 (alcohol and tobacco) have relatively disastrous health effects.

Granted, anyone who's fine with reality as-is should be encouraged to stay the course.
> where does it stop?

Perhaps after giving each open source project 11 cents? That made me curious about the numbers, and I found a paper which says "Daffara estimates that there were 18,000 active open source projects in September 2007 worldwide"[0] which would mean donating about $2000.

Another analysis from 2013 calculated that "87% of projects have 5 or fewer committers per year"[1] so if we unreasonably assume that each developer only works on one project, that might mean 5 times as many developers as projects, so $10,000 to donate 11 cents to every open source developer.

[0] https://arxiv.org/pdf/1408.4978.pdf

[1] https://redmonk.com/dberkholz/2013/04/22/the-size-of-open-so...
Imagine 2 empty parcels of land in downtown Manhattan, one can have a giant skyscraper of any height built on it and the other has to be a single family home. The parcel of land with no restrictions is going to be worth exponentially more because you can built a massively profitable structure on it, the other one is so regulated that it isn't worth any where near as much. The more profit you could derive from a parcel of land the more its worth. Now I used an extreme example just to get my point across but the same principle holds on a small scale. If your house was rezoned for apartment buildings and the demand existed, someone would come in and buy it off your hands for a huge premium. Since in our hypothetical someone had just built an apartment building next to your house, the value of the land is already high, simply allow your parcel of land to allow more structures would cause it to rise in value.

On the infrastructure side, its a much better deal for you as well, the combined value of all the property taxes from the apartment buildings will be way more than if that lot had remained a house. Since the road, water, sewer and electric lines are already in place nothing new has to be built. You benefit from all those property taxes coming in from the apartment building while the liabilities to the government have barely increased. The local government can use this new surplus of taxes to build new amenities for you.

For traffic, sure but that's why you want to build more pedestrian friendly neighborhoods and public transit so people don't have to drive everywhere. Once you have enough people in a place you could open small shops so they can hang out around the building rather than drive everywhere.
That's not a bad idea necessarily, it's just not economical for regular civilian use. Fossil fuels are still far cheaper than synthetics regardless of the power source.
My recollection of the time window is wrong, but I’d say microprocessors, then smartphones were fundamental. Chips ate both minicomputers and mainframes, and the smartphone totally altered how people interact with computers. Tablets are just big phones and watches are just smaller subsets. Software wise, the web. The net is old but it took the web to make it explode.

What am I missing?
It’s a better representation of what’s going on underneath but FWIW I agree with you, there are very few instances where I find hooks code that’s as readable as class-based code.

I know I’m not typical at all but hooks kind of marked the point where I lost interest in keeping up with the changes in React. I’m lucky that my job doesn’t require me to and I’ve had a great time exploring options like Vue and Svelte. Svelte in particular feels like it takes the opposite approach to hooks-based React: rather than force you to think about the way React is processing things it lets you write code the way you think about things and transpiles it into working JS.

Beyond “everyone uses it” I can find few reasons to prefer React these days.
I wrote a simple rss2email application, which includes the ability to only send emails for feed-entries matching/not-matching a given term.

I find it useful for simple filtering, but of course it being email you can also filter at the receiving side, as well as the sending side.

https://github.com/skx/rss2email/
Does anyone know of an alternative that keeps both audio & video in complete sync, but possibly pauses/buffers at times in order to maximize the segments where everything is kept in sync?
I think he refers to how much code does eval need, which might be about 15-20 lines.
https://asiatimes.com/2021/10/highly-vaccinated-singapore-se...

Does vaccination (in this case) make it so others around you don't get sick? No.

These things are a risky venture and don't appear to have much long term benefit other then bringing money in to drug companies.

If people are "at risk" or otherwise want to take their chances fine. But "mandating" it for others, yes, including loss of job is criminal. This isn't polio.
I don't want privacy just for the sake of having it. It's a tool that serves a purpose that's no longer or significantly less relevant in that story.
I don't think it's necessarily a bad thing. Like you say, some regulations are needed, and we wouldn't want to allow unsafe cars on the road just because crash-tests are a barrier to entry for startups.

However it does serve as a moat for players with more capital, and that's something we should also be mindful of. For instance, maybe we could have some of the requirements scale and only kick in when a product meets certain thresholds in terms of numbers of users.
Why not? It sounds like you think this is obvious, but it isn’t to me.

I live in an area with occasional grandfathered-in exceptions to zoning rules. There’s a cafe run out of a house, and a butcher shop run on a residential street corner between houses. And its absolutely lovely!

I would have no problem with people making things (“a factory”) next to a school.
It is is depressing, that clear and obvious solutions were missing at economy-critical supply chain infra.

Never attribute to malice that which is adequately explained by stupidity.

But also it's 2021 where people are the most cynical we've ever been, it's almost like there's interest groups in the US that want a fanning of inflation or delayed recovery through shortages.
Is there any evidence this is a high leverage solution. Right now, it is an idea being tried. We dont have the results…
Why would you assume a state system would be better and not even worse?
Imagine how much more awesome these visualizations could be if music files came with more than 2 channels. I'm reminded of old tracker software which had simple visualizations for each track.

https://youtu.be/eclMFa0mD1c

Imagine what could have been if every instrument or voice had its own channel...
A carbon tax is essentially going to hit the average person hard. Moreover, the average person has a lot of driving they have to do, tax or not. And plenty of rich people could ignore the tax and keep driving.

And the political impact would be angry people ready to listen climate deniers.

What's needed is a plan to eventually give everyone an electric car or some choice, any choice, that lets them do their daily business with much lower carbon consumption. Maybe taxes can change the behavior of industrial users but for consumers, this is totally daft solution.
Fully agree with #2.

No matter how clever you are, feeling at ease around people takes some practice. I used to be considered super extroverted, but now after the lock-downs, I also feel a bit awkward inside. So pick an event that might be interesting - any event really - and go there. Try to spend 1 hour without staring at your phone and instead look at what's going on, what other people are doing, and what you could do.

Also #3. You'll be surprised at how little what you say actually matters, as long as you are generally friendly, attentive, listen to them, and are halfway hygienic. Most people are so worried about what you might think about them that they barely have time to form an opinion about you.

At that event, there will probably be other people that are lonely, too. You'll need to divide them into 2 groups:
a) they are alone because they are difficult to talk to, or in a bad mood
b) they are alone because they are in a similar situation as you
So if you see anyone that is alone, makes eye contact, and seems friendly, just talk to them.

"I went here alone because I was so curious about X but everyone else already had plans. Why did you come?"

Extra credits: Try to start your questions with Why or How. It gives the other person an opportunity to talk about something unrelated, if they want to.
Google Strong-Arms Smaller Competitor with Data Demands
There is some effort to set up an “official” community fork, see https://we.phorge.it/
This is a perfect reason why most zoning sucks - but not all zoning sucks. Current zoning prevents most neighborhoods from being walkable. You can't have cafes and grocery stores near most houses.

But replace cute cafe in your example with a landfill or a cement plant and see if it's still awesome.

This is why some zoning is good.
1Password Signup Email Strange Activity
You don't need zoning laws for that. The UK doesn't have them, yet still has pretty stringent controls ("planning permission") on what you can build. Explanation: https://en.wikipedia.org/wiki/Zoning#United_Kingdom

Each area - typically a district, which is a sub-unit of a county or city - has a "local plan" which is decided democratically by the local government. "The plan does not provide specific guidance on what type of buildings will be allowed in a given location, rather it provides general principles for development and goals for the management of urban change."

All of this sits under a National Planning Policy Framework set by central Government.
Having a cop point a gun at you because he thinks you are possibly in the process of committing a felony is reason enough for suspension in many European countries like Germany and Switzerland, for example.

I know that this discussion is about US law, but I want to add this here to put in perspective how skewed law enforcement regulation is in the US.

Much of what's perfectly acceptable in the US would be considered abuse of power in Europe. Such as pointing a gun at someone just because that someone could possibly be in the process of committing a felony.
Even your reply would be a big help on that page.

Personally, I like to use the best tools even if they are well outside my current skillset (diving in to early Photoshop was overkill to recolour images and took me dozens of hours to start to learn, but working with it paid off many times over the years).

Sounds like the most efficient path is:

1. Nice camera with long exposure via remote shutter: Take photos of stars / milky way / some nebulas

2. Add tripod and mount to automatically move the camera that can be optionally controlled via some smart device: Adds the ability to see more nebulas, and focus on objects for longer (meaning they show up brighter, with more detail)

3. Add software and maybe a telescope that can connect to the camera + mount: Adds the ability to capture things not normally visible, and really tune in to the details

Is that right?
No, stored data cannot be later used for any purpose.

In recent years there have been numerous laws and regulations passed concerning data rights and privacy. If you get consent for data usage in one way, but then use it in a way that differs with what the user consented to, that isn't in compliance with the law.

It would be fairer to say that even if the original company desperately had the desire to do so the legally required privacy compliance officer would reject their ability to do so. This is especially true at the bigger tech companies wherein they have things like external audits of their privacy compliance policies.

So why is it that so much of Hacker News as a community seems convinced that things aren't like this?

In the book Factfulness by Hans Rosling he talks about ten reasons that people get things wrong. One of them is that people assume that things stay the same rather than changing over time. One of the examples that he used for this is the widely held incorrect belief of a sharp distinction between third world and western countries. While there was once a sharp divide, the actual disparity greatly diminished. However, the legacy of that disparity continued to exist in the minds of people who weren't aware of the shifting distributions. As a result of these sort of shifting distributions one of the things he encourages in the book is regularly refreshing knowledge on a subject. I think something similar is happening here. A kind of nhilistic worldview in which things don't improve leads to people not updating their understanding of the world that changed in response to their frustration.
Ask HN: Is it ethical to bypass paywalls because I believe in free internet?
While WCCFtech has gotten quite a bit better after all the bashing from 2016. It is still no where near good enough to be on HN.
If the demand exists to build high rises then those people would already be pushed out at an ever faster rate. If you take a plot of land that previously had 4 units on it and turn it into a high rise with 100 units, then you can fit 96 higher income people onto that plot of land. In the scenario where you don't build that high rise, those 96 higher income people simply go into the existing housing stock and push those people out anyway. You can think of a high rise as a sponge soaking up demand. In our hypothetical with the high rise, the existing neighborhood's housing stock is in less demand (and cheaper) because all the wealthier people moved into the high rise.
In a way, what you’re OK with is more insidious because it’s tricked you into believing it’s real content. Now you’re even defending them, a far cry from the original ADS ARE BAD sentiment you started with.
Not possible to be in complete sync and have ultra low latency. You would have to have a jitter buffer (at least).
I find FF and devtools quite a lot better than when I used to use Firebug. The Chrome dev tools by contrast I find more difficult to work with.

The cetificate thing gets in my way as well. Our fossil repo worked fone with a self generated cert before they screwed that up and I had to waste my time generating a LE cert and setting up renewal. This is an internal service not a public web site. Someone enabled HSTS on a different vhost and FF wouldn't let me load the fossil web repo. The amount of babysitting is quite annoying.
Fellow Serbian here. I work with one of the client over Deel. Value is that you can have card connected to your account and you can spend money without withdrawing it to Serbia, also you can choose how much and when to withdraw (useful to get around tax limits).
He's upset that the government is (seemingly) incompetent. Defending their incompetence does not change the fact that they were incompetent as someone was so easily able to propose a solution while we have little reason to believe the government had a plan. It doesn't matter if that someone is the world's foremost expert (he's not, by the way) - what good is the government if they can't solve problems they're in charge of fixing?
No, it was to coworkers. Going on eBay completed auctions, I could’ve gotten around $800-1k for similar spec / condition machines.
I'm especially excited for this as Realtek codec support, at least from looking at the Linux driver, has a substantial quirks layer. The datasheet right there on the page makes it quite likely that if it doesn't work out of the box with the generic codec driver in Haiku, much more likely to get it working.

I do hope they don't switch back to the Realtek codec in the future.
That's been a huge & awesome improvement in VS Code & Visual Studio with package managers. I think there are plenty of items to be worried about but I don't think this is one. It's a nice feature.

I say this as someone who had to search through a crazy large GitHub repository of community Types back in the day all the time. Then you end up having to send some PRs & wait for them to get approved if you hope to use the types in a larger team or as part of a build process. You could also create your own fork until they're approved & then go back & update the package.json.
This whole thing keeps getting worse and worse.
amazing thread, thanks for sharing.
Interesting to consider this analysis [0] of available studies that mentions some if the CDC references. The overall quality of the supporting evidence for masks seems to be not very good. In light of the societal costs if, in fact, they do nothing, I would hope for a stronger signal of their efficacy. It seems particularly cruel to mask children, who do not seem to have adverse outcomes with Covid, if the masks don't work.

[0] https://www.city-journal.org/do-masks-work-a-review-of-the-e...
I think the bigger issue is that our culture sees housing as an investment vehicle rather than a commodity like food. You wouldn't stockpile a warehouse full of non perishables with the expectation that they will skyrocket in price. Likewise, nobody should buy multiple houses with the expectation that they will skyrocket in price.

Without this mindset, I doubt anyone would be so opposed to change zoning laws as cities grow/change
> My favorite stat is that weekly church goers report the highest satisfaction in their sex lives.

That's really interesting. Is there more data? Any differences between the sexes? Age?
How is eclipse doing in terms of performance these days? I used it maybe 10 years ago for some C++ and Java development, and it was quite capable, but it had the feeling of being a lurching behemoth.