HNHacker News
TopNewBestAskShowJobs

testbot123

80 karma · joined April 15, 2020

Likes: JavaScript, React

Dislikes: Police brutality

submissionscomments
testbot123··on Caught on camera, police explode in rage and violence across the US
> “Tear gas is considered a riot control agent because the effects dissipate a short time after exposure,’’ said Kelsey Davenport, director for nonproliferation policy at the Arms Control Association. “But even though the effects of tear gas wear off, its symptoms are harsh and terrifying, including severe eye irritations and difficulty breathing.

> “The United States may justify firing tear gas [...] as legal, but the decision to use an indiscriminate, psychologically terrifying toxic chemical was excessive and certainly immoral."

https://www.usatoday.com/story/news/2018/11/27/tear-gas-forb...

testbot123··on Caught on camera, police explode in rage and violence across the US
> I've been saying this about covid for a while, this is my main point.

I'm not following this, and am not going to pivot the conversation to covid.

> The article is about a police assassination in direct response to police killing to black men. It seems related to me, how is it not?

So six years later, the police should be allowed to exact revenge on American civilians protesting in the street? I'm still not understanding the relevance of this article to your argument. Yes, murder is bad. We agree.

> This applies to a large number of groups. Congress and the MediaMachine have much lower approval ratings than the police.

Congress and "the MediaMachine" didn't just kneel on the neck of a man, killing him in broad daylight, on video.

> Again, you are painting the police with one large brush, this sounds a lot like prejudice

I think this conversation has had its run.

testbot123··on Caught on camera, police explode in rage and violence across the US
> I think anyone who wrongs another is ...wrong [...] Is there something wrong with that?

No, but that is an overly simplistic reduction of the current situation in the United States, and any conversation around this situation requires an acknowledgement of its complete history and many nuances.

> Is asking about how people can condemn one version of malevolence and condon another wrong?

No, but what was the point of linking that unrelated article from 2014? Would you like me, a protestor, to condemn it? I condemn it. And I also condemn police brutality because it is so much more frequent, disproportionate, and violent.

> Are we past the point of trying to hold each other to higher standards?

No. Police must be held to a higher standard, period. They have badges and guns and are entrusted with a higher power.

> What percentage of the protesters / rioters would not be there if they had jobs to go to?

I don't know, I don't have that data. But from personal experience, I can tell you that people in this country are fed up with police forces that have no accountability. This is a natural consequence of allowing violent LEOs go unpunished for years, with no recourse for the innocent people being brutalized.

testbot123··on Caught on camera, police explode in rage and violence across the US
I think you're being downvoted because you're in a thread about police brutality and are attempting to frame this as the fault of the people being brutalized.
testbot123··on US customs and border protection is flying a surveillance drone over Minneapolis
> your kind of rhetoric is directly adjacent to the standard communist revolutionary rhetoric employed across e.g. South America.

Yeah, I'm a Marxist. I align with many (not all) ideas about proletarian revolution.

> Amazing that people actually believe this, when there's literally laws on the books making it a crime to commit an offense against protected classes of people because of their race alone.

We've seen how powerful people, the wealthy, politicians, and law enforcement have time and again broken laws and attempted to circumvent them for their own gain or to preserve the established order.

testbot123··on US customs and border protection is flying a surveillance drone over Minneapolis
You're failing to understand that the ordered system of justice that you're prescribing only works for a small portion of (wealthy, powerful) American society, because the processes of that order are intertwined with a systematic, institutionalized effort to deprive minorities of rights. People are fed up with trying to work inside of a system that barely considers them human.
testbot123··on US customs and border protection is flying a surveillance drone over Minneapolis
Not in /Letter from a Birmingham Jail/ (1963), but he would later go on to state the following (1967):

"Let me say as I've always said, and I will always continue to say, that riots are socially destructive and self-defeating. ... But in the final analysis, a riot is the language of the unheard. And what is it that America has failed to hear? It has failed to hear that the plight of the Negro poor has worsened over the last few years. It has failed to hear that the promises of freedom and justice have not been met. And it has failed to hear that large segments of white society are more concerned about tranquility and the status quo than about justice, equality, and humanity. And so in a real sense our nation's summers of riots are caused by our nation's winters of delay. And as long as America postpones justice, we stand in the position of having these recurrences of violence and riots over and over again."

testbot123··on US customs and border protection is flying a surveillance drone over Minneapolis
"I must confess that over the past few years I have been gravely disappointed with the white moderate. I have almost reached the regrettable conclusion that the Negro’s great stumbling block in his stride toward freedom is not the White Citizen’s Counciler or the Ku Klux Klanner, but the white moderate, who is more devoted to “order” than to justice; who prefers a negative peace which is the absence of tension to a positive peace which is the presence of justice; who constantly says: “I agree with you in the goal you seek, but I cannot agree with your methods of direct action”; who paternalistically believes he can set the timetable for another man’s freedom; who lives by a mythical concept of time and who constantly advises the Negro to wait for a “more convenient season.” Shallow understanding from people of good will is more frustrating than absolute misunderstanding from people of ill will. Lukewarm acceptance is much more bewildering than outright rejection." - MLK
testbot123··on US customs and border protection is flying a surveillance drone over Minneapolis
To justify violence against protestors and to sway public opinion against legitimate grievances with law enforcement.
testbot123··on US customs and border protection is flying a surveillance drone over Minneapolis
> hurting their fellow innocents

Are you talking about property damage, or actual violence like police killing unarmed black folks?

testbot123··on US customs and border protection is flying a surveillance drone over Minneapolis
You realize that radicals and those protesting are part of the "public", right? That their expression of grievances are part of "public opinion"?

As for the people who are disgusted? Nobody cares. They're apologists for state violence, and if after all this time they still don't understand why things are unfolding the way they are, they're only a roadblock to progress.

testbot123··on U.S. Police Shootings: Breaking Down the Data by Race
> Without further investigation, this graph can bait people into jumping to misinformed conclusions.

Likewise with the data you've linked. Submission of data to the UCR database is completely voluntary and does not represent an accurate picture of crime in the United States:

> "The totals provided in this table reflect only those persons arrested by law enforcement agencies that provided race information to the UCR Program; therefore, the totals may not match those shown in other arrest tables for the nation." [0]

> "It is incumbent upon all data users to become as well educated as possible about how to understand and quantify the nature and extent of crime in the United States and in any of the more than 17,000 jurisdictions represented by law enforcement contributors to the UCR Program. Valid assessments are possible only with careful study and analysis of the various unique conditions affecting each local law enforcement jurisdiction." [1]

I.e., you can't expect to get any kind of meaningful analysis by dumping a table of raw, incomplete data into a thread.

[0] https://ucr.fbi.gov/crime-in-the-u.s/2016/crime-in-the-u.s.-...

[1] https://www.ucrdatatool.gov/ranking.cfm

testbot123··on Remote work means anyone can take your job
> When you need quick answers, get on a video call and get real-time answers

Having worked with a distributed team (13 hours time difference) working on the same product under the same deadlines, it's not possible to just hop on a call because e.g. someone accidentally changed a config on a development API which I don't have direct access to because it would knock us out of SOC2 compliance. This is an issue which needs to be resolved immediately and blocks any further work on my end, which means I can't do my work until they wake up and get into the office.

> If you truly constantly need consensus on problems within 30 minutes to prevent your business from crashing, then I'd suggest your organization may have deeper problems that need resolution.

When you're overextended, working under an intense deadline to deliver a product to a client, tight turnaround is absolutely necessary. In theory all of this could be fixed with proper management, but small- to mid-size startups don't usually have the time or resources to do that.

testbot123··on Local TV stations pushed the same Amazon-scripted segment
They're called "video news releases" (VNRs): https://en.wikipedia.org/wiki/Video_news_release.
testbot123··on Show HN: A WebGL Tribute to Tron, the movie that made me fall in love with CGI
Couterpoint: encourage more people to use WebGL for trivial things! Learn new concepts, break old ways of thinking, experiment with half-baked ideas, allow yourself room to grow. Don't let people tell you that the web is one single thing with rules. There are no rules! You can do whatever you want!
testbot123··on 10 years of Front end Development. I quit
Oh man, try WebGL if you haven't already. If you're into math and writing highly-performant code, shaders/GLSL is going to be right up your alley. And you can make really cool and fun stuff with it in the frontend, too!

https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API

testbot123··on The Atlantic lays off almost 20% of staff
Same reason I donate to NPR: to support quality journalism.
testbot123··on The Third Age of JavaScript
A lot of those old paradigms you've mentioned have just evolved into new forms, based on lessons learned. Moving from mixins to HOCs, for example, should be relatively easy because they're based on the same concepts [1] and are solving the same types of problems.

Another example: React.memo does not replace shouldComponentUpdate, nor is it more idiomatic. React.memo is for /function components/, while shouldComponentUpdate is for class components [2].

Another example: the community wanted a more flexible way of using function components with state, and a way to decouple unrelated state: enter hooks. They're not necessarily more idiomatic, but instead provide an alternate way of structuring components and application logic that fits more use-cases.

New context is the same as old context. Hooks just enable another way of interacting with context.

[1] https://medium.com/@dan_abramov/mixins-are-dead-long-live-hi...

[2] https://reactjs.org/blog/2018/10/23/react-v-16-6.html#reactm...

testbot123··on Immutability in JavaScript: A Contrarian View
Feel free to pick a bone.
testbot123··on Immutability in JavaScript: A Contrarian View
Immutability is used in JavaScript and especially React because it's a core computer science concept with real-world benefits, not because it's "sexy" or a fad.

Arguably the largest benefit in React-land is being able to pass around objects and do equality checks via reference. If I mutate an object and pass it as a prop down the tree, the consumer components won't know that it's been updated because React does shallow comparison by default (===). Meaning that wherever you have props in your code where you mutate an object, you have to write a function to determine equality, which leads to your code becoming bloated and unreadable, not to mention the massive loss in performance.

Mutability also harms our ability to test for expected outputs from given inputs. Mutations can cause side-effects that cause other mutations which can be difficult to see or predict. This means code cannot be accurately tested, and it becomes much more difficult to find bugs and near impossible to get a macro-level view of your application logic. In this sense, mutability can make your application /more/ complex and difficult to maintain and extend.

Edit: Please read the other responses in that SO thread. They contain correct information while most of yours is misinformation/speculation with an authoritative tone.

testbot123··on Authorities say Hobby Lobby's Gilgamesh tablet is stolen, must go back to Iraq
> So its ok if local thieves and looters take the treasures with no thought of their preservation or provenance?

No. But two wrongs don't make a right.

> a methodical effort of record-keeping and analysis is wrong, simply because of the thieves nationality?

When the thieves illegally steal a nation's artifacts and illegally sell them to a private buyer? Yes.

> One is 'better' than the other, only from a comfortable armchair far from the turmoil.

... he said, from a comfortable armchair far from the turmoil.

testbot123··on React Considered Harmful
This is somewhat disingenuous. They give the simple example below:

  $(".fooButton").click(function() {
      $.ajax("/update-foos", { method: "POST" });
  });
and then give the "same" example the React treatment, which not only includes third party libraries for fetching, but also managing fetch state, storing data, and connecting to the store, which none of the above does.

A better version of React doing the above would be:

  export function FetchDataButton ({ ...buttonProps }) {
    const fetchData = useCallback(() => fetch('/update-foos', {method: 'POST'}), [])
    // prop drilling for this example only. don't do this normally.
    return <button {...buttonProps} onClick={fetchData} />
  }
which does exactly what the initial example does, additionally rendering the actual button, built-in DOM reconciliation, a declarative API, built-in reactivity (meaning you don't have to handle figuring out what gets updated in response to new data), etc etc.

Yes, React introduces boilerplate but not as much as this post makes out, and certainly not enough to warrant the "considered harmful" label.

> We — all of us — are not mature enough yet for abstractions like React.

Not quite. You aren't ready because you haven't learned the basic concepts enough to understand the problems that React is solving.

testbot123··on Electron 9.0
Except Apple's design system has taken a backseat in the post-Jobs iPhone cash grab era, and becomes less and less consistent with every release.

And we're saying that people who use Catalina are expecting a gold-standard, performant experience? Do we use the same Catalina? Because it represents a major regression in the macOS line.

Maybe we're long overdue for a paradigm shift.

testbot123··on Where coronavirus hospitalizations are falling
Nope, also outdoor. If you're queuing up for e.g. shopping, you must distance and wear a mask.

From the first article I linked: "Are you leaving the house? Facial coverings are required to be worn by anyone older than 12 while waiting in line or inside any essential business, using public transit, riding in a taxi/Lyft/Uber or seeking healthcare, as well as anytime you come within 6 feet of someone from outside your household."

testbot123··on Tesla plans to build a new car factory in Texas
This is a very charitable interpretation of Elon Musk's recent outbursts.
testbot123··on Where coronavirus hospitalizations are falling
California had early, aggressive social distancing orders and large parts of California had/have manditory mask orders in place.

Bay area: https://www.mercurynews.com/2020/04/22/coronavirus-bay-area-...

San Diego: https://www.10news.com/news/coronavirus/what-to-know-about-t...

Los Angeles: https://losangeles.cbslocal.com/2020/05/14/coronavirus-covid...

testbot123··on California officials reject subsidies for SpaceX over Tesla spat
Do I have the right to not be killed by people who are illegally disregarding stay-at-home orders? Doesn't someone killing me violate my right to liberty and the pursuit of happiness?
testbot123··on California officials reject subsidies for SpaceX over Tesla spat
How about "drunk driving puts others at risk and you shouldn't drive a car when you're drunk."
testbot123··on California officials reject subsidies for SpaceX over Tesla spat
The place with universal healthcare?
testbot123··on Little known fact – JavaScript config files create their own gravity
Honestly, if you're struggling with a config file for the transpiler (babelrc), one for the entire project (package.json), legibility (prettier and eslint), and type-checking (tsconfig), I have no idea how you're ever going to be comfortable building anything that's even moderately complex.

4-5 more files and some env vars sure are annoying, but it also means that I only have to deal with config once, then can build and deploy my application in almost any environment.

Also note that a lot of these config files enable you to use type checking and clean, modern JavaScript with added features and syntactic sugar that make JS easier to use. It's my understanding that the JavaScript-hating crowd has derided JS for the exclusion of these in the past ("it's a toy language" etc), so I'm not really sure what's expected here.

← PreviousPage 2 of 3Next →