skysight-inc/HackerNews huggingface dataset:
If you are doing asynchronous data fetching in your components, only using those three lifecycle methods will inevitably lead to bugs when your props or state update but your asynchronous call doesn't fire again because it was in componentDidMount. You need to use componentDidUpdate to trigger the call again when props or state update. Alternatively useEffect with the dependency array properly filled won't allow a stale state like that to occur.
Agreed. Although the order i learned was title, figures, materials and methods. Sometimes there's useful stuff in the materials and methods, and sometimes that's where the bodies are buried.
It did to me.

He slams go for not doing stuff the Haskell-way (e.g. pure code vs effectful code).

This is not how you approach new things
Your university or department library should have archive copies of all the theses they’ve accepted. In Iceland, they’re all collected at https://skemman.is/?locale=en as well; similar websites likely exist for other places.
> A hard working genius born to poverty only has 80 years to work their way

Social Darwinism? You can do it today, just stop providing medical care for the poor... wait, this is already happening in the US.
Scala is awesome. It gets a lot of hate around here because many of the users of this site are Super Intelligent and Could Have Done It Themselves, Only Better.
Good! The election is already stressful enough without any bleating over trying to prevent every legally cast vote from being counted.
VSCode Feature Request Vote: Gutter Indicator, Without Git, Like Sublime Text
Things have moved on in the Handel world too, especially around garbage collection.
3rd sentence: "Multiple cities have decriminalized the substance, but Oregon will become the first to permit supervised use statewide ..."

4th sentence: "... will allow regulated use of psychedelic mushrooms in a therapeutic setting."

5th sentence: "It creates a two-year period during which regulatory details will be worked out, including what qualifications are required of therapists overseeing its use."

Read the article next time. This has the potential to benefit numerous people with different types of psychological conditions. It is definitely not nonsense.
Yes, but they're mostly constrained in libraries and there's a way to publish them so both 2.13 and 3 can consume them. You can expect "core" ecosystem libraries to be cross-published and most others don't depend on macros.

Note that most things you'd need macros for in 2.13 have language support in 3, so for user code - if that even uses macros at all - the upgrade path is fairly straightforward.
That's what I thought, it should just mean more options overall. I don't understand the downside if it's always an at-will employment opportunity. Workarounds exist if one doesn't pay enough. Some people act like one app taking advantage is the end of civilization.
Everyone has their own idiosyncratic sociopolitical views. I would not discount doctors' specialized knowledge as 'not science' (or worse, 'not evidence'). You just have to remember that medecine is a mix of hard and soft sciences (and other things too).
Thanks for letting me know. It seems to rely on bitcoin's block timestamps which are accurate within tens of minutes or hours.

https://petertodd.org/2016/opentimestamps-announcement#how-o...
Sorry to sound cynical, but in my experience future work sections in papers tend to be rather self-serving. A means to big-up their own research, or explain away discrepancies.

Looking for new ideas? Start hanging around with students/staff from outside your own domain. No better way to get the ball rolling on new perspectives.
You mean a large multinational company in telephony that had a campus in Ottawa?
For photography I agree. But if you're trying to create a "sun at home" because you don't have enough light/no chance to get sunlight, to feel the warm of the light can be nice...
> So, even if we had a treaty we wouldn't extradite people to China for sedition against the CCP because that's not a crime under NZ law.

So it's not a crime to call for a putsch against the NZ government? I'd be surprised if that were the case. It's a matter of framing things.
The reasons would be both historical and ideological. The end of WW2 saw the western powers and Soviet Union join in an alliance that thwarted the Nazi plans of a world empire where a master race (white folks) would be explicitly and morally entitled to enslave the rest of the world. Such an ideology is an anathema to liberal democracy and communists alike, and formed one basis of the alliance that crushed the Nazis. Only after the war and the common enemy was defeated did the split between liberal democracy and communism become the main conflict, and even then it rarely escalated to hot war.

BTW, to evaluate ideologies based on counting the dead in conflicts between powers, or on number of victims in famines that occur because of failed policies implies ideological and historical ignorance, despite the popularity of such blame games on social media. But it shows that people are getting fed up with all the killing at least.
Dialyzer is fully integrated into Elixir, yes. But again, it’s optional typing.
I wrote a BSD list on GitHub, let me know what you think of it.: BSD
Pros and Cons of Open-Source Address Validation for Businesses
This is not a part of the war on general purpose computing; it's a part of the effort to make Eternal September to end by making software that works for everyone.

As it is, this entails limiting the users' freedom to tinker in such a way that they simply cannot screw things up no matter how hard they try. Because, you know, if users have that option, then someone will take advantage of it and screw things up.

This line of thought has powerful political and philosophical backing, as digitalization is seen as the magic bullet that will solve a wide array of issues throughout society, and the general idea seem to be to protect people for their own good. Incidentally, it's often the most profitable route as well, as it's the only way to get non-technical users on-board.
My understanding is that a ballot measure must be modified only by ballot measure. Adding in a 7/8ths clause is a way of allowing, with difficulty, the legislature to change things.
A fresh install of Debian also comes with vi and not with vim. It's actually ridiculous if you think about the fact that vim was published 1991
That's actually a very good idea! Thanks.
FreeBSD-Git-docs/faq.md at main · bsdimp/FreeBSD-Git-docs
In my environment Kotlin has won the better-Java use-case quite thoroughly.
Wow. Not even a hard reset?

What model was this?
SEEKING WORK | Amsterdam, NL | REMOTE

Software Engineer with a Computer Science & Mathematics degree. Since 2014, I am offering custom Mobile, Software, and Web Application development consulting in order to build world-class applications, tailored to your needs, that is built with love.

Would you like to have a chat? Hit me up @ vaggdan[at]protonmail.com

Technologies: Google Cloud, Java, Spring Boot, Python, PHP, HTML, CSS, JavaScript, Web Components, Angular, Jenkins, Docker, MongoDB, MySQL, Elastic Stack (Elasticsearch, Logstash, Kibana, Beats), Redis, Apache Tomcat, Apache Kafka, & Linux.

Resume / CV / Portfolio: available upon request

Email: vaggdan[at]protonmail.com
The flexibility is perfectly fine when you're programming something on your own. But when you're in a team, or worse, in a large company, it starts to be a problem that everyone can use their own style. It's much easier to read someone else's code when you have a common code style.

And in Scala there are not only many different ways to use the standard libraries or to structure your code, there is a pure FP vs OOP-style FP schism as well. Because of this, you can qualify as a senior Scala developer for one job but only a junior in another.
As an aside, their website uses a serious dark pattern to trick users into paying. Their app is purportedly for helping you reclaim your fees so it seems like adding a bank account makes sense after you input your email address.

Off to the right you see the text
> "...you agree to charge a $36 a year subscription to this payment method."

There's no mention of a $36 / annual anywhere else. It's on the margin to clearly trick the user when simply adding a payment info.
As a layman my impression is most papers are too verbose. At least the ones that I can understand. After reading tons of steganography papers (for example) I found they tend to begin with the same retelling of the history of steganography from the beginning of time up to now, even though it's completely irrelevant to the topic of the paper (which is not history).
It's only a special exception of they don't repeal AB5!
Your comment makes sense if we think of FP as being about "function values". In a world where all sorts of programming languages have function values, this is not a strong enough characterization anymore (if it ever truly was).

Functional programming is about programming with immutability first. So OOFP is about immutable objects. I go even further to say it is about objects with immutable interfaces, but the implementations can be imperative as long as encapsulation hides the mutable aspects from the user of the object. This is what you see in Scala's collections library: we use mutability inside the implementation but we expose an immutable API.

I gave an entire talk on that very topic at Scala Italy in 2019: https://vimeo.com/362001027
'murica, terrorizing the world since 1776
Bridges are a good example. You have to remember that bridge building (as pretty much any field of engineering or even science) didn't start out as math-first, but as experience-first. And there's really no opposition there, after all whole fields of science (the 'soft' sciences) don't (can't) even use math !
Medecine is a mix of hard and soft sciences (and other things too).
I have some ideas but it's always a bit dangerous because it's easy to make up stuff ex-post. But I think that you nailed the first two.

Red Bull offered an alternative to coffee and the market was lightly validated in rural Thailand. You had Krating Daeng in 1975 but it didn't really take off until they started sponsoring fighting. (It had a bit of a status problem.)

Nespresso, in addition to what you said about essentially changing the price architecture, also enhanced simplicity. A simple pod allows you to have a good cup of coffee quickly.

I think that Dyson was appealing because of the same enhanced simplicity as Nespresso. You didn't need bags anymore. I also think there's some cognitive thing happening where people derived pleasure from seeing their mess by hovered up inside the machine. And like you said, status could also play a role here. They've created the perception of being an Apple of boring household appliances.
Yup, use it to run jupyter notebooks.
Channels for me make Go harder to read than most languages. Once you encounter a channel when reading Go code, good luck understanding the flow from then on.
That is a single dubious point amongst some serious and in my opinion legitimate issues with the language.
I think HP already tried to block 3rd party ink and was sued?

Either way, the DRM has been used to 1.) void your warranty as soon as a non-HP cartridge is installed and 2.) activate a kill bit in the cartridge DRM so it can’t be refilled and sold by 3rd party services. Any printer that reads a flagged cart will reject it.
I'm also sad this passed. It's actually not universal at first. It starts in 2021 offering seats to black, brown, illegal immigrant, teen parents and other traditionally "disadvantaged" groups first when it kicks off in 2021 and doesn't ramp up to full universal service until 2030.
There's an additional tax increase that will take effect in 2026, that takes the marginal tax rate from 1.5 percent to 2.3 percent for single people making over 125k and joint filers making 200k. On top of all that, the measure would over-pay teachers 77k above the market rate, which is 33K. There's also the additional rider that they will prohibit suspensions. If you ask me, this bill only passed since it pushed the responsibility for paying for it to someone other than the majority of people in Multnomah county. It would have been more fair if there was a sense of shared sacrifice and skin in the game with everyone contributing to it. I imagine there will be more tax increases to help pay for all of the increase cost of a) people moving into the county for this free perk and b) people moving out of the county to not have to deal with this additional tax.
I just want to ask.

Is it possible to use any modern phone without signing up for an email account?

Signing up for said account then forces you immediately to agree to give away all your rights?
> There are still civil penalties and other consequences.

It looks like that is true for Oregon as well. They just downgraded misdemeanor drug possessions to infractions and downgraded felony possession to misdemeanor.
It's only in a therapeutic environment. It's not legalized for recreational use. While interesting - probably not what most people would expect from the headline...
From https://truecrimesociety.com/2019/08/22/unidentified-and-mos...

> He wasn’t an experienced hiker (wore jeans the first couple weeks, didn’t carry maps/gps/phone, had a tent that was too big, carried a backpack that was over 50 lbs)

Also in the pictures without jeans he was wearing knee support, he might have just had arthritis or something like that.
Agreed, I'm not sure it's a terribly interesting functor.
Grateful you took the time. "I predict SBC (like Raspberry 4 and Jetson Nano) will become the main form of computing before the end of this decade (ending not only Apple, Google, Sony, Nintendo but also the X86 empire)." Fascinated by that proposition.
False dichotomy. The answer is neither.
The other professions have exactly the same issue. People dont understand nuances of other professions, especially not professions they never encountered.
There will be no earthbound, commercial Tokamak fusion power in the lifetime of anyone reading this. For reasons.

The energy density of the plasma is necessarily so low that a useful power plant would be absolutely monstrous. Then, it would destroy itself with neutron flux in short order, leaving thousands of tons of radioactive scrap. There is no possibility of such a plant being competitive with solar and wind at current prices, and they are still on their way down.

The prospect of commercial power generation is not the driver of fusion research. Rather, it is a jobs program for high neutron flux physicists, to maintain a population available to draw upon for weapons work. So, expect it to continue burning $billions indefinitely, with no deliverable.
I've never actually used it for editing documents, I just use it more as a Dropbox replacement for backing up / syncing files.

In that case, depending what your actual acceptable risk/goal is... continue using Google Docs and set up a regular backup? Your worst case is that Google Docs goes away tomorrow, and you still have all your data you just need to spend a bit of time restoring to a different account / setting up alternative software / etc and move forward from there. For most people I expect that's more than enough.
If regulatory capture weren't a big enough issue, how about some nice, manufactured astroturfing and mental gymnastic rationalizations to cheat employees? Hurray for "disruptive" startups that can buy laws with saturating media with half-truths. Let's not forget Lyft and Uber's business model is to socialize the costs of a taxi business, including vehicle acquisition, maintenance, and deprecation onto the drivers. How is that anything other than stealing from what would otherwise be taxi drivers with economic slavery volunteerism?

PS: Hello from Colorado so far. Bye CA, thanks for all of the earthquakes, fires, and power outages.
Some are complaining photo quality on laser printer. Try heat laminator: colors melt again and get mixed better and then get diffused into the transparent plastic. No visible plastic layer on top. This would not happen with ink-jet colors.
Aren't there animals that never get cancer? Or that can deal with it?
Happy to see ImGui trend here on HN!

It is an amazing tool that is used in a lot of game engines for making internal/dev gui:s. The principle of drawing gui "as you go", interleaved with control flow makes it easier+faster to make gui:s.

In our company's main app we use ImGui (with customizations) for all gui work (from C++ and Rust).
Would you rather have a belt that limits movements that defends against crashes, or freedom of movements that assumes a car crash never happens? Not an obvious choice to me.
The widget should keep its state private.

ImGui::InputText("string", buf, IM_ARRAYSIZE(buf));

ImGui::SliderFloat("float", &f, 0.0f, 1.0f);

And maybe is a C++ lib but the interface is C with namespaces. Odd.
The only thing worse than democracy is all the other -cracies.

58-42 is a wide margin. Ideally the government shouldn't be legislating stuff which has only 40% support.
This is probably the best thing that has ever happened to that app considering the amount of publicity it gets by spinning the issue.
That’s the cover story LOL
Ability to ignore one's own hypocrisy is the main manifestation of power. Rules for thee but not for me.
Exactly! Just look at the magnificant wall he finally built [1]. I'm not holding my breathe to see if Mexico will pay for it, though.

[1] https://www.newsweek.com/white-house-wall-donald-trump-bunke...
> It's hard for me to not feel disappointed with the public on this one.

Well I'm sure you'll get over it when you consider that overreach and imperfect laws don't operate in a vacuum.
One had half-assed support and one didn't. Also one wasn't undermined by Xeon CPU division.
I think that is why Raspberry Pi and the like are the new cool. They are different, and they can also be what you want it to be. They spark the imagination, and I think that’s the kind of magic of what the author describes. A system thats unique (and capable) is kind of the lure.
That is why the law is somewhat longer than "People have the right to be forgotten".
https://dotty.epfl.ch/docs/reference/overview.html and associated pages.
> I couldn't get my head around why people like untyped languages

What do you mean exactly with "liking" untyped languages?

I personally program mainly in both a ("cognitively demanding") typed and an untyped languages, and they have different use cases.

For relatively small programs, untyped languages are much faster to develop. A program I wrote yesterday in a few hours would have taken 2 to 4 times as much in a typed language.

On large libraries (I consider gaming engines as so), common wisdom suggests that typed languages make the project easier to manage (modify and so on).

There's obviously a wide range of use cases in between.
> am surprised at how disinterested most folks are in learning anything new.

same here, we don't do Scala but it's basically impossible to get people here to learn something new. Introducing a new language (like Scala,F# etc) would be impossible.
media coverage on prop 22 & gig cos has been almost universally against. voters chose to vote the way they did. how is this buying a law? seems like some people call any political outcome they don't like corrupt in some way.

money can buy advertising but to believe it can literally buy votes means you don't believe people are capable of making up their own minds. it's incredibly paternalistic and demeaning.
Well you can get convicted for saying you like a joke. That did happen.
Pokémon GO hits $4.2B in global player spending
I like ideas behind immediate mode gui. It's a bit like React.js only without DOM in between. It's not ideal, it has its own issues, but it could develop further into something more robust, I hope.

GUI is hard.
This looks pretty active, if you have any luck let me know

https://newspaper.readthedocs.io/en/latest/
What higerorderma said above applies to this ^ comment as well. It is another of those nonsensical things that keeps getting repeated all the time by some Go programmers.

That line of thinking promotes workarounds over long-term solutions. If your team has people who are abusing tools (like types, abstractions etc), the solution is to teach them how to not do that. The solution is NOT to remove the tool itself! That is like saying that a drilling machine is easier to misuse so "only the hammer is a tool for teams". Ugh.

Go is awesome because of things it _can_ do (it has the speed of C and enough libraries to write full-blown webservices with it). Please don't encourage the whole marketing agenda of touting its shortcomings as advantages. It doesn't work. All it does is it turns people away from the language.
My usual approach is to look for an abstract. If I see one, that means I've accidentally clicked a link to a scientific paper, and can proceed to close the tab.

(Hopefully you can take that as the satire it is...)
I didn't see any ads (I mean it, I'm very wel insulated from ads in general) but I voted for it.

I did that because the uber drivers I've driven with unanimously wanted the status quo.
You don't. That was subtraction on a meta level. You name the largest non-data number instead of naming the smallest data "number".
I wonder if this is an echo of (pre-industrial? pre-Reformation?) historical norms?
Discogs is the Wikipedia of the music industry. It’s amazing to see the vast amount of detailed information on every release from mainstream to obscure.
Whuffie.
Love how everybody in the picture was pair-programming!
This was proposed in another comment as well, and it’s a neat idea that unfortunately becomes fragile in the face of UTF-8 local parts, since the Unicode folding standards change over time.
Slasdot had karma, Kuro5hin had mojo.
There's only so much money you can squeeze out of rich people; they tend to be, well, tightwads. The best way to earn more money is to reach more people (read: increase market share). You can think of prices as indicators of inefficiencies. The high price invites participation which causes competition. The players, driven by greed or desire for profit, seek to eliminate competition (or become monopolies in their field). With the right legal incentives this competition is healthy and innovation leads to lower prices to gain market share. Again, market share == people, and poor people are included in that group.

From this perspective, Capitalism (or "the market") can be viewed as a tool governments can use to increase the quality of life of its citizens.

Granted this explanation is a bit banal and hand wavey and leaves out a ton of stuff (consider impacts on jobs for instance); this is an internet post not a thesis on economics. :) Hayek, Mises, and Friedman are good sources if you care to explore more.
I don't see how - it's a government regulation. Seems the opposite of a cartel?
I need this more than ever now because after many years of using music streaming I've started buying all the music from my youth.

Sometimes the disc isn't recognized or you need cover art and discogs is there for free.
Installed from brew and tried to open an html file.
1. no syntax highlighting
2. formatting is off (tried with nano - formatting is great)
3. the cursor moving is not rendered, eventually got lost (bug)
check out discoverbooks.com - the cheapest used book site i’ve found. by far

sold books as cheap as like $2 and with free shipping