skysight-inc/HackerNews huggingface dataset:
I'm not saying never refactor, but it's often done prematurely.

> It means that all future developers will have to spend a lot of time to understand complex code that could be simpler.

Code that's complex is often complex because the domain it's written for is complex. I've heard it called incidental complexity. Could you write it more simply? Potentially, but how sure are you that you're not about to get rid of edge case handling or important features?

Tests only work if you're sure you understand the requirements well enough to write the test. If you're at that point of understanding in the platform, you've probably got a good idea of whether or not you should refactor.

> Another reason to refactor is that you want to give new developers the satisfaction of "owning" part of the code. I read an article on software engineering at Google saying that it was ok if some parts were rewritten over and over.

I think it's an attitude software learned while it's been flooded with easy money, where the tangible cost of constantly throwing away code is never really considered. Code is never considered an asset, but had you built a tractor for a company they would definitely want to know why you want to build a brand new tractor when the old one is working fine.

I have mostly worked in agency environments, and as such cost is always part of the conversation. Often the only people who want the refactor is the developers. It doesn't provide any value to the business. I often do advocate for a refactor for some of the reasons you mention, but to get client buy in you need to provide some real value, and when you have to think about that it quickly discovers whether or not your refactor is frivolous.
Important, def! But I don't think that this could count as "simple".
Linux 5.6-rc1 has been pushed out
Another great blog post on great research by the DeepMind guys, who are also simultaneously releasing a new dataset for long-range language modeling.

The post is worth reading in its entirety.

If I may summarize, the authors propose a transformer augmented with a short-term memory mechanism (analogous to TransformerXL) as well as a long-term memory mechanism (new) that learns to 'compress and memorize' embeddings from the short-term memory. The model is trained on book-length samples (!!!!), and seems to perform significantly better than prior models at generating language with long-range contexts. To my eyes, text generated by the trained model is virtually indistinguishable from human output, and qualitatively superior to GPT2 samples.
I remember when cable first came to my city. They marketed it heavily as being an ad-free alternative to broadcast TV. That was not a myth.
A quick summary: the employees at a university had to attend seminars put on by the Disney Institute to try to instill in them the 'values' that the university should adopt.

I vaguely remember the corporate culture workshops we had to attend at a couple previous employers, and yeah, it's annoying and boring, but someone had to justify spending X million dollars on a new slogan and spiffy "these five words summarize who we are and what we do for the world".

Apparently that wasn't (isn't?) the norm in university settings?
toilet paper, maybe ?...
Not sure this counts as "simple".
Nice one, but we could get into a debate on whether a convention counts as an invention.
Our climate is hosed, here’s how *you* can help
ESG-focused startup, looking to hire a CTO
I've spent a lot more time fighting with formik than I've ever spent just working with inputs directly in React.
> So the granola company, coaster company, etc. forgot to remove the old bar codes from the outermost box before packing it full of their own product and sending it out.

So the idea seems to be that amazon.ca is collecting goods in boxes from various suppliers, and those boxes have no shipping labels on them, only product labels, which it trusts the suppliers to produce correctly. Amazon then fills the original downstream order, matching it by type, which is indicated by the product label.
The sanitation system.
This prompted me to go read her Wikipedia page, and wow does she have an impressive resume and set of accomplishments.
Sure, some do, but past adoption is not a guarantee of future adoption. 20 years in the future is a long time. Just look at Flash. Who knows, maybe a Quantum OS will dominate that doesn't support Python.

So yes, if someone will still be using Python in 20 years, I'm sure you're right. But Python just as easily could be relegated to a niche domain while other languages take over a broader range of applications.

Especially if someone's able to build a programming translator where you can easily port your code base from one language to another.
You should re-read what I said. No where do I see me saying physical force had to be used.

"Fixing" takes a long time that does not mean one should not deter attacks on the current system. How does one respond to a broken legacy software system that can be taken advantage of? You restrict the actions that can be performed on that system until it is replaced.
You certainly do not need to use a form library, but it does make it easier to deal with complicated issues such as render counts. I built a thin wrapper around material-ui and react final form (what I would suggest over formik) [1] and a little demo [2] that visually demonstrates this.

[1] https://github.com/lookfirst/mui-rff

[2] https://lookfirst.github.io/mui-rff/
Not saying it didn't have an impact, but I'm nitpicking about the impact it had on how we spend our time: "Marchetti's constant is the average time spent by a person for commuting each day, which is approximately one hour. [...] Ever since Neolithic times, people have kept the average time spent per day for travel the same, even though the distance may increase due to the advancements in the means of transportation."

https://en.wikipedia.org/wiki/Marchetti's_constant
I just don't like the graphical file management.
Because I work in a Windows-only facility, at least where my level of dev work is done.

And I live in a house where the only other person has only ever user Windows, and hates change. Like even desktop icons shouldn't relocate unless she does it herself.

She fights every application update unless there's a clear reason, then there better not be any more differences than the ones indicated.
It's definitely a very good resource and it's been a great help to guide my learning. It's definitely still a huge commitment in time (and textbooks!).

I've been working on a single volume introduction to computer science. The first chapter (on theory of computation) is available free on https://thecomputersciencebook.com. I'd be grateful for any feedback.
Hacker Factor has a series of articles about various attacks on Tor: https://www.hackerfactor.com/blog/index.php?/archives/868-De...

The tor daemon really needs to be re-written and audited. Apparently the codebase right now is a huge mess.
> ONSITE & REMOTE 1d/week

To be clear, this means that you're only interested in on-site candidates, correct?
Anecdotally, nobody I saw doing cybersecurity work for the government had to wear a suit, unless they had a performance review that day, or had to give a presentation to senior management. It was mostly jeans and t-shirts from what I saw, maybe a polo if they were a junior manager.
Plastic. We're now drowning in a new problem, but plastic and its impact on sanitation (particularly medical sanitation, like disposable needles, which then supports vaccinations) has dramatically improved life quality and length.

Losing a child to disease before the age of five is no longer a universal human experience, portrayed in the Robert Frost poem below.

https://www.poetryfoundation.org/poems/53086/home-burial
> I'm not going to make a moral judgement here, I'll just say that I'm not a fan of treating "cyber" as some magical realm where there are no norms.

On the contrary, I think we are pulling in too many assumptions into "cyber". Imagine this: if someone had left their door unlocked and someone came in and stole their lawn mower, you could say they deprived the owner of use of their lawn mower. However, imagine if equifax removed [authorize] in an http endpoint like /v2/person/:id allowing anyone to just GET /v2/person/1 .. 999999999 consecutively. Is this a criminal matter? I'd say no. I'd go further and say that this "cyber" fearmongering has gone too far and we should ABOLISH the CFAA. The EFF has still laid their hopes on reform but I for one think it is irredeemable and must be abolished with no replacement.
Forensics. Attackers use and sometime re-use domains, ips and code to recon, attack and exfil data. Those items may have been used before. All the attributes related to each of those items are cross referenced. You might find a server in this breach was associated with an email address that was used to register a domain in the current breach. That email now loosely ties the two breaches and actors together.
Turing-NLG: A 17B-parameter language model
would just like to merely point out that we could use public key cryptography to solve the problem of identity theft.
https://www.flickr.com/photos/ableman/sets/72157594421824427...
What if China says “we’re sending you a plane with the four individuals you are after. We insist on their innocence and want to see a fair and public trial”

Then DOJ would have to reveal their sources, wouldn’t they?
I felt exactly the same for many years, but when hooks where introduced, I discovered react-hook-form[1].

It just blew my mind how you can write complex forms with validations in just a few lines of code.

Give it a try.

[1] https://github.com/react-hook-form/react-hook-form
The best way to FINALLY understand recursion (used Merge Sort as a case study)
They call those "general electives" and require you take like 9.
It doesn't just "look nicer," it is a cultural symbol - no doubt thanks to successful marketing on behalf of apple.

>your case is that you think people will spend significantly more money for something that looks nicer.

Is this not a fact? Why do you think people buy diamonds? Are you aware that their role as a symbol was also purely manufactured by commercial interests? Look up the dealings of the diamond cartel in the early 1900s.
The most astounding thing about bicycles is that we did actually get it right. looking at the first ~100 years of iteration, you'd kind of assume that it was one of those things that would just keep evolving forever. But then they found the classic diamond frame design, and bikes have been fundamentally the same since then.
Tools in My Toolbox
How to Get into an Ivy League School?
More than this, C is from the 70s, and C++ is from the 80s.

This is 50 years from now for C. So I'd say python is likely to be still here 20 years from now, given how popular it is.
There was a good HN discussion a few weeks back about this: https://news.ycombinator.com/item?id=21911225 It's becoming increasingly clear that the entire Amyloid-beta plaque hypothesis has been wrong and last 20+ years of Alzheimer's research and drug development has been wasted.
> How are non "cyber" crimes handled? Is it normal to charge people for the murders, thefts, and other illegal activities intelligence officers perform?

It depends, I'd say mostly on the public outcry. For "extralegal renditions" aka kidnapping by the CIA in Europe, some investigations were happening, some charges were brought, but I haven't heard anything about conclusions.

Cyberspace attacks even against allies have generally been considered part of diplomacy, e.g. the US breaking into Germany's telecommunication systems to spy on Merkel's SMS.

Since this isn't even a state <=> state issue, it's more like the NSA's decades long industrial espionage: business as usual.
what's with the sensationalism?
https://en.wikipedia.org/wiki/Freedom_Hosting

https://www.infoworld.com/article/2611636/tor-browser-bundle...
https://www.inc.com/don-reisinger/no-bill-gates-didnt-buy-wo...
To have a duplicable traversal order.
Well written piece.

I've been subjected to these kinds of 'workshops', and, like the author I too resent them. What's interesting is that many people (a majority?) in my organisation hated it too.

Why do sessions like this keep getting organised? Why don't employees unite and speak up? What's in it for management? Deep down they must know that for most people attending, it doesn't add any value (it detracts).
Moving from the Bay Area to the Greater Sacramento Area
What You Need to Know About Traveling to Laos [ Laos Travel Guide 2020 ]
Hitler's Nero Decree
Crisis Investing: How to Maximize Returns During Market Panics
Ya, I dunno if it counts either. Just seemed like an interesting answer so I threw it out there.
On the other hand I would say, I learned a lot from this book. I too had no exposure to network concepts but after finishing half the book I learned a lot.
If you ignore the fact that the US always fights with both hands tied behind its back then this take is almost only slightly inaccurate.

The US won a war in Afghanistan and two in Iraq. Now, the occupations afterwards? Different story.
Does the theory of evolution by natural selection count as an invention or a discovery? ;)
>> who insist on using Chrome

> They should switch to Firefox or Safari.

There seems to be a disconnect here. You can tell people they should do something all you want, but if they've already shown themselves unable or unwilling to do so, you're better off putting that effort into something that might actually achieve something.
I literally posted the definition of malware. Where is it gaining unauthorized access?
Statement of Mark W. Begor, Chief Executive Officer of Equifax
The post lost some credibility right away when they spelled "gamut" with two m's. https://en.wikipedia.org/wiki/Gamut

The big rainbow has some problems too. It should be obvious by looking at the transition line from color to black-and-white that brightnesses are inaccurate. There's another problem that I don't ever see discussed - the yellow, cyan, and magenta colors really are brighter than the rest of the colors because of the way our monitors work, they have twice as many photons because they emit two different primary colors.
>Wasn't this more intelligence gathering?

I believe it raised to a level above spying and intelligence gathering. It was a state sponsored military act of cyber warfare that infringed on the US' territorial sovereignty.

>The appropriate response would be more akin to hacking back into China's social credit scoring company and snooping around.

The purpose of a proportionate response to military acts under the UN Charter and the use of force and armed conflict is not so much "an eye for an eye" (i.e. you hack me, I hack you), but to put an end to the military operations infringing on your sovereignty ...for example, assuming you believe Iraq had WMDs and chemical weapons or response is not to create stock piles of our own chemical weapons.
> Its outermost layer is a strip of titanium just a fraction of a millimeter thick and coated on the sun-facing side with charred animal bone. This is the same stuff used by prehistoric humans to paint cave walls, but its properties also make it great for radiating heat away from a spacecraft.

Is this true? Sounds very sensational press.
I use redux-form and really enjoy it. A modern form UI has a lot of considerations that classic html/css forms do not:

* The concept of pristine/untouched inputs

* Basic and custom validations

* Resetting forms to various states

* Prepopulating data based on an API response

* Dynamically creating inputs based on UI states.

* Normalizing data upon input or submit

* Creating wizard/multi-step forms

All those implemented in Vanilla JS or in a React component can get messy. Is redux-form or any form library absolutely necessary, nope, but they sure do help.
The military needs, or needed, Tor to be functioning and anonymous for their own use, correct?
The often-overlooked Twistlock is an important part of this, and I think it answers the objections about the “invention” being only a convention.

https://en.wikipedia.org/wiki/Twistlock

On review: another comment here says the same. https://news.ycombinator.com/item?id=22291068
yes people are unreliable that's why we need a more resilient means to establish identity like PKI. Consider PGP for example, they could put QR codes on social security cards for all I care just fix the real problem for once.
FWIW, I don't think it is necessarily.

But, a lot of people are forced to use office for various reasons - trying to edit a docx in Docs/Pages/LibreOffice, for example, can be really frustrating for any number of reasons (fonts, margins, etc. all sometimes break spectacularly).

So if you're using office quite frequently, windows can be very appealing.
Yes! I think the Sidekick kind of gets forgotten in the story of "next generation smartphones," but it had an on-device app store, an early equivalent to visual voicemail, and arguably one of the better web browsers for its day -- albeit one that worked by having servers somewhere quietly rewriting web sites to work better on the Sidekick's screen. (Hey, it was way better than WML.)
Microsoft Surface Duo Android Tablet/Phablet Spotted in the Wild
Why? Cleaning with water works fine - better, in many people's opinion.
If the big rip theory is correct, then 64 bits will suffice.
12 years ago we still relayed on notebooks and pens for everything. Then smartphones appear and life changed forever. And also devices like clocks, calculators, cameras, gps, planners, maps, agendas, erasers and liquid paper become redundant.
Wow, that's… gross. The university is treating its employees like young teenagers. There are always better things for schools to spend money on, such as faculty and staff salary. One wonders why they instead buy silly services like this.
tldr: No effect for the two antibodies tested.
My dad still uses the family (his dad's) rice cooker from the mid 1950s, so they aren't that complicated, they're basically a heater and thermal cutoff

PSA for anyone who doesn't: Wash your fucking rice
Counter point: Ukraine. Russia had lots of citizens and influence there but still took military action.
Yeah, I remember writings and interviews from that time period, where he spoke and wrote well on the subject.

Can't say I understand very well what was going on in his mind, but somehow I got the impression that some of that was not totally specific to alpha in particular, but that alpha represented non-x86 at large, and he was excited and enthusiastic to tackle the technical problem of making the kernel portable. And certainly it paid dividends; eg. linux on ARM is running on billions of devices today, and that surely would have been more work had they not decided to make the kernel portable in the first few years of its history.
Hi, I'm a Redux maintainer.

You may be interested in my suggested resources for learning React and Redux:

https://blog.isquaredsoftware.com/2017/12/blogged-answers-le...

https://blog.isquaredsoftware.com/2017/12/blogged-answers-le...

https://github.com/markerikson/react-redux-links

Also, please check out our new official Redux Toolkit package. It includes utilities to simplify several common Redux use cases, including store setup, defining reducers, immutable update logic, and even creating entire "slices" of state at once. It's our recommended way to write Redux logic:

https://redux-toolkit.js.org

Meanwhile, we're working on a major rewrite of the Redux core docs. I'm hoping to put together a new "Quick Start" tutorial page that will show how to use Redux Toolkit and React-Redux in a "top-down" approach as a fast way to get productive. The current tutorials take a "bottom-up" approach, teaching how Redux works from first principles. I also want to rewrite those, keeping the same teaching flow, but updating the content to be easier to understand and to teach patterns that result in simpler code.
>I just don't understand why people run windows.

For me the main reason is games. Dual booting is really annoying and jumping through the 15 hoops it takes to run games on Linux doesn't seem worth it considering how poorly games seem to run natively on Windows already. It's not a question of "there are no games for Linux" but rather "the game I want to play is not on Linux".

This one point is basically the anchor that all the other usage is centered around for me. Linux simply doesn't offer something amazing enough over what Windows does to warrant all this trouble for games. If the games I wanted to play ran decently on Linux with few problems then I'd probably switch over. But considering that MS is now doing that Xbox game pass subscription even on Windows, I think the chance of switching is becoming less and less likely.
Dr. Ignaz Semmelweis on discovering the effects of washing your hands before operating on patients. Simple, yet highly effective.
title update: "Amazon wants to question Trump after losing $10 billion Pentagon cloud contract"
_Question_
I don't know if you were being sarcastic, but the post it note meetings only provide illusion of getting things done and they can often be destructive if not conducted well or relied on too heavily. Your mileage will vary of course.
Unix Pipes - BWK pointed out in his memoir how a small piping implementation done in a single day changed Unix(and computing) forever.
Sterilization of medical equipment. Easy to do even at home if you know how, probably saved hundreds of millions of lives since it was invented.
I've been thinking about publishing all the peer reviews for my own articles. This idea seems to be controversial [1], but I do think it's important to know what the reviewers said as it lets us know what was checked and can give an impression of how thoroughly it was checked.

[1] https://academia.stackexchange.com/questions/11097/ethics-of...
"The main purpose of this corporate culture initiative is to create a more disciplined and compliant workforce."

Surely the main goal is to drive out older workers. Some number of them will refuse to tolerate repeated exposure to such nonsense.
That was the purpose of the initial DARPA grants funding Tor.
Point 1 in this article is totally misguided. "State management is how you mitigate prop drilling" implies that when prop drilling is not a problem (i.e. most of the time), that you don't need to think about state management. Even if you're prop drilling, you need to make sure data is not stored/updated in multiple places in your app in order to keep the UI consistent.

The one redeeming part of that section of this article is that it links to another article that isn't as wrong. The linked article details when prop drilling is and isn't a problem. And most of the problems it describes can be reduced by using TypeScript. https://kentcdodds.com/blog/prop-drilling
See also: Reagent. State is a first-class construct in Clojure/script, and forms associated with statefulness and state management are directly available. From that perspective, none of the front-ends presented appear complex.

https://github.com/reagent-project/reagent
One data point, I don't believe I'm a monster, but I do enjoy my Walmart job.
People were tricked when they were forced to upgrade through confusing prompts. People were forced when Microsoft strong-armed processor companies to not support Windows 8 and instead force Windows 10’upgrades if you wanted new machines.

Disclosure: I worked for Microsoft during Windows 8 through early Windows 10 development on related teams.
Someone didn’t think of putting wheels on luggage until relatively recently, in 1987.

https://www.nytimes.com/2010/10/05/business/05road.html