skysight-inc/HackerNews huggingface dataset:
As a developer of a extremely large code-base written in Rect (https://launchpad.secapps.com for reference of the kind of apps we are talking about), I am not convinced that "Hooks" solves anything in particular that it is not already solved through decorators. We use decorators quite extensively, from assigning styles in a way that does not force the component to re-render due to props changes, to controlling the props themselves with onChange events and so on.

In my professional opinion, which is based on years spending time with react, the typical gotchas in this framework are down to experience. Experienced react, and more importantly js, developers will write better, more performant code. This is applicable across the board regardless of the framework/language. Hooks will not particularly remove this need nor will make you a better programmer.

While hooks look functionally ok what worries me is that they will be subject to a number of problems. For example, complex hooks/components might be subject to memory leaks. With hooks, we are defining closures inside the functional component which will be subject to having access to proceeding scopes. This is an anti-pattern that we removed from our code-base by using classes. The second problem is that your component will needlessly re-render in those cases where the component is not entirely functional. This may not seem like a problem in the simple examples seen thus far, but it will be with more complex components as I've seen in my experience.

React is one of the best frameworks we have seen around so I am happy that we keep pushing the boundaries but what worries is me is that the React team seems to declare that they are moving towards components written with hooks (not removing classes) which in my opinion is not based on solid evidence that will amount to anything useful in particular.

Again, as far as I am concerned, hooks does not contribute to anything that we are not solving in much better way and I doubt they will ever be used at all as far as our code-based is concerned.
How to Meet Bi-Curious Women Online
Broken glass alarms based on sound are really really common, and are effectively just a slightly modified The Clapper (that maybe cares more about specific frequencies) attached to an alarm that calls the police. My house had one when I was growing up (though it didn't call the police: we turned that part off as it went off every time my father belched ;P).
Not every workplace is as sociopathic. And I would rather emulate people who have ethical limits rather then those who seek power regarless of how much they lie or cause harm .
Within a marine context, current is typically given as direction to while wind and waves are direction from.
As a fellow Russian, the impression I got from the original post is that the author has no idea how PR, legal system, juries, diplomacy and workplace politics work in the U.S. Kinda sad because those things are orthogonal to your software development skills.
Very original idea. Thanks for sharing.
Oh wow, this is amazing. There's been a lawsuit in court about someone in Germany who sued their landlord because the landlord has put a Google Nest fire alarm into their flat against their will, ignoring offers by the renter to put in a non-google-non-iot fire alarm at the renter's expense. The landlord won because apparently the court was not convinced that the fire alarm could spy on conversations [1]... What would have happened if Google had secretly put a microphone into their fire alarms as well, not just their home security system?

[1]: https://www.bundesverfassungsgericht.de/SharedDocs/Entscheid...
Testing Tools, Libraries and Frameworks for Java Developers
The truth is that nobody hires whistleblowers.
> At this point, most of the people who tolerate working there are indentured Indian H1-B employees because they’re stuck in the Green card queue

I used to think so myself, and mentioned that to various people including friends and acquaintances who worked for Amazon. All of them told me that they really liked it there and don't know why I had this perception. I haven't met a single person, friend or not, who would validate my view.

I still don't know how prevalent bad working conditions at Amazon are, but the data points I gathered point against the blanket statement you made.
> I run some fingerprinting tests

Is that still legal considering the GDPR?
It was neither holy, nor Roman, nor an empire! (By the end, at least)
I think hooks are just not for me because I don't think those examples look elegant.
Honestly i struggle when people argue that 'this' and class components are complicated, and that hooks remove that complexity. Yet then i see people composing together dozens of various hooks and HoC's to achieve the same balance is beyond confusing.

Recently i was assigned a PR for a component (a login form) i wrote about a two years ago which was a whole 300 lines. The person who wrote the PR also took the time to make it "functional", which has now resulted in it being split into almost a dozen different files. I don't find this cleaner or easier to understand at all.

Current team i am on uses MobX, and Typescript for our app and frankly it is painfully simple, and yet people keep arguing that we should drop mobx, and switch to hooks and i don't see any benefit.
Synopsis: Gravity of the Ultralight
You don't need "advanced audio processing" to detect a glass window breaking because it is loud, and has a distinctive spectrogram. It's a lot easier to detect glass breaking than a wake word, and you can buy standalone acoustic glass break sensors for under $30.

[1] https://www.amazon.com/Honeywell-Intellisense-FG-1625-Acoust...
If you don't mind me asking, was there no medicine that could make it something more tolerable than excruciating?
Jeezus Cripes, way over reaction. I have Fiestaware plates that put out over 30uSv/h / 3mR/h / 9200cpm. Unrefined uranium ore puts out waaaay less that. As long as you're not sleeping with the junk under your bed or working with it next to your desk all day long you're fine. Even then, it's still less exposure than air crews that fly every day receive. No one was harmed by this.
@omeid2 I think you've distilled the issue very well -- it's all about "what is simpler code?".

I hadn't thought of the issue in terms of the three C's you've mentioned, but the criteria also seems accurate.

In my opinion, the popular SPA frameworks (Angular, React, Vue, etc) all suffer from similar problems. They build abstractions on top of abstractions, they force you to learn domain-specific languages (e.g., JSX), lots of new concepts to learn before you can be productive, they are fairly opinionated about how your application should be structured, etc.

If you have the time, take a look at this JS framework I put together ( https://github.com/elliotnb/nimbly ) and it's state management dependency ( https://github.com/elliotnb/observable-slim ).
I built the framework so developers can take advantage of the benefits of modern frameworks (templating, data binding, state management, no explicit DOM manipulations, automated unit testing, loosely coupled modular components, etc) but without the typical drawbacks of modern frameworks. The framework has far fewer abstractions than React or Vue, requires no domain specific language (i.e., you write in plain HTML, CSS and JS), and does not require compiling/transpiling. The framework embraces the DOM instead of abstracting away from it and still refreshes/re-renders components in a highly performant manner via DocumentFragments.

We've used the framework fairly extensively at my work because it plays very nicely with our jQuery-heavy legacy code and allows for much easier re-factors.

The observer library has gained a fair bit of interest from other developers (~2k monthly downloads via npm) and it'd be great if I could interest others in trying out the framework too. I'd love to hear feedback from anyone who takes the time to try it out. Other contributors would be fantastic.
Ball's in the employer's court. It's their turn to make a move. The employee (me) can only react. Therefore as long as the employer continues to be like this, I have no choice in how I respond because I'm a human being with dignity and I deserve to be treated as such. On the other hand, this is the best job/employer I've ever had out of dozens in the industry. This is nothing compared to not getting the health insurance promised, being physically assaulted, having to work weekends/evenings for no reason at all and the other bullshit employers feel entitled to do to their employees. I couldn't disagree with your statement more, however. My attitude is one of responding to things out of my control. If my employer wants to fix this and improve my attitude, they just have to make good on the promises for a raise I was given multiple times or give me back the vacation time they cut in half. It's very simple and extremely easy for them. By saying that I should change my attitude, you're blaming the victim and implying that the employer is right to treat their employees like shit, without a shred of respect, perpetuating this bullshit forever. Nope, I will not accept the blame for their failing to be decent human beings who keep their promises and respect their employees.
Disclosure of things like microphones on internet-connected devices is the type of no-brainer regulation that our regulatory bodies should be promoting. No need for real behavior changes, no need for giant Surgeon General's warnings, just a mention in printed user documentation, the same way products attest that they aren't in violation of FCC regulations on airwaves. There can be a healthy debate about whether this needs to go even further, e.g. legally requiring what Apple does for its laptop cameras in that a hardware light is lit whenever the recording system is powered up. But at least documentation-level transparency seems like a no-brainer. Unfortunately our regulatory bodies seem incapable of common sense these days, but that's a topic for another day.
To me, Web Components are bound by the fundamental anti-pattern of having to globally register unique tag names. Didn't people already learn the problems with doing this from Angular 1?
What never ceases to amaze me, is the absolute inability of companies like google to understand what their actions look like for somebody who is concerned about privacy.

Maybe they understand and do not care, because there are many vocal critics. But having a microphone in a product and not disclosing it? If not even google can keep track of what they should tell us, how on earth do they think they deserve trust?
We are discussing Pike's profound engineering experience which constitutes the background of his bold claims about language design.
Blocking could potentially result in the system getting stuck during boot and simply staying that way. Compatiblity is a bear. The getentropy syscall does the reasonable thing.
mobx-react-lite (supported by the main mobx team) uses hooks under the hood, but extends mobx-react behavior to SFCs. I don't think it creates any additional boilerplate and it aligns with the direction React is going.
Best Startups to Work for in Stockholm
I feel like a Mobx style Hook-killer is just over the horizon TBH.
What happens if there is a conflict between companies that have submitted a trademark of a generic term to the Trademark Clearinghouse? (two companies that have a trademark of the same generic name, but on a different field for example) How is this settled?
Only if you're an ideal rational agent. Maths is hard.
The decrease due to an aging population is a major factor.

The change in birth rate will further compound that decrease. There are also other factors such as changes in lifestyle where increasing numbers of younger generations are foregoing parenting all together.
Was really hoping for some nostalgic screenshots in this piece
Are you using Storybook or a similar system? I've got a lot of value in defining my application in decoupled components when I can verify the implementation of each part in isolation.
> Scientists think they've identified a previously unknown form of neural communication that self-propagates across brain tissue, and can leap wirelessly from neurons in one section of brain tissue to another – even if they've been surgically severed.

Now it sounds curious why it can't leap wirelessly from one brain to another one this way.
I’m not located in Seattle, but if I was there, and got the details, and was convinced Oleg is right I’d try to mobilize some like minded people, make sure there is no clause forbidding me to do so as I like to have a job, maybe give my boss a heads up (maybe he would even join) and I’d be happy to join his protest. But I believe this should start internally, it will look better to leadership if some of us for example write a one pager on this amazon good bad discrepancy and that the fact many teams are happy doesn’t cover the fact there are apparently some toxic ones. I love my job and I hate the fact the same company can cause others have the opposite experience, it hurts them but also much to lesser extent, hurts all of us at Amazon. Ego hurt, can intimidate candidates, lost prestige. Small problems but still should make us all concerned and driven for action to fix it.
Reminds me of Arc proteins
https://www.newsweek.com/breakthrough-memory-formation-virus...
Its fixed now thanks to quick response from OMDB creator
While Amazon’s work culture doesn’t surprise me(similar experiences from multiple sources), while I feel sympathetic to the author’s struggles, I do feel the author went a bit too far with his invectives against his previous manager. The reason I say that is, we don’t know the manager’s side of the story and may be it wasn’t exactly like how this guy characterizes it.

While people working on visas don’t have as much freedom as people who don’t need sponsorship, I don’t think this problem is present in every company that has lot of immigrants. Part of the problem is Amazon’s culture and I think this problem is trickled top down.

It seems like people at the top management of amazon work hard and there is probably better than linear returns for their extra efforts. But it seems like they push that even on the lower rungs where it seems like it is not justified.
"Over time, users wind up paying Comcast significantly more money than the modem or router is worth."

It's not really the cost, probably for 90% of users, it's more your average soccer mom doesn't want to deal with owning, updating, and maintening networking gear. So the service has some value to people.
Sure they should, they have a life of their own. Mine are called Alice and Edward... Sorry, we could not resist.
Maybe this guy?

https://www.theatlantic.com/international/archive/2010/07/wh...
A similar thing happened to me outside of Amazon. When the person I didn't get along with was made my manager I immediately went outside my reporting chain to find a place to transfer (though I considered quitting on the spot)

It didn't really work out though. New team was better but my past followed me and I let the whole experience get me down.
The danger of naming mental disorders (or any other abstract concept) is when you confuse the map for the territory.

The map (the name) should serve as the best possible mental model of the territory (the actual, descriptive physiological condition) - not as the thing-in-itself.
Fighting advancements because they could be misused is a battle you cannot win. If your team is going to misuse features because they simply exist then you need to address the root cause — your team — not the library.
That's hilarious, I'd forgotten that whole exchange.

"Perhaps I can find new ways to motivate them."
Assembling 4.9mm F3.5 Hyperfisheye Prototype
One part of the functional promise seems to be that if every piece of functionality is small, isolated and easy to understand that the whole of the application becomes easy to understand. However, I would agree that I often find the opposite to be true when everything is scattered around in mini functions over hundreds of files.
Why You Should Never Use Select * (Ever)
I agree that most of the reason to use CRA is to avoid needing to set up a complicated toolchain. However I've mostly stopped using it now in favour of Parcel. That gives you the zero-config of CRA without the weight. As a test, I just tried setting up an absolutely minimal React + TypeScript app. This is what I did:

mkdir parceldemo
cd parceldemo
yarn init
vi index.html
vi index.tsx
npx parcel index.html

The two index files are here: https://gist.github.com/ascorbic/3b075105b49917975326f1d31b3...

...and I have a working React app, with hot module reloading and TypeScript. Parcel installs TypeScript as a devdependency and react and react-dom as dependencies, and starts the HMR server. It took less than one minute.
It doesn't matter if their grievances are legitimate or not (and you have no way to tell if they are). It's bad form to trash talk one's former employer or ex.

It's not just me. You will often talk yourself out of getting hired and many will not pursue a relationship with you if you indulge in it. There is nothing to gain by engaging in it.
Only applies to subjects of the EU.
Thank you very much for sharing this info. It helps understand the context better.

Can you clarify whether the manager's feedback is public info within Amazon?

Also, there's gotta be people at Amazon who knew the author. Did they say anything positive or negative about the experience working with him?
> The real issue which I want to see solved is getting people to remove business logic from React. I see components loaded to the gills with data fetching and overly complicated async rendering schemes. Personally I try to keep my React components extremely dumb.

Hooks are great for this. You extract all business logic into custom hooks and your components are left as dumb renderers calling other functions to get values. It’s great.
For Google, I'm not sure how option 2 is supposed to be acceptable either. It is perfectly reasonable to be concerned about introducing an internet-connected microphone into your house. It doesn't even require assuming a malicious Google to see potential problems with this. You're one decent security flaw (in an IoT device no less) from anybody having a microphone in your house.
Well, he is a cross between German and Japanese stuff.
Flysafely.net – Alternative Platform for Flight and Hotel Deals
I hope in your old age you never have to interact with people as devoid of empathy as yourself.
I'm a bit dumbfounded about the "this" and "class" confusion concern as well. I'm not surprised to hear people have trouble with that per say.. I am surprised a company like Facebook cares about those people. Isn't this the same company that wouldn't hire the homebrew author? I get the sense the only UI people who really know programming work on the React team.
I developed this framework as my undergraduate graduation project.
I don’t trust a company like this enogh to install their software on my machine. If they do the design equivalent of cutting your wrists and begging for love even less so.

I was the traditional target demographic of reddit, now I will go out of my way to avoid it. Just like Pinterest
I feel like if hooks remove the need for redux for you, you actually never needed redux in the first place.
> You're one decent security flaw (in an IoT device no less) from anybody having a microphone in your house.

Many people already have Android smartphones, so there is already a Google microphone in your house. The big difference is that you know that it has a microphone.
At what dollar value does something for sale to the general public cease being first come first serve?
No you just end up being an English teacher which gets you paid upper middle class wages just because you are white.
WiGLE is nearly 20 years old. Your wifi network's name and mac has likely been public info for nearly that long.

https://en.wikipedia.org/wiki/WiGLE
Children and death, be it yours or theirs, is the worst combination of thoughts possible to occupy your mind.
The CT scan is the interesting one. I've talked to some researchers about CT scans, and how they do increase cancer risks. It's not very much, but for serious long-term conditions you might get several CT scans per year and that could increase your cancer risk. When looking up studies the numbers are pretty low, usually under 10%, but it is an interesting risk to be weight against diagnosing and treating the underlying condition.
Dark energy is an expansion of spacetime itself that is uniformly present throughout the entire universe. If it were responsible for ʻOumuamua's acceleration it would have been followed by our entire solar system being shredded down to subatomic particles shortly afterwards - see https://en.wikipedia.org/wiki/Big_Rip
Context: https://news.ycombinator.com/item?id=19144280
I store all my videos of my children on my phone. I have backups on iCloud and Google Photos, but I prefer to have them on my phone. It's personal preference, and I know others do it differently, but I don't want to waste time looking at a spinning wheel waiting for the video to download if I'm looking at old videos. I'm lucky in that I can afford the extra storage.
That article is https://arstechnica.com/gadgets/2019/02/mandatory-update-com....
Genuine question but after 15 years working experience when is a degree going to make a difference when looking to get hired? Does it even make a difference after a couple of years of experience?
Ask HN: The Rise of the Newsletter?
What do you think will happen to Newsletters in the next few years? I have the funny feeling, that they will gain more traction again based on the fact that they are big time savers for their readers.

Or do you think that they are outdated and will be replaced by some other new things? Have you recently subscribed to new ones or unsubscribed to old ones?

It is a very long term game to build a meaningful list and I'm trying to figure out if it is worth pursuing.
I don't get why you've got downvoted, I have the same opinion. There were a lot of scandals related to privacy lately (and I'm not talking only about Google), it's easy to understand why people stop trusting large corporations. It's sad that we use the downvote button to suppress opinions that are different, instead of using it for marking low quality content.
Quickbooks Integration – Build Custom Processes with a Low Code IDE