You mean in a manner similar to the united states at the moment? :^)
China has some serious issues, but people acting like this is out of the norm is ridiculous. The US is afraid of Chinas rising influence/power and these sorts of articles attacking it are a common tactic.
Like, great - there's no explicit social credit system in the US on an app where you're barred from leaving the country because of who you're friends with. Instead, there's an implicit one where the NSA gets to spy on all your shit (similar to what happens in China), where you're arbitrarily put on a watch list or no-fly list (similar to China), and depending on your ethnicity and/or family you may get unjustly targeted by the state with no real way of defending yourself (again, similar to China).
I'd almost prefer it be done the Chinese way, because at least then the problem is obvious. As it is in the states, like half the country can't even fucking agree that maybe there might be a problem with women & minority rights, immigration, police brutality, etc.
At least in the US you have constitutional rights and somewhat efficient check & balances to limit abuses.
On the other hand, I still agree that the phenomenon of rating people based on data is something that happens in the West too. Whenever you buy insurance, be assured that your whole life is scanned before you get a price.
This is a mental comparison. Leaving aside police gun deaths because that's it's own insane internal logic/world, do you think that black people in the US don't have more rights than Chinese citizens? So for example, what do you think would happen in both countries if a senior party official punched you on the street?
> what do you think would happen in both countries if a senior party official punched you on the street?
In China they'd arrest you and that would be the last anyone ever heard of you.
In the US the cops would show up and shoot you on site because they thought you had a gun. There'd be a 24 hour news cycle of outrage and then you'd be forgotten.
I won't disclose my predicates here apart from saying that I am not American, but I understand your rebuttal.
Which brings me to another question for parent and children comments posters. You really think that the USA is an authoritarian regime similar to China? No rhetorics here, I'm really curious.
Look I totally agree the U.S and The West has plenty of problems that certainly to a degree match the Chinese issues. I could bang on about the prison industrial complex for hours.
However I think a key difference is that on your issues "women & minority rights, immigration, police brutality" there is actually a huge number of people who disagree with you. I know it's messed up and they are deluded or afraid etc. but the fact is they get to vote too and they would rather women be subjugated, the country be white, Mexicans are rapists. This is (subjectively) "bad people" and lawmakers using democratic institutions to create these systems and enact change, which is fundamentally different IMO.
The US being "afraid of China's rising influence/power" is the perfect cocktail for war. All it needs is a 3rd party to ignite it... Let's hope we can work together.
Yes, it's better to be obvious - so at least you know you're in for systematic torture by police in order to obtain a confession and everyone is SURE women and minorities don't deserve equal rights.
No in the U.S. a handful out of a million cops are bad apples. Some legitimately find themselves in difficult-to-interpret life-or-death snap decisions on a daily or weekly basis and they get paid 1/4 or less of what some privileged engineer on HN does. And then a few bad apples plus a few legitimate accidents are over-analyzed as some proof of systemic racism in one of the most diverse countries on earth.
Meanwhile, you want to talk about abuse of minority rights, take a look at China's treatment of its muslim population:
The entire police system is inherently corrupt and racist and needs to be torn down. Also, regardless of whether or not its a few bad apples (hint: given how extremely fucking common these problems are, it absolutely is not just a few) the point still stands that the "not bad" cops are still guilty of supporting their coworkers and enabling their unacceptable behavior.
No it's not. You have no idea how to build a better criminal justice system. Your armchair HN comment about it is absolutely worthless. It lacks insight, research, balance, and depth of any kind, not to mention practical experience in the system itself. You want to remake a complex system? Go and learn the pros and cons of it, spend a few years in it, then come back and tell people how it can be improved.
And instead of taking the opportunity to nationalize them, our useless neoliberal leaders instead went "uhh okay lol heres some money pls don't do that thing we all know you'll do".
Setting aside the complexities of two nations trying to nationalize the same company...the most recent example of an anglophone government taking over its carmakers (UK) isn’t exactly an encouraging precedent...
Not sure why, but I couldn't respond to your comment for quite some time.
I'm not sure what you're asking re: what would remain. Housing as a human right, I guess? There's no good reason for landlords to exist, nor do I understand why you would want housing to be a commodity especially considering we live in a post-2008 world.
Yes, but the state isn't leeching off of the people. My point is wrt landlords in the sense of people who do nothing, provide no value, and make money solely by virtue of "I/my ancestor was here first I/they bought this when there was less people so gimme money".
I don't see where you get your conclusion from. For many (most?) people, they really don't have a chance to fight their landlord. Legal expenses, time, energy, etc. are pretty huge deterrents. Not sure why you can't fight a "state-landlord", also.
> Yes, but the state isn't leeching off of the people
Are you sure about that. US government spending is 1/3 of GDP, while rents are around 1/10.
> Not sure why you can't fight a "state-landlord"
Because the state has the power to make it illegal to sue the state. You need to win a supreme court case to beat the state into something, and you will be paying taxes to fund your opposition all the way up to the supreme court.
I think many Haskell, OCaml and Scala programmers would disagree heavily with you.
Repl driven development works very well with pure functional code and at no point did I feel an increase in loc begin to make it tedious or whatever.
The repl approach perhaps doesn't work as well in Java because Java and its ecosystem encourage writing messy jumbled code built upon unsafe abstractions.
As somebody migrating a React codebase from JS to TS, I can't believe how popular TS is.
It seems like something that only exists due to the popularity of Angular, where I can only assume the experience is significantly better than with React.
The type system is frankly disappointing, and the errors the compiler spits out at you (besides the most obvious ones) are almost always useless or gibberish and at times even more harmful than helpful.
It's better than nothing I guess, but I can't help but feel extremely underwhelmed with it given how many people use it. Are all of the people in this thread Angular developers or something?
I can believe how popular TS is and it is super useful. I would not write a React application of any noticeable size without TS (and just FYI I would never willingly write an Angular app). The reason that I get far superior code completion and meaningful warnings / errors is sufficient to add a few annotations here and there.
Many people are doing TS wrong. They add types everywhere. Honestly, you should write as many types as necessary, but not more. Use type inference which works remarkably well.
At least add them on function return types and annotate types on common objects so that you don't have objects lingering with wrong property name/type or redundant properties that would be confusing to review.
It helps to create a type reference for your database schema, so you don't try to insert something weird or insert with missing columns.
> The type system is frankly disappointing, and the errors the compiler spits out at you (besides the most obvious ones) are almost always useless or gibberish and at times even more harmful than helpful.
I'd love to see examples of such errors. (And, ideally, accompanying code example)
I'm not at a desktop or laptop where I could provide you with a proper example, but the most obvious pain point is HOCs.
I was receiving an error complaining about a missing prop on a component I was wrapping with `injectIntl` from `react-intl` and could not for the life of me figure out what was wrong. Searching the type error wasn't helpful, and it wasn't until I really dug down and spent about a half hour of my time that I realized it was because we had something like `injectIntl(connect(foo, bar)(SomeComponent))` instead of `connect(foo, bar)(injectIntl(SomeComponent))`
The type error did not in any way make that clear or obvious. If I had to compare it to anything, it would probably be the type of error messages you see if you play around with type level programming/dependent types in Haskell. Or the types of error messages you see when writing Clojure.
I feel you and I think it is more of a "React + TypeScript" problem than a TypeScript problem.
We have started using Angular 2 (now.. 6?) with TypeScript for a project last year and I never had big issues with TypeScript.
Last month, one of our teams started a React project and given the success of using TypeScript before, they opted to do the same with their project. I've walked them through a few things but found myself getting frustrated a lot with weird TypeScript errors. Especially things like typing your Props was such a nightmare that we resorted to "any" a lot more than I'd like.
The project is not using TypeScript 3 so I am unsure whether that would get rid of some problems but React + TypeScript was just a frustrating experience for us.
Using TS3 with ours and the problems are definitely still there.
I think the most immediate and obvious pain point for me is typing HOCs. It's basically a matter of rearranging how you apply them until TS can automatically infer a type for you. At the same time, using `compose` instead of applying them individually solves that problem but results in strange types (that are different from the type TS infers if you apply the HOCs manually yourself in an order that makes it happy) that I suspect will cause type errors down the road when we convert the files that make use of it to TS as well.
The most recent, 3.0.1 I believe? Or 3.1.0 - whatever it is.
As far as going back goes - it's preferable to plain JS I guess? But that's not saying all that much. I don't know - I'm sure I'll appreciate it more after this migration period is finished and things start to stabilize, but as of right now I'm definitely not enjoying it.
> Although some studies have found no relation between physical punishment and negative outcomes, and others have found the relation to be moderated by other factors, no study has found physical punishment to have a long-term positive effect, and most studies have found negative effects.
The research is pretty poor. The main problem is that all physical punishment is landed into a single pot, but there is clearly a world of difference slapping a fifteen year old in the face and slapping the bottom of a four year old.
If the general practice can be effective depending on fine distinctions, and if such fine distinctions exist, then they matter. General advice like given above is then just bad advice.
Not really. Thousands (tends/hundreds of thousands?) of years of human society isn't going to just evaporate from a couple studies, even if they're incontrovertible.
I am not arguing that corporal punishment is effective because society has progressed. I'm saying that people are inflexible and even irrefutable science is unlikely to cause an immediate societal shift.
Indeed. I was spanked as a child (I was very stubborn and looking back it's clear that nothing else really worked with me). As a result, I suffer from a condition known as respect for others. It's a terrible affliction to have in this day and age.
Strange, I was also spanked as a child and somehow I still ended up with several flaws. I feel like the experience retarded the age at which I was able to achieve self actualization by many years and seriously impacted my ability to have a healthy adult relationship with my father who has himself changed and grown tremendously as an individual since the years he spanked me as a child.
How did spanking lead to respect for others? Are you afraid other people might physically hurt you if you don't "respect" them? Or does adverse interactions bring up the childhood memories of being spanked? In genuinely curious how this works? (I grew up in a country where spanking and all other physical abuse of children is illegal)
The amount of protests in China has been exploding over the past decade(s). I didn't even know until someone mentioned it on here a few months back, but iirc its gone from maybe a few thousand per year in the 90s to well over 100,000 in recent years.
The Chinese rich I've interacted with are also (in my experience, at least - I don't have stats to support this) really ignorant of how bad a lot of their countrymen have it. A friend of mine's father is some sort of government official in a tier 1 or 2 city, and he's told me that the rich and poor are segregated enough that he himself didn't even realize his family was anything other than middle class until he came to Canada and saw it wasn't exactly normal to have parents who can afford 100k+ annual tuition, luxury cars and apartments, etc.
China has some serious issues, but people acting like this is out of the norm is ridiculous. The US is afraid of Chinas rising influence/power and these sorts of articles attacking it are a common tactic.
Like, great - there's no explicit social credit system in the US on an app where you're barred from leaving the country because of who you're friends with. Instead, there's an implicit one where the NSA gets to spy on all your shit (similar to what happens in China), where you're arbitrarily put on a watch list or no-fly list (similar to China), and depending on your ethnicity and/or family you may get unjustly targeted by the state with no real way of defending yourself (again, similar to China).
I'd almost prefer it be done the Chinese way, because at least then the problem is obvious. As it is in the states, like half the country can't even fucking agree that maybe there might be a problem with women & minority rights, immigration, police brutality, etc.