> I imagine that's the main driver for creating SelectNotNull
Sure. And now we are fighting the compiler and in the process writing less efficient code.
The compiler gives us a way to deal with this situation. It is all about being absolutely clear with intentions. Yes, Where(..) in my example would return IEnumerable<TR?> but then in subsequent code I can tell the compiler that I know for a fact that TR? is actually TR by using the null forgiving operator (!).
>The compiler gives us a way to deal with this situation. It is all about being absolutely clear with intentions. Yes, Where(..) in my example would return IEnumerable<TR?> but then in subsequent code I can tell the compiler that I know for a fact that TR? is actually TR by using the null forgiving operator (!).
I guess that seems way less clear with intentions to me. If I have an array of potentially null types and I want to filter out the not nulls, I'd much rather have an operation that returns a T[] vs a T?[].
I should also note that I also have a "IEnumerable<T> WhereNotNull(IEnumerable<T>?)" function in my codebase, but I implemented it using a foreach/yield which doesn't suffer from the extra Cast<>()
Chicago spent $300 Million on freebies for migrants.[0] The mayor of NYC saying that the migrant crisis "will destroy New York City".[1] 1/3 of polled schools said that the influx of ESL migrant children had had a "significant" impact on their school districts, taking resources and attention away from American schoolkids.[2] 77% of Americans considered the border situation to be either a "Crisis" or a "Major Problem"[3]
So apart from some 300 million number, it's just all vibes?
Here I was expecting data about how all these illegal immigrants are causing crimes everywhere at higher rates than americans, or how many cats and dogs they've eaten but I guess there's no actual evidence of a crisis.
Before I put my fedora back on and leave, could you answer this question:
Do you truly think the evidence you provided would convince someone ignorant on the matter that there really was a migrant crisis that warrants the Trump administration's behavior?
> Do you truly think the evidence you provided would convince someone ignorant on the matter that there really was a migrant crisis that warrants the Trump administration's behavior?
I do!
The term 'crisis' has been politicized to the point where the term's applicability is basically a shibboleth. When Biden called it a crisis in 2021, the White House issued a statement saying "The President’s use of the “crisis” label doesn’t represent the administration’s official position".[0] The administration had an official position on the use of the term 'crisis'! Point being, it's hard to convince someone that the border situation is a "crisis" when their priors on the topic have been prejudiced by political messaging. If someone was new to the topic, it would be easier for them to be objective.
You and I have already been inundated with political messaging, though. The best way to simulate ignorance on the matter is to abstract away the politics and pose the question in a way that doesn't trigger a connection to politics:
"The year is 2034. A situation has arisen. To deal with the situation, the city of Chicago alone has spent $300 dollars. The mayor of New York City has stated that the issue "could destroy the city of New York". 30% of schools say the issue affects their ability to educate our children. 77% of Americans say the situation is either a "crisis" or a "major issue".
Would someone ignorant of the matter be more justified in assuming that this was reflective of a crisis, or mere "vibes"?
About 20 years ago I changed from running in basketball shoes to minimal shoes. At the time I was only running about 5K. It took me about 10 months to work up to 5k in the minimal shoes.
My general approach is to run less far but more often since you usually don't notice tendon injuries while you're exercising, but a day or two later.
“The model assumes that people directly choose partners based on their observed cognitive ability, but in reality, partner selection might happen indirectly through other related characteristics or through more complex patterns,”
Seems like a pretty wild assumption to make. Maybe they need that to simplify their model, but still...
Just picture Bernie Sanders hammering home that the wealthy are screwing everybody. That's the kind of messaging they need but they would rather loose than move left.
Identifying a viable villain and being mad about it would probably have helped, but the election pretty clearly shows that moving left would have had a _worse_ result.
Arizona and Nevada both voted for abortions rights even though they voted republican. The left and right aren't a boolean option, a left candidate who says the system isn't working may do just as well as a right candidate who says the same because they get more of "the grocery prices are broken" crowd even if their overall policies are less palatable.
Harris didn't run even a center-left campaign, she pushed center-right except on a few issues at the margins and it was late in the game on that front.
Americans generally favor more liberal policies economically, like stronger labor rights, universal healthcare, student debt cancellation etc. There was a lot to offer voters of all stripes there.
I think too many Democrats counted on a huge pro abortion turn out of women specifically and that translating into democratic votes, which, even to my surprise, it did not.
Take a look at the results of the various referendums. Some of the same states that have voted for Trump with a hefty margin also voted for things like raising minimum wage or guaranteed paid sick leave.
Have you ever considered that the stance regarding pro aboriton amongst women is to a certain extend age dependant? What I have noticed anecdotally amongst my acquintances is that older women tend to change their mind on that matter, at least sometimes. I am suspecting this has has plain egotistical reasons, simply because they no longer have to care, paired with a certain amount of women that had an abortion and never really managed to find peace with themselves about it. TL;DR: Careful, not all women are pro abortion, possibly not even the majority.
I think most conservatives have a strong idea in their mind of who their idealogical opponents are: ivory-tower academics, liberal business people and politicians, and all the plebs who side with them to push ideologies and social policies they don't want (policies like people born as men competing with women in sports).
Harris did nothing to distance herself from being strongly associated with that liberal cohort. Regarding social policy and ideology, she came off as being far-left to the average conservative.
The problem is: Bernie can hammer all he want, but there is no platform to reach the voters. That is __the problem__ for the Dems.
1. The big media is in the hands of a select few (tech) oligarchs. Look for the accelerationists there.
2. Take notice of what happened at the WaPo. Bezos fell on his knees for Trump, fearful of having his other business interests been killed.
2. I mean: no reasonable platforms. The false balance in the New York Times is below the most horrible standard you can get in journalism. New York Times Pitchbot exists for a reason.
3. In the US the press is allowed to spread fake news. Some media make a living of it. Others (see 2) try to give a neutral impression by presenting false balance
4. The serious, damaging analysis will get moved below the fold, if there is one.
==> Now you have gotten a system where the populace doesn´t even get informed anymore, so no serious debate is possible.
==> The Dems are not even able to have their own policies, they have to lean deeply right to stay not too much out of touch of what is presented as normal discourse in the media.
If the US slips further from Anocracy to Autocracy, it will be 1) because the press gave the autocrats the nod and 2) some powerful captains of industry were on board, 3) and they were helped by radicalized far right christianity (Heritage Foundation et ali.).
Yellow Journalism has been around since the 1890s, and to a degree journalism has always been about propaganda - it's hard to spread your opinion without a printing press, and by the time the poor can get their hands on them, the upper classes/wealthy/capital holders have had access to this level of automation for some time/captured huge chunks of the market.
In a way, it is a bit of an oddity that there has been trust in journalism in recent decades - some individual acts like publishing whistleblower accounts or corruption have lead to an outsized perception of it being for the public good.
Meanwhile, we have seen again and again - particularly in Murdoch owned properties - that the interests of commercial media do not align with what we consider the common good; ie
Yet we do nothing about it in particular (Australia and the US).
Then we end up back here, wondering why groups in the electorate have wildly different perceptions
> have lead to an outsized perception of it being for the public good.
Exactly!
> Yet we do nothing about it in particular (Australia and the US).
Right.
First step: getting the public to know what the role of the Fourth Estate is in a democracy.
Second step: getting the public to know that they currently live in absurd infotainment landscape, getting them to understand how their media works.
Third step: getting the public to understand the importance of democracy.
Fourth step: holding media outlets accountable for misinformation.
The big danger for those in the know is that they get cynical. Then you have recreated the Soviet/Putin ecosystem, and the oligarchs have free reign. America is inching far closer to that, but in the mind of Americans "this can't happen here".
> The democratic party apparatus and their allies don't want that platform/message.
Sure they would love to use a reasonable platform with broad reach, but they haven´t. Relevant media are heavenly partitioned in buckets of insane "Infotainment Corp" and "Sane Washing Corp".
There is simply no room for truth if you give non-truth equal space. Non-truth can be made as entertaining as possible, sucking out all oxygen for truth.
That is what Americans allowed to happen over the decades, and the consequences are getting more grim every election.
exactly its all messaging. dems suck as messaging and kamala was not the right person to deliver messages because she avoided interviews, conversations, etc. Dems needed someone who would go on any show at any time like Bernie does.
You can -- to some extent -- combat right wing populism with left wing economic populism, but there are two key problems with this strategy:
1) the Democrat party hates economic populism. Bernie would have to hijack the party like Trump did. But where Trump has many allies in positions of power, Bernie has none.
2) the populist rhetoric that people like the most is false. Grocery prices aren't high because supermarkets suddenly got greedy. Worker exploitation isn't why billionaires exist.
I also don't think it's good strategy blame a minority group for all the problems in the country. Billionaires are not a protected minority obviously, but when you stoke anger against one group it can easily result in a different group getting unjustly targeted (Mexicans, trans people, etc). We don't need any more of that and politics of hate and resentment isn't the way forward.
Either billionaires really earn their pay, which implies that they are thousands of times more productive as a person than the rest of us - literally superheroes.
Or - if you accept this as the obvious bullshit that it is - then all that money is not a fair compensation for anything, but rather the consequence of being in a position of economic power that makes it possible to extract wealth from the economy in one way or another. How exactly said extraction is done is immaterial - if the wealth is unearned, it means that it was taken from someone else, since someone ultimately did the work necessary to create it.
I'm not making an argument about fairness. It's clearly unfair. I also don't dispute that wealthy people benefit from exploitation, just like we all benefit from labor in low wage countries.
However, I do dispute that wealth extraction is the primary source of wealth for the wealthy. Just like an engineer can save 100k in monthly AWS charges with 15 minutes of optimization work a good capital allocator can transform pointless labor that produces little to no value into labor that benefits society. The optimization process is the same: the engineer saves clock cycles and the capital allocator saves labor hours.
Labor is necessary ingredient for wealth, but labor by itself produces nothing. That's why humanity has lived in mud huts for eons, despite working every waking hour.
You seem focused on the labor theory of value, and sidestep completely the entire idea of investors, or the entrepreneurial function they serve.
Advocate for higher taxes if you wish, but acknowledge that economics are not a zero-sum game and propose an alternative to savvy investment, unless you simply want to foment division or to upend modern capitalism entirely.
Economics are only not a zero-sum game to the extent physics permits it to be. No amount of financial wizardry can change the fact that, ultimately, it's the labor that produces all wealth on the planet. Investors in modern capitalism, for the most part, serve the function of parasites, so yes, it would be very nice to upend it entirely.
My hunch is that it has something to do with doing/accomplishing something "hard" together. I'm also guessing that the harder it is, the more bonding automatic bonding you get.
I'm sure there's some truth to this but I don't think that is what is happening in this case. From what I can gather, this is about people who trained for a goal, and during the event an unexpected "weak link" in the chain gave out so they found a mechanical solution.
I'm sure if most of them had gotten this during training, they would have taken the time to recover.
``` var strs = source.SelectNotNull(it => it); ```
vs
``` var strs = source.Where(it => it != null); ```
Wouldn't the first be IEnumerable<TR> and the second be IEnumerable<TR?>
I imagine that's the main driver for creating SelectNotNull, so that you get the nonnullable type out of the Linq query