The whole reason that hooks were created was that they could composed, as opposed to stuff like renderprops or mixins. When you create a custom hook that uses a useState and a useEffect, that's composition. They have the caveat that they can only be composed into new hooks, but that's just like async functions only being able to be called from other async functions.
HN user
spicebox
Matt Levine has talked about how this is how PE firms work too. No Harvard MBA wants to work for a midsize manufacturing firm, but they’d kill to work for a PE firm that going to make them work for their PortCo that’s a midsize manufacturer (but they get to say they work for Apollo)
Monads don’t compose, effects do. ‘IO a’ works great until until you need to add another effect, for example ‘Maybe’. Then you need to bring in monad transformers and create your own monad combining the two, then rewrite all your code to lift the effects from one monad to the other. And you have to do this every time you want to add a new effect.
Being able to change the ordering of effects on the fly is a benefit of algebraic-effect systems. As you mentioned `State<S, Result<E, T>>` and `Result<E, State<S, T>>`have very different effects. Algebraic-effects let you switch between the two behaviors when you run the effects, whereas with monad transformers you have to refactor all your code to use `State<S, Result<E, T>>` instead of `Result<E, State<S, T>>` or vice-versa
Maybe you remember when the Israeli Military killed 223 peaceful protestors and injured over 9,000 more? (https://en.m.wikipedia.org/wiki/2018–2019_Gaza_border_protes...) or when they presided over the massacre of thousands of Lebanese civilians in a refugee camp? (https://en.m.wikipedia.org/wiki/Sabra_and_Shatila_massacre)
“They will still be able to bring their own alcohol to drink at the bars … The current alcohol ration allows Antarctic workers to buy up to the equivalent of 18 beers each week, or three bottles of wine, or a 750 milliliter (25 ounce) bottle of spirits.“ It seems like they’ll still be able to get plenty of alcohol
It’s not JavaScript, it looks like JavaScript but it works differently
It’s not espionage, it’s an expert network!
In defense of consulting the “sales pitch” on consulting is that the people on top, the partners and managers, have the industry experience to guide the more junior employees who don’t have experience but have good analytical skills. How true that is is up to interpretation but that’s the steel man version
Like most good satire it’s based on reality
As someone with firsthand experience at a “top” consulting firm this article is pretty accurate, albeit with a definite negative slant. A couple parts that really ring true for me are:
The work will mostly be done by clever but pimply 20-somethings, armed with two-by-two matrix frameworks … What they lack in wisdom will be made up for in long hours.
The structure of consulting firms is that a partner (who does actually have a lot of experience with the industry) will “sell” the work to the client and oversee the team that actually does the work. Partners will sell multiple cases at a time and most of time is spent doing sales so most of the work is done by the consulting team with some guidance from the partner. The consulting team will be comprised of a couple of consultants 1-3 years out of undergrad and couple of consultants 1-3 years out of their MBA and a manager who has maybe 5 years of consulting experience. Usually none of them will have any specific domain knowledge.
Question everything
Since most of the work is done by (nearly) fresh grads they won’t have a lot of specific industry experience. At the same time it’s hard to find information on the obscure topics they’re researching so the actual information they find will be iffy. Sometimes it will even be made up (they’ll tell the client it’s based on “industry experience” or something but it was probably invented by 23 year old in excel). Regardless the information will be presented to the client as rock solid and scientific (with maybe a little disclaimer at the bottom)
In short: The people you’re talking to aren’t the people who are doing the actual work, The people who are doing the work have no industry experience And the numbers they’re basing their analysis on are probably whatever they found on google.
I know this comment sounds really critical but I do think there is some value in consultants and they are really good at structuring out a problem but the analysis they do is probably 75% accurate at best
Neither Accenture nor McKinsey are Big 4. The Big 4 are PwC, EY, KPMG, and Deloitte. Despite what the name suggests they aren’t actually the top consulting firms (the name comes mostly from their accounting work.The three consulting firms, at least in terms of cost/prestige, are McKinsey, BCG, and Bain (MBB for short).
The issue is that lobbying has two different meanings. The literal meaning is trying to influence politicians but the common usage refers to when companies and special interest groups spend hundreds of millions of dollars on donations and advertising to get politicians to pass laws that benefit them. The first meaning, which is what you’re talking about, is fine. But the second meaning, which is what people mean when they talk about banning lobbying, is the opposite of democracy.
There is no good democratic outcome for $175K a year jobs that cost half a billion dollars to apply for.
I would argue that this is a reason to reform our electoral system rather than just resign ourselves to a corrupt system. If it didn’t cost half a billion dollars to become a politician and the pay better reflected the job responsibilities (along with other reforms) we’d probably see less corruption
Generally industries are much better than random politicians at predicting the consequences of rules
This is true but when people are talking about restricting lobbying the kind of lobbying they want to restrict isn’t companies saying “hey this policy isn’t good for us”. It’s companies spending millions of dollars on donations and advertising to force politicians to make laws that benefit them. It’s possible to restrict the second kind without impacting the first kind, for example by implementing spending limits.
Yes you can, even if you don’t want to restrict lobbying on free speech ground you can place donation caps and increase transparency requirements which would both limit the power of corporate lobbying
Why? What is the benefit to the public good of allowing corporations to use their massive resources to shape legislation to benefit them at the expense of the general public?
You don't really care about Pokemon, but you know you can sell Pokemon on eBay[2], so you automate it with a device like this.
People who are selling Pokémon on eBay are probably just hacking them in rather than going through the trouble of using a device like this to obtain them “legitimately”
There’s also plenty of evidence that improving educational outcomes for low performing students has an outsized impact. “Decreasing the number of high school dropouts by half would nationally produce $45 billion per year in net economic benefit to society … Improved education and more stable employment greatly increase tax revenue, such as a return of at least 7 dollars for every dollar invested in pre-kindergarten education … National savings in public health costs would exceed $40 billion if every high school dropout in just a single year would graduate”. [1] These show pretty clear economic benefits to improving outcomes for the average student.
But the bigger issue is framing with as a “struggling vs gifted” problem. Where we have to choose between supporting gifted students or helping struggling students. It isn’t, education is one of the few areas where there is a “free lunch”. Every dollar invested in education results in more than one dollar in return. We can easily find both of these things, the real question isn’t which we should fund, but why we aren’t funding both.
[1] https://www.elc-pa.org/wp-content/uploads/2011/06/BestInvest...
Touché - “Science has widely come to be understood as a systematic assault on common sense. Common sense said the world was flat; science showed this to be false. Common sense said the sun and the moon were the same size; science showed this to be wrong. Common sense said the Earth was the center of the universe; science showed this to be false. Common sense said matter was solid; science has shown this to be false”
https://publishing.cdlib.org/ucpressebooks/view?docId=ft8c60...
The idea that we have to choose between helping struggler or gifted students is a false dilemma. Instead we should be asking why we aren’t allocating enough resources to education.
Common sense is frequently wrong and is usually invoked by people who want their beliefs to be taken as fact without needing to provide support
“Chief People Officer Daisy Auger-Dominguez, who wrote a book on the workplace "inclusion revolution" but refused to give workers Indigenous Peoples Day off after Juneteenth made it onto the official company calendar for the first time” I feel like in context it’s clear that they more trying to point out the irony in someone wrote a book on inclusion in the workplace refusing to give workers indigenous people’s day off
I think generally the people who are against racism and facism aren’t the ones pushing for more child labor
It’s weird to aim this at Meta. It also doesn’t say that they’re not receiving these benefits - just that Meta doesn’t pay for them, which is how I’d expect a vendor to work.
I think the point here is that these moderators are basically Meta employees but since they aren’t officially Meta employees they don’t get the same benefits that “full” employees get.
The article says that they alleged they were fired after trying to organize with fellow employees
The first paragraph of the article talk about “workers forced to watch videos of murder, rape, and ethnic cleansing”. Idk about you but that doesn’t sound easy to me. I think you’ve thinking of power tripping reddit mods where as this is more people being forced to watched gruesome content that is getting reported to the platform
Spreading an array requires looping over all the array elements which is O(n) compared to something like Array.push() which is just 0(1), although spreading has other benefits like copying rather than mutating
Usually things that don’t create economic value at least create some other kind of social value, which HFT doesn’t really seem to do
"It is an affront to justice and the rule of law to see that such methods continue to be used in the 21st century and that Palestinians collectively continue to be punished for the actions of a few," said Michael Lynk, the Special Rapporteur on the situation of human rights in the Palestinian Territory occupied since 1967
https://www.ohchr.org/en/press-releases/2020/07/israels-coll...