skysight-inc/HackerNews huggingface dataset:
1) React has no state management - approach it not from what it should be, but what it is - a tree of components that just render their props and where each component has some internal state.

2) Components have behavior. In Class based components they were implemented as methods. Simple enough, classes have methods. If you think about an iteration of rendering the ui tree, it goes down the tree and calls the mount method for each component in the ui. With hooks, instead of calling a method on an instance, it's implemented as an inner function of a component that is also a function instead of a class. Instead of explicitly calling the mount method on a class instance, calling a function that's a component automatically runs it's inner mount method. The way that it knows the which inner function is a lifecycle hook is because you import something like 'useEffect' from the react library. And that global useEffect function knows the current component because the renderer sets it as it's going down the ui tree. Hooks are better because they can be written as arrow functions (more concise, cleaner), and because you're calling a framework function, that function can have more complex behavior like how useEffect can track when to update because it's being passed in an instance of something like an internal state variable.
I’m not passionate when it comes to delivering work at my paid job. I have opinions, but don’t care if the rest of the team wants to go another way. I make myself heard, and move on. I think that’s a perfectly fine way to make a living.

On the other hand, I’m very passionate about my personal projects and how and why I work on them. But I’ve found that a health dose of “I don’t care” actually keeps the wheels moving, rather than get stuck in an endless cycle of revisiting technical choices, design etc.

Not being a passionate developer ≠ being bad at your job.
From time to time this concept of "boring development" etc comes up. And to a point I get it: we've all been burned by people switching around tech to the latest thing which ends up being buggy, poorly supported, and the benefits are nebulous at best ("oh, you rewrote this from a python framework to a ruby framework? I ... why did you do that? Seems like a lot of work for no real benefit...")

But I think this sometimes misses some of the real upgrades that exist out there:

- Strong typing really gives a benefit when you're refactoring, and other benefits in expressiveness when you can express what you want the solution to look like before you write the solution.

- Going from "pile of interleaved CRUD / if statements" to designing thoughtful abstractions for your domain can simultaneously reduce code complexity and reduce the number of bugs you encounter.

I think we sometimes overfit on "well, you say you're doing this for code quality reasons, but really you're laundering new-and-shiny distractions with code quality as a justification. In the end nothing will be different and we'll have wasted a lot of time".

But in reality, these things do accrete over time, and some teams are dramatically more effective than others due to judiciously picking "exciting" things to work on.

I think boring / exciting is a surface characteristic that doesn't correlate well with the actual metric you want, which is effectiveness and velocity gained. It's like arguing all day about whether your car should be red if you want it to go fast, it's just completely ignoring the facts on the ground about how things work.
Which creative field did you work in, photography?
> Or, learn how to say “I don’t know”

That would require semantic understanding the LLM doesn't possess.
In what country are you? Keeping the money and not referencing why exactly (i.e. proving fraud on your side) is obviously illegal almost everywhere. Small claims court or your local equivalent should handle this.
They get checked by the lawyer for the other side.
On the modern slavery front have a read of the transcript of the podcast from our modern slavery expert discussing how all this fits together.

Serious policy people who are worthy of respect are doing this thing. Molly can snark all the likes but all that she’s demonstrated is arrogance, poor judgement, an unwillingness to admit when she is out of her depth on real world issues like modern slavery, and a willingness to use lynch mobs to defend her point of view rather than to discuss the actual topic. The world is filled with people who point and laugh for a hobby, but once it becomes a living all intellectual honesty goes straight out the window.

If you want to understand what we really do, read on.

https://podcast.mattereum.com/episodes/ending-slavery-with-t...
This whole discussion is concerning. So can somebody please point me to what is considered the modern React way? Educational resources, Tutorials, Docs please? Or is this modern way based on Beta documents?

Edit: Is this the place to start? - https://react.dev/

From what I see from the tutorials...Why the closeness to NodeJS?
What type of printed parts were you selling?
Why aren't producer-owned podcast co-ops more of a thing?

Such co-ops could sell their own ad spots, pool funds to promote network shows, manage a subscription service, pay-out dividends, etc...
Aetolia tried this in a 24 hr experiment: https://nwn.blogs.com/nwn/2023/04/aetolia-mud-virtual-world-...

Sounds like it was a success! I suppose it comes down to cost - I think it'd be fun to try a single player game authored like this and would be willing to use my own API token to try it out.
Before you make fun of this, realize that while to the older HN crowd a 25 year old imparting life advice may seem laughable, to 20 year old college students this is likely very interesting and informative, while being more “fresh” in terms of applicability to the contemporary world than what us older folk could give. Even if we might think it’s inaccurate or lacks perspective for other reasons, it has benefits we can’t give.

It’s also just interesting to read what kind of advice younger people would give to those younger than themselves!
The video is about Nikon blocking international sales of their used camera parts on eBay. It may be due to "free trade" agreements forbidding the import/export of patented goods without the IP-holder's permission, but I only know industry groups tried to include such terms - I don't know if any agreements in force actually contain them.
> I'm stuck using Gmail with a custom domain.

Google Workspaces is $6 / user / month.

I presume you were grandfathered for free from personal G Suite, but for the rest of us fastmail is actually less expensive than google's offering (though google also gives you Drive space and whatnot).
> Swing dancing

Swing It Seattle? Me and my wife go to the wednesday dances :-)
for jira (and I assume many other similar products), it is definitely possible
Principia Cybernetica (1993)
> The Supreme Court has not yet considered the application of the border search exception to smartphones, laptops, and other electronic devices

We need additional ways to create standing in courts

It is ridiculous that a constitutionally contradictory law or policy can remain in the books for decades, just because the right rich person hasn’t been inconvenienced enough by the law to challenge it

In some countries, the President can get a law evaluated for its constitutionality as an additional choice than just vetoing or signing. We could start there.
If someone hacked westlaw and maliciously replaced opinions, I think it would not warrant censure of lawyers who cited westlaw. Maybe a bad day with the judge, and they'd have to amend the filings. This is malpractice in a way that relying on an accepted if technically fallible resource isn't
What’s most galling is not necessarily the amount done, but the massive success of the disinformation around the issue where even now we have very reasonable sounding people asking, why can’t we have a nice discussion about it without the panic?
Ok, that's a person!

How is saying that they should have disclosed a conflict that they did not disclose not accusatory? If that's the case, the accusation is entirely justified and should be surfaced! The other signatories would certainly want to know if they were signing in good faith when others weren't. This is what I need interns for.
> that the tag is configured to permanently disable all write access after three wrong password attempts

Why is this kind of thing legal? For how many politicians and activist groups claim to care about the environment, why hasn't anyone introduced a bill to ban intentionally turning useful equipment into waste? Any legitimate security needs would be fulfilled just as well by doing a full wipe and factory reset instead.
But in the scenario that the Saga pattern handles, you have at least TWO databases, and multiple processes can be modifying them in the meanwhile. It IS a gordian knot and you don't have a known clear place to restore from.
It's slightly more now with private members, but still prototype based inheritance and definitely not the same. Composition will still usually perform better all said.

If you want something more, better to use TypeScript or step to something like Rust+Wasm.
Off Book is great if you love musical theatre and/or improv
Here's the graph of global plastics production: https://ourworldindata.org/grapher/exports/global-plastics-p...

It's an exponential curve. Most plastic made was made relatively recently. This is less obvious in the first world, where we've had consumer plastics for many decades. Most growth in plastic use happens outside the US.
And what do you think you are adding of value here?
I think you are caught up on the word communism.

Communism as it exists today results in authoritarianism/fascism, I think we can agree on that. The desired end state of communism (high resource distribution) is being commingled with the end state of communism: fascism (an obedient society with a clear dominance hierarchy).

You use communism in some parts of your post to mean a high resource distribution society, but you use communism in other parts of your post to mean high oppression societies. You identify communism by the resource distribution, but critcize it not based on the resource distribution but by what it turns into: authortarianism.

What you're doing is like identifying something as a democracy by looking at voting, but criticizing it by it's end state which is oligarchy.

It takes effort to prevent democracy from turning into oligarchy, in the same way it takes effort to prevent communism from turning into authoritarianism.

Words are indirect references to ideas and the ideas you are referencing changes throughout your post. I am not trying to accuse you of bad faith, so much as I am trying to get you to see that you are not being philosophically rigorous in your analysis and therefore you are not convincing because we aren't using the same words to represent the same ideas.

You are using the word communism to import the idea of authortarianism and shut down the analysis without actually addressing the core criticism McFarland was making against capitalist societies.

Capitalism is an ideology of "me," and if I had a replicator, I would use it to replicate gold, not food for all the starving people in Africa. I would use it to replicate enough nuclear bombs to destroy the world, so if someone took it from me, I could end all life on the planet ensuring that only I can use it. So did scarcity end despite having a device that can end scarcity? No. Because we are in a "me" focused stage of humanity rather than an "us" focused stage of humanity so I used it to elevate my own position rather than to benefit all mankind.

Star Trek promotes a future of "us" and that is why it's so attractive. McFarland was saying that "us" has to come before the end of scarcity, and I agree with his critique.
> 3. ... before too long we will ... see AIs that outperform humans on most tasks.

This is ambiguous. Do you mean

A. that there is some subset T1 of the set of all tasks T such that T1 is "most of" T, and that for each P in T1 there will be an AI that outperforms humans on P, or

B. There will be a single AI that outperforms humans on all tasks in a set T1, where T1 is a subset of all tasks T such that T1 is "most of" T?

I think A is unlikely but plausible but I don't see cause for worry. I don't see any reason why B should come to pass.

4. AIs that are much smarter than any human pose even graver dangers.

Sure. Why should we believe they will ever exist though?
Potential legal issues aside, I also give disclaimers like "I am not an entomologist" as a way of introducing myself as a fellow interested amateur and leaving room for an actual entomologist to come in and contradict me.
Two lines from a song I and rjbs wrote but never quite published (set to the tune of Major-General’s song):

> Its JSON-centred roots and HTTP are conventional,

> so special parsers are not needed: this is quite intentional.

SMTP and IMAP are a pain and problematic to deal with for various reasons. Building on popular web tech primitives makes everyone’s lives much easier, even if you’re not making a webmail client.
> Spending the hour or two insync time as an Avatar in a 360 6DOF 3D meeting room floating out at sea with your team would have its advantages over zoom squares.

What are the advantages that would have?
That's assuming it's citing the very last page of the document...
Yeah but kind of force majeure at that point.
Widgets Are Cool Again
The road outside your house is probably the largest source of microplastics in your life already. Tires rubbing on them makes a staggering amount of microplastics! Production rates go up with weight, so these new BEV trucks and SUVs are an absolute horror show on that axis too.
Cyrus is what fastmail use for their own mail servers. And even the fastmail web ui uses jmap.

I don’t know where it says jmap support is experimental, but I think it’s pretty stable and well supported in practice. The main maintainers of the project depend on it utterly.
AI Gore
It couldn't be you -- or at least shouldn't be -- unless you defrauded investors and patients like she did.
Advertising to whom? Haters? LMAO

Molly White writes a very one sided blog which any anti-Web3 person can point to. It is like, say, Electronic Intifada or MondoWeiss that anti-zionists can point to.

The point was to relate my experience with trying to reach out and welcome Molly on our show and discuss her thesis vs projects in the web3 space. Believe it or not, most scammers don’t work for 5 years and go $200K into personal debt after the initial money ran out to build an open source platform. Which we released for free on the blockchain and GitHub.

Most scammers take your money to enrich themselves and run.
Elizabeth Holmes enters Texas prison to begin 11-year sentence
One of the consequences of an agent being bad at their job is that they accidentally put the wrong person in jail for a crime. Because some of the drafters felt that it was more important to protect the innocent, they decided to put the onus on the government to follow procedure when trying suspects.
>If you can't do that, what exactly is your job as a lawyer?

to convince some (judge/jury) that your client is the one to win the trial. ethics are meant to be the definer of how far to go in that cause with licensing boards being the ultimate decider if you've crossed the line and are allowed to continue in the legal practice.
Calling out a charlatan has significantly more value than someone publicly exposing their fragility.
It’s especially rich when Lyft gives you this treatment after you’ve selected the more expensive “rapid pickup” option. Nothing hits quite like the tech company gaslighting experience of being told “Just a moment…Just a few more seconds…” for upwards of five minutes by an app eager to discourage you from canceling your $5 extra “three minute pickup.”
Distributed apps. No central server involved. Peer to peer is one. Or each app is a server too and the information propagates in ripple like style. You connect to me, we sync, then another connects to me and this way the info that only you had now he has it too (and me of course). That's the original serverless idea. Not this walled garden crap with "cloud". Cloud is just a computer that is not yours and anything you put in there it's no longer just yours (or in most cases when you lose the account is no longer yours, period! - HN has plenty of horror stories from Google, Amazon, Microsoft that shit on people and call it rain).
So what is a good reason to attack a country? Just to compare to other wars and how we treated the countries that started them?
Looking at all edits done by osm member affiliated with Grab from that wiki list (https://piebro.github.io/openstreetmap-statistics/#b34d) it seems they contributed a lot of edits (21M in total, sixth largest company contributor). The amount of edits slowed down on the last year though.
> AI already beats the average human on pretty much any task people have put time into

No it doesn't!
Hobbies. I got into high power rocketry and met people online and then went to some meetups of local clubs in my area. There’s a couple regional events I attend too. It’s nice to have a community of friends with shared interests but not so physically close I have to interact daily.
So Russia's flagship malware is an EXE?
> can't imagine CBP just letting someone through without it

Depends on the border that you're trying to cross.
The article mentions the Vibrio genus several times, but doesn't mention that this is the genus of bacteria responsible for cholera, which may be helpful context in understanding what it does and what you may have heard about it before.
> Or, learn how to say “I don’t know”

It doesn't know that it doesn't know! It is, very roughly speaking, a model that is designed to print out the most likely word given its current input and training, and then the next word etc.

Whereas you or I might be mistaken about some of our faculties, memories and skills, ChatGPT cannot possibly "know" what its limitations are. It was never taught what it was not taught (obvs) nor can it conceive of what it was not taught about. It might come back with some useful chat in this regard but it cannot reason.
I think that view = func(state) is an unnecessary complicated way to describe frontend development.
Honest question, can't we just mix gasoline or something similar with something that will make it float, pour it over the sargasso and then set it on fire?

Edit: we control burn areas on land all the time. Why not on the ocean?
Going to be interesting that our great grandkids will have to deal with plastic rusting.
Obviously you can come back into the country without a passport/ID, it’s just a hassle. It’s not like they send you back and now you have no citizenship.

They have a process for this, it just takes a long time to manually confirm you are who you say you are.
My understanding is that 4% number is for the oil used in plastic production, which is not necessarily the amount of oil sequestered in the actual plastic.

Conversely, I don't know if that number includes production from natural gas and not just crude oil, and a lot of plastic feedstock is made from it.
I think this is it! Thank you!!

EDIT WAIT no maybe not. They all look the same! hmmm
This looks like a download manager, doesn't seem like it can actually extract files from a webpage??
it's a shame they don't have (yet) a EU hosting :(
How do these compare with the current heavyweight library?

https://github.com/streamich/react-use
I have fastmail configured to accept *@{my name}.{my domain} and then I have a rule for each blocked sender. So it's it opposite of the logic that you want: I'll receive they mail until I explicitly block you.

This is still not implicit block like you're after, but when I looked through the settings to see how I had it configured I discovered this integration with 1password: https://1password.com/fastmail/

which, now that I know about, I may start using.
How about when the blue part goes away, as documented? :-) I've used a Sonicare for, what, ten years or more? And I don't think I've ever seen an indication that the NFC is communicating anything to me. That's not to say that it isn't, but if I'm going to ignore something[0] and replace the head when I damned well please, I just ignore the blue part of the bristles. I could probably adjust my behavior to ignore whatever flashing LED the NFC sets off, but after so many years I'm just going to continue ignoring what I always have.

[0] I'm either easy on toothbrush heads, or Philips is lying, because when the indicator says "buy a new head" it still has plenty of life IMO. Bristles straight and tall, just like a new one, but no blue left being the only difference between that and new. So I ignore it and get a new one when the bristles go a little wonky.
There are people that will die this evening in Kyiv. Maybe you will care when it get's closer to you?
I'm so old I remember when Pluto was a planet, as good as Jupiter or any of them. Now, it's just a punch line.
It has never been the case that 100 (or 50) mile ranges from the border are open to warrantless searches; it's a myth spread by a misleading bit of ACLU promo material.
It's weird that the landing page has "Joe" and "Leo" (uncommon names in India), as placeholder users, but the authors are from India.
Doesn't "everything Plato said was stupid" count as philosophical progress since Plato ?
Sounds like theft to me. I would sue in small claims on principal. But thanks for sharing, noted: I will never sell on Etsy lol
The border search privilege applied at the time of the founders, so it's hard to argue that it's constitutionally invalid. And, in fact, this ruling upholds the border search privilege; it just sets electronic devices outside of their reach.
> Why not? Having open source protocols that compete with PayPal and VISA and aren’t funded and controlled by central states can be a positive thing

Sure. That isn't what crypto has become. After ten years, it's fair to call it given the amount of fraud, dishonesty and resource misallocation. Again, not saying ban it. Just tax it, regulate it closely, and keep an eye on the folks doing it to make sure they're focussing on doing it abroad.
> That doesn't follow. It's like saying "if the AI can build a gun that can kill a human, it can build an anti-gun that can stop the gun".

Why couldn't it? Metal of X thickness = stopped bullet. Not exactly a hard problem to solve for. Humans managed it quite quickly. But either way it misses the point.

> So maybe the killer AI would need two months..

Yes, maybe it would. Maybe it wouldn't. Look at every single one of your assumptions - every single one is fiction, fabricated to perfectly sell your story. Maybe the defender AI communicates with the killer AI and comes to a compromise? Why not? We're in la-la-land. Any of us can come up with an infinite number of made up scenarios that we can't prove will actually happen. It's just a moral panic, that will be used by people to their benefit.
Academia and scientific research has changed considerably from the 20th century myths. It was claimed by capitalism and is very much run using classic corporate-style techniques, such as KPIs. The personality types it attracts and who can thrive in this new academic system are also very different from the 20th century.

https://www.theguardian.com/science/2013/dec/06/peter-higgs-...
Finally someone puts this in a very clear and honest way!
Ah yes, just add petrochemicals and hope the environmental disaster gets better.

Best bets to just leave it the fuck alone.