skysight-inc/HackerNews huggingface dataset:
> useEffect has the caveat that it won't update with useRef

Hey, what do you know:

> My guess from your tone and general confusion around React is that you expect useRef to have lifecycle hooks when the `current` value changing does not have any lifecycle hooks at all, and somehow your problem with that has made you rail against these hooks

Ok, but I'll allow your point that "hooks are complex". What do you propose as an alternative? Have you seen a superior solution the React team is just ignoring? From where I sit, hooks are very terse, they have well defined rules, the error messages they give are useful, and they do a lot of powerful things.

Powerful things have edge cases, and your edge case was assuming something would be magically wired for you. Even the instantiation of a `useRef` vs a `useEffect` should give big clues useRef won't update a useEffect; the "touch point" for the useEffect getting the updated values is thru the React component, which has two well-defined stateful flows: state and props. `useRef` is quite clearly (by definition!) neither of these things, and no wiring has ever existed causing any type of ref to re-update your component (and they importantly never have).

So, sure, there are limitations and rules you have to pay attention to with hooks... but that's just programming. I don't care that someone accidentally created a memory leak by misusing hooks, you can do all sorts of powerfully broken shit when you don't take effort to misunderstand the underlying library. Hell, I cause my browser to crash semi-regularly when developing in mobx because I cause reactive infinite loops, does that mean mobx is a shit tool and I should stick with redux?

Edit: even further to this point, did you read the god damn docs for `useRef`? https://reactjs.org/docs/hooks-reference.html#useref literally addresses this caveat you're bitching about EXPLICITLY. "Keep in mind that useRef doesn’t notify you when its content changes", how could it even be more clear no consumer will be notified of updates to your ref?
It won't be an OSI-approved license, therefore corporations won't consider it to be open source

> The license shall not require a royalty or other fee for such sale.

https://opensource.org/osd
"Should the computer program the kid, or should the kid program the computer?" -s. Papert

Whoa.

That's a great read, thanks!
Stripe was a sea change for those of us who implemented PayPal. It was so much better it seemed too good to be true.

I’ll be cheering for them until they get too huge and complacent, and then some brilliant startup will disrupt them and the cycle of nature will continue.
And "the vaccine is the Boogeyman - look that's why we're not allowed to say so on YouTube" isn't infantilizing? You might be giving too much credit to adults who can't do basic math.
In this case, there's a bit of extra text that is clearly clickable (has the now standard arrow to the right indicating there's something more). Then there's a dialog box describing the system and two choices: OK, Temporarily Turn Off Finding.

The modal dialog could be replaced with a toggle on the same screen as the power off slider in place of that text, and maybe one day it will be. But right now, since the feature is novel, it's probably worth it to have the extra bit of text so people know what the options are that they're selecting between. As far as slowing you down, you're shutting down your phone. If you only want to temporarily turn this off, yes, you're slowed down by about 0.5 seconds But if you are really concerned about this feature you've also had opportunities while using the phone to disable it so that it is permanently off in which case you can just use the power off slider and be done with it.
Those feelings are from wiring that makes sense in a small tribe of about 150 people where the social contract will involve mutual loyalty. It easily goes bad places if it is one-sided.

Good luck with your job hunt.
It’s much more interesting to use the mantissa bits to store data than using a NaN as a very big bit.

From nanbox [0] README:

> IEEE 754 encodes 32-bit floating points with 1 bit for the sign, 8 bits for the exponent, and 23 bits for the number part (mantissa). For the specific case of NaN (e.g. the result of dividing 0 by 0, or the square root of a negative number), the spec encodes this as 11111111 in the exponent. The sign and the mantissa can be anything, and the spec suggests this can be used for "diagnostic information". One/some of these bits is/are commonly used to indicate a quiet NaN (qNaN) which could be expected vs. a signaling NaN (sNaN) which could be unexpected and should trigger an halting exception. This behavior is however sometimes different on different hardware.

> 23 bits isn't much space, but conveniently the max size of a Unicode codepoint is 0x10FFFF, making it a 22-bit charset. When you encode your strings in UTF-32, you're only going to be using 22 of those bits, so masking the top portion with the NaN signature makes all of your characters NaNs.

[0]: https://github.com/philihp/nanbox
Then I guess Youtube isn't the place you want to be. ;)
It does seem likely that the virus will become endemic, though hopefully reduced to something like a common cold virus. It is possible to get something in between, though, where the virus only exists in certain regions and thereby contain it, though this seems to be getting less likely.

We might get some traction with a booster tailored to delta, but only time will tell.
> Since covid is so deadly if you get it

Please. Median age above life expectancy. (At least where I live). Unless this is a board for 70 year or older seniors, this is utter bullshit.
Gotta wonder why Jobs was so upset over random headhunter spam. Isn't it obvious that's what this message was? Everybody whose email address is publicly visible gets a dozen of these a month, don't they? If Jobs had bothered to check his spam folder, I'll bet he would've found a couple of messages trying to recruit him to Google.

Yes, there was an illegal, unethical deal in place, but I wouldn't think this message alone would trigger such a conversation at the highest levels.
Almost all of SV passed on Amplitude at one point or another. I remember one of them made a comment like "analytics companies pop up like mushrooms after a rainstorm".

Raising our seed round was brutal. It took 6 months end to end and was one of the lowest points for me personally. I was trying to scrape together $1M in $50k chunks from any angel who would give us money. We ended up having to lean on our background as founders (MIT engineers, winners of the Battlecode programming competition) to convince the first set of VCs to come in.

Once we started showing traction (0-$1M in ARR in 9 months) we went like hotcakes in our Series A and beyond.

The real test is do customers buy. If you can show that everything will follow. VCs are weak predictors of market success. There's some signal, but they get it wrong almost as often as they get it right. If you close 3-4 paying customers I guarantee you they will change their tune. The incumbency argument is pretty weak IMO, particularly in B2B. Markets are so massive these days it's easy to carve out a large niche. For example, Freshworks went public last week even though Salesforce "dominates" cloud CRM.
This is an inaccurate assessment. Though weighed down by infant mortality, an average American would not expect to reach the age where COVID becomes significantly dangerous (55-60 years old).

1918 flu did not discriminate by age like covid does.

See: https://nymag.com/intelligencer/2021/09/covid-19-vaccine-sta...
> I wonder if it's ever a good idea to mention a job search when one doesn't have any offers in hand yet.

The modal manager's response is to fire you if you mention it.
Why not mprotect + -fstack-clash-protection?
take a screenshot
We've sent release notes our for a while but no one ever read them.
Now we do showcases of the feature so people have no choice but to see what new features are coming.
Bay Area health officials refuse to cite offramp for mask mandates
I am now going to go down the rabbit hole of arm specific bugs in the libraries I use because so far all of the applications I dev (arm ubuntu) have never encountered any bugs.

Yay free money!
Jobs made the claim in his biography. Read the article or the book.
If you don't do it manually that scales just fine.
I don't agree. One example of this business plan is the best software of its category on the market: open dental software.
> > What is the benefit of being functional?

> For React, the idea is building the UI as a function of the state

Well, if you have state you're already not functional.

Look, React does not have to be functional to be useful! Let's not misappropriate the FP label and apply it to a tech that is clearly not functional, misleading a whole generation of developers.

React is great, hooks are OK, but FP it is not!!
I would agree that they found the difference, but I don't think they explained how/why it overcomes the presumption that general rules should hold.
> This is awesome, saving that much money can be great for startups.

This doesn't sound very realistic. Cost-conscious organizations would hardly consider lambdas as a reasonable option unless you're well within the free tier limits. Otherwise lambdas are far more expensive than simply handling requests directly with a service running on EC2/ECS/Fargate.
Is this from The Decline?
The article is debunking this claim by Steve Jobs:

"That switching power supply was as revolutionary as the Apple II logic board was," Jobs later said. "Rod doesn't get a lot of credit for this in the history books but he should. Every computer now uses switching power supplies, and they all rip off Rod Holt's design."’
That makes perfect sense. Why should two NaNs compare equal? NaN is Not A Number - it means "you messed up and did an invalid calculation". You can't do equality comparisons on that.
>>>The modern one probably won't survive a drop less than 1 meter.

That link was more in response to the assertion "The modern one probably won't survive a drop less than 1 meter.", suggesting that warship-grade computer and electronic systems are vulnerable to mild shock damage.

And the Navy has, in fact, done a SINKEX on a carrier:
https://www.thedrive.com/the-war-zone/22639/this-is-the-only...

The results are classified. Considering how the flight deck and upper works look pretty much intact, they probably hit it with multiple torpedoes rather than anti-ship missiles.
Haha, I should note I wasn't actually very serious they would move back. I just wanted to highlight that a lot of people have moved off Rails for {insert other thing here} because they just have no idea how to debug or analyze performance and bottlenecks. I've fixed a lot of Rails apps as a consultant, and its almost always bad DB usage (AR queries or lack of indexes) and/or lack of caching.
That's kind of a moot point since the Delta variant has now out competed all other variants in the wild. If another new variant takes over from Delta it's unlikely to have a lower R0. At this point nothing we do can really stop the spread. Everyone should get vaccinated if they can because herd immunity won't protect anyone from infection.

https://covid.cdc.gov/covid-data-tracker/#variant-proportion...

https://www.businessinsider.com/delta-variant-made-herd-immu...
Reminds me of the work done by Tom7 for Sigbovik https://youtu.be/5TFDG-y-EHs
Florida Man[1][2][3]

[1] https://en.wikipedia.org/wiki/Florida_Man

[2] https://www.reddit.com/r/FloridaMan/

[3] https://www.theonion.com/florida-man-beats-out-heart-disease...
Mike Adams: "So the spike protein is a toxic nano-particle... and that protein itself causes vascular damage"

Judy Mikovits: "Yes, that is the disease. The envelope alone [the spike protein] causes the disease. And we've known that since 1980.“

https://www.bitchute.com/video/EXYCFOQBtsVF/ (minute 08:30)
> people aren't even agreeing on facts.

From the TFA.

"what happens to politics ... when rhetorical appeals to 'the facts' start to dominate people’s justifications"
There are a lot of weird claims in this post. Firstly, Fauci has publicly admitted to lying to the public on multiple occasions. I'm not sure why his credibility is unimpeachable simply because he's a bureaucrat in public health. Trusting him over a YouTuber "regardless of their credentials" seems like a significant overstatement of trustworthiness.

Secondly, Rogan has never said COVID was fake or just the flu, and the reason people assert that COVID is fake is down to motivated reasoning, which is the same reason Fauci thinks he was justified in lying to the public.

Getting people to change their behaviour starts by not dismissing them or dehumanizing them, and trying to steelman their position so they and you fully understand why they want to dismiss COVID. When that's done, it's often clear where you can compromise. Sadly, that's not what we see going on.
Plus boarding is quicker.
Yeah, give that guy a medal for just once not saying what his lunatic base wants to hear.
They are both smaller than NYC in population and have very strict immigration policies.
Seems in line with other Schedule I drugs like Psilocybin or Marijuana. Appropriate considering the addiction potential.
Past threads:

Apple didn't revolutionize power supplies; new transistors did - https://news.ycombinator.com/item?id=6575994 - Oct 2013 (63 comments)

Apple didn't revolutionize power supplies; new transistors did - https://news.ycombinator.com/item?id=3636047 - Feb 2012 (73 comments)
Facebook releases internal slide decks for research on teens on Instagram [pdf]
> I can still very much catch cov-sars-2 and still very much infect and kill another fully vaccinated vulnerable human being.

You just admitted that vaccinations decreased hospitalizations, which means that vaccinations decreased the severity of infections, which means that vaccinations decreased the chances of someone who is vaccinated from dying after getting infected
Cops are locally funded, mostly. Anywhere with "real crime" they're mostly busy and don't waste time violating people's rights over bumper stickers. The "nice" suburbs with overstaffed police departments and not a lot going on are another story.
If only I had listened here and dumped my stock in 2012…
That link isn't from the media.
I would venture a guess that some of that is due to the people sticking spoons to their faces, saying they were magnetized by the vaccine. Do we really need to give those people a platform?

While we are walking a fine line here, people have proven they will believe anything that is said in an authoritative enough voice, regardless of merit. At what point does the harm outweigh the good? We know social media allows these people to find each other and create echo chambers to reinforce their viewpoints and recruit others. We would have no problem if this was "white supremacy" or "terrorism", however I think this will affect many more people.
Hmm, the examples given show local analysis, within a single function. Where this sort of analysis really shines is with global analysis where you can trace dataflow across functions, and even across abstract interfaces. I have only seen this previously with Java code in intellij. I assume this is not yet supported by flowistry, otherwise it would be loudly advertised?
The law in question has the direct qualifier that the material is attached to a motor vehicle, which seems to imply a specific purpose. Based on the traffic laws in my own country it seems strange to list specific items like that rather than intent, which from what I would guess is that drivers should not attach things which will distract other drivers and potential cause an accident.

If this happened here the chain of events would look somewhat like this: The police would stop the driver and inform them of the distracting attachment, possible giving a fine. If the driver refused to remove the sticker then the police would simply revoke the drivers license and impound the car. If the driver tried to resist they would go to jail over that and/or driving without a license. The driver can then choose to appeal the decision and have a court decide if the attachment was too distracting or not.
Title neutrally editorialized because "Instagram Teen Annotated Research Deck 1" is a bad title.

Deck 2: https://about.fb.com/wp-content/uploads/2021/09/Instagram-Te...

Context: https://about.fb.com/news/2021/09/research-teen-well-being-a...
I didn't seem to find a 8-bit preset (what OP mentioned) to test how it would look like compared to true color images.
It's tough to avoid this thinking because examples of employees being treated like cogs are often systemic and very public -- like stack ranking at big companies that everyone (even people that don't work there) either knows about or ends up knowing about. Meanwhile, examples of managers risking their own skin are more likely to be individual and private -- sometimes to the point that the affected employee doesn't even know it happened because it was behind the scenes -- like a manager defending a performance review of an employee in a calibration meeting with other managers.
It was another site that used Stripe as a payment processor for used books that donated the proceeds into the church. The site changed because after several years of this kind of behavior from Stripe and elsewhere, I dissolved the LLC that formed it. It is a kind of religious discrimination.(unless you buy Stripe's weird crowd sourcing explanation and if you do, I've got a swamp I'd like to sell you to build a house on)

I am quite cognizant of what the Gestapo did. They discriminated slowly but surely on the basis of the religious identify of people who were Jewish. Our church was Messianic Jewish as was indicated on the site. Some of our members had, in fact, relatives in the Holocaust.
Sadly, no business opportunity can be so idiot-proof that management can't prove themselves to be better idiots.
Macy’s Fears Amazon Is Coming for Its Iconic Herald Square Billboard
Went down the rabbit hole from your link:

> > It is a parody/exaggeration of the Edsel, a similarly disastrous automobile designed by Ford Motor Company.

Points to https://en.m.wikipedia.org/wiki/Edsel:

It has a "Design controversies" section that's very relevant to today:

> Complaints also surfaced about the taillights on 1958-model Edsel station wagons. The lenses were boomerang-shaped and placed in a reverse fashion. At a distance, they appeared as arrows pointed in the opposite direction of the turn being made. When the left turn signal flashed, its arrow shape pointed right, and vice versa

https://en.m.wikipedia.org/wiki/Edsel#/media/File%3A1958_Eds...

Why is it relevant? Related thread from 3 days ago about blinkers with the exact same design flaws
, but in 2021:
https://news.ycombinator.com/item?id=28661282
Ask HN: Handling Immoral Actions by Company
My company is involved in immoral things. It may be illegal, but I don’t know the law.

What factors would you consider when handling this sort of situation?
Does the initial forwarded message imply that the SRE who received the recruiter's offer forwarded it to Stebe, or that it was picked up surreptitiously as it passed through Apple's email system to the intended recipient? I just can't imagine any SRE getting so pissed off at receiving a recruiter mail that they would forward it to their CEO.
I've listened to (and occasionally played) a lot of really mediocre classical music, and this sounded exactly to me like "lesser composer tried to mimic Beethoven" and/or "sketches completed by his student". Or, alternately, "great composer phoned it in", of which Beethoven's "Wellington's Victory" is a relevant example. The AI totally nailed the sound of Beethoven, the rhythms, harmonies, and orchestration... but my reaction is the same as yours. Fine for listening to in the background while I code, I guess.

On the other hand, I'm now very curious what similar experiments with other composers would sound like: Vivaldi, Brahms, Shostakovich, Philip Glass, John Williams.... the potential for AI orchestration is probably infinite.
Heard this anecdotally from the following link, can't confirm it: Youtube had taken down a video from the creator of mRNA, Dr. Robert Malone.

http://www.padrak.com/coronavirus/Dr.%20Sean%20Brooks%20at%2...
How? The article and subsequent comments don’t seem to complain about healthcare offered or FMLA at all. To be honest, he qualified for and was apparently offered a LOA and CHOSE NOT to take it!

I mean argue for universal healthcare all you want, argue FMLA protection expansions. But if $150-180k in LTD payout wasn’t enough for this guy to opt to take it, I am pretty sure a government program is not going to be that generous, ever.
Ask HN: What's the longest running project you've had cancelled?
I've had projects axed 6 months in and it's never really bothered me (I still get paid).

Recently we had a team project cancelled and it really took the team down. I don't really understand why this is such a downer for everyone. Do people in general feel more attachment to their work perhaps? Is this normal?

Please share your experiences with cancelled projects and how you managed to reconcile the situation. Was it a big deal to you or did you move on without any concern for the "wasted work"?
No, watch the interview. He actually says that wearing masks could actually be worse than not wearing them. In a later interview, he admits the suggestions against wearing masks was a lie because they were afraid of PPE shortages.

It's also not the only lie he's told and admitted to. See his claims about herd immunity, where the numbers kept going up, and when he was questioned on this, he outright said he just gave out numbers that he thought the public would accept at the time.
I find that strange. For example, I would call Angular or Vue "thick" with their extra templating files and DSLs and two-way binding.

I would call React thin because the JSX components you build are transparently just objects, they interact with types super gracefully because components are just classes with a method that returns nested objects, and your code is just invoking JS and producing JS until the React library itself performs the side effect of rendering.

I understand that React has abstractions and a heavy scheduling engine and all sorts of complexity, but a React component - the core concept of React - reuses directly JS concepts in place of introducing its own in most situations. That is thin.

I admit that if you are just thinking of libraries in general, of course a frontend framework is not "thin", but for a library which enables true composability and reuse, React is so thin compared to is competitors. Which seems a reasonable de facto context for a conversation about React.
wrong link?

https://kashgo.io/thoughts/sprint-is-shit
The printing press did precisely this.

It took a while to be especially effective, both because techniques of propaganda had to be learned, and because the general populace was not literate. As of 1500, population literacy rates in Western Europe were on the order of 10--25%. The climbed to 90%+ in the 19th century, the midpoint of which saw rapid advances in printing technology (iron presses, powered presses, web presses), a sustainable business model (advertising, as it happens). And in the year 1848, Europe basically exploded into revolution, affecting over 50 counries:

https://en.wikipedia.org/wiki/Revolutions_of_1848

More generally, the role of the printing press as an agent of change (social, political, economic) is the subject of Elizabeth Eisenstein's book of the same name:

https://en.wikipedia.org/wiki/Elizabeth_Eisenstein#The_Print...
someone can just wrap your phone in aluminum foil, bye bye phone.
The effect is systemic.
Also worth remembering: Managers directly influence the performance of developers. If you don't have anything nice to say, it's not necessarily your fault, but you should ask the departing dev if they feel you got them what they needed.