skysight-inc/HackerNews huggingface dataset:
> URL state: the route the user is on now. Read and update window.location; don’t create a second source of truth

I've seen so much back and forth on this issue during my time developing with React. Intuitively, it seems like the URL should be treated the same way that DOM elements are: as a source of actions that may or may not result in state change - in addition to a reflection of state.
One of the reasons is the difficulty of writing reusable interactive components with server-side rendering such as maps, rich text editors, autocompletes, hover previews, menus.

The components work with data. Let's say you need an auto-complete component - 500ms after the user starts typing it will query the server and get some data back. You can describe the returned data in partially rendered HTML too but the attribute-based descriptions are often quite limited and for ease of use from the JS side you're likely to end up with embedded JSON as a general data description language with unlimited nesting, which naturally leads you to a client-side templating language.

The components are also likely to re-use each other, giving rise to the need for a module system to track those dependencies and make sure they are all loaded when you go to a specific page based on the components being rendered. If you use partial rendering you would also need to ensure to track any components used from the partial html endpoints have their JS included in the page, capturing any of their occurences, making sure to attach the right event handlers to enable interactivity.

Sure, one could ostensibly write a set of components that use JS under the hood and add them to the back-end. They could also write a server-side module system that ensures that the right scripts are included in any page that uses them. They could do all that.

But then that would work only for a single backend ecosystem, such as e.g. Rails. There is no way this component library would be able to compete with a unified client-side ecosystem in terms of features, flexibility or battle-testedness. Additionally, if you want to try a different language on the backend, you won't be able to - unless you're willing to pay the overhead of a secondary service meant to only generate the HTML and manage the JS plugin system.

And all this is before we even consider alternative clients (e.g. mobile)
Yes, been there done that, I was so relieved when I could stop using these f.. fountain pens.
Really annoying to use as for lefties..
My favourite example was "Foot heads arms body" which was allegedly created although not perhaps used by the Times when the UK politician Michael Foot was put in charge of a disarmament committee [0].

[0] https://en.wikipedia.org/wiki/Michael_Foot

[Edit: emphasised the ambiguity picked up Confiks]
So what about Apple TV?
"downerending destroys missosoup on HN over Headlinese spat."
I am a member of the meetup and like the fact that most of the discussions are held online to enable remote attendance.
I think there's a similar effect in play to 1984's "Newspeak". While Newspeak was designed to restrict freedom of expression and quell any nascent revolutionary feeling, Headlinese seems to lend itself perfectly to these intensely polarised feelings. I don't think it's a new thing though, it's certainly been employed by the British press for as long as I can remember.

And the constraint does lend itself to some fun creativity in the sports pages at least, see "Super Caley Go Ballistic Celtic Are Atrocious"[1] and "Young Boys Wankdorf erection relief"[2] for example.

1: https://www.thescottishsun.co.uk/sport/football/554447/where...

2: http://m.espn.com/soccer/story?storyId=337901&src=desktop
The internal Scheme language was not easy for me to access.
In a world of low-friction exchange of information and goods, small firms are competing with every large firm that can touch their market. What you're describing (companies doing just fine without growing to enormous proportions) is the status quo until a Wal-Mart rolls into their market, in which case they tend to be consumed by the mega-firm that leverages economies of scale (and occasionally monopoly) to drive prices down.

A free market, lacking counter-pressure to maximizing firm size, favors large firms, and large firms becoming larger is a positive feedback loop. Note that this is an idealized model and there's plenty of room for counter-pressure in reality (can the large firm actually pull demand away from the smaller firm, or does the smaller firm have a leg-up in e.g. customer relations that the larger firm can't compete with?).
That’d match the current policy of “It’s ok for US to break any foreign laws”
also the Marriott breach - who's staying when/where and what CC do they use https://www.npr.org/2018/12/12/675983642/chinese-hackers-are...
Please let's not go off topic like this. "Dr" isn't even in the HN title above.

Whimsical off topic tangents can gratify intellectual curiosity, but this is just the opposite. Bringing the most objectionable nitpicky detail from an article in to the thread here is not in the intended spirit of the forum. https://news.ycombinator.com/newsguidelines.html
> The system doesn't force anyone to make a profit. If you borrow capital from people, your investors may demand a profit. But that's between you and your investors. Nobody is forcing you to take investment or sell equity in your company on the public markets.

https://en.wikipedia.org/wiki/Shareholder_primacy
Are You Embarrassed by Your Digital Marketing Skills? Here's What to Do
"we’d spend hours on the water trying to obey the instructors’ yelled commands. I was freezing cold, I understood nothing about the wind"

I think this is too many people's first experiences on boats, why husbands and wives fight on boats, and why their partners ultimately leave the sport. We used to go out every weekend, but now we are more selective, choose those sunny, flat days. We still pick a couple of "wet" events like Spinnaker Cup down the coast during early spring, but everyone's enjoyment has gone up considerably. Orientation and comfort go a long, long ways towards getting people back out on the boat again.
DiskCryptor
This is very much the enterprise mindset where purchasers often don't have to actually use the software, so you can sell them impressive checklists.
It comes from two religious movements in the U.S. that became popular starting in the 50's and has been gaining momentum ever since: Prosperity Gospel and New Age Spirituality.

They both focus on you projecting "good vibes" and only allowing others who also project good vibes around you. If you can do this, then (Nature/God/the Universe) will reward you.
My dad worked in a plant growing up, right before college my summer job was cleaning the washing ovens to "make sure I value my education and don't drop out." Amazing to see the aluminum pucks and machinery and get up close and take it apart to clean it, I don't think my dad was worried after the foreman asked him if I was going to be mechanical engineer.
I agree with most of what you say but I see it as more benign. Culture is not just a "trick". A company with good culture is bringing real value to the table, and for this reason they can get a better deal in other areas.
it is a complete overreaction, unless everything you do an an overation.
> iOS, ASP.NET Core, JSP and JSF (Java based frameworks), Ruby on Rails, and Django (Python) are all based on MVC.

Don't all of those have two-way data binding?

> Why is it that MVC works for all these other frameworks, but doesn't for React?

I think the point is that Facebook found it doesn't actually work well, at least for their use cases. They found a recurring set of bugs caused by two-way data flow, and built a framework to alleviate it.
> Why don't employees unite and speak up?

Why? What's to gain? These workshops wouldn't be happening if the highest levels of leadership didn't want them to. So it's my opinion on the matter against theirs. Maybe they will value my opinion and consider, or maybe they won't. I don't know for sure. If they want to pay me to daydream through silly horoscope or culture training, fine. I'll pick my battles and that's just not one I care about enough to fight. We'll do the training for a few days and then we'll never think about it again and continue doing our jobs as usual.
Copyrighting all the melodies to avoid accidental infringement
A thread from 11 months ago: https://news.ycombinator.com/item?id=19478079
> - they kill other military personnel during peace time

I see that you did some effort choosing the word "peace time" to be able to say "well we are at peace with China, thus this is fine to charge them", but at the end of the day, what is peace time? Does receiving the order to attack a target make it become a war? They got an order to attack the US company, this is not peace.
When you write recursive functions like this, you should keep in mind to get strictly closer to your base case with each recursive step (for some feasible definition of "closer"), otherwise you might never reach that base case.
> unit test anything but the individual pieces

Isn't that the definition of a unit test?
so people are discussing CFR's but calling it mortality rates

consider how mortality rates are extensive quantities i.e. proportional to the number of people infected while CFR's are intensive quantities i.e. independent of the number of people infected
An Affordable Alternative to Trustpilot
Well, one way would be to get a barebone laptop from an OEM like Clevo.

As you can fit these with your own RAM, CPU and drive, it is quite servicable per definition. Of course, if the mainboard breaks, you need to rely on the manufacturer. But the same applies to the engine of the DeWalt drill, I guess.

I mean... there are people out there that can fix the engine of the drill. I‘m pretty sure there are also people out there that can fix a mainboard.
There is science behind the spread of good ideas
Julia is by far the favorite language I have written code in. It is extremely expressive, while also being easy to read. Most design decisions are spot on. For example, the language has syntactic sugar, but not too much. Everything in the base library makes sense and seems to be there for a purpose.

Other niceties are the meta-programming capabilities, which allow for things like inspecting the llvm code and printing a variable name `x` plus output by only typing `@show x`. Then there is the fact that anonymous functions actually look like how you would describe a math function! (That is, `f(x) = 2x` is a valid function, as is `f(x) = 2π`.)

However, there is one thing I do not like at all. That is the loading time of packages. When starting julia and running `@time using DataFrames` it takes about 38 seconds when recompiling some stale cache. If all caches are good, the the load times for some common packages still add up to 1.1 + 4.5 + 1.1 seconds according to `@time using Test; @time using CSV; @time using Dates`. Therefore, nowadays I prefer to use R. For most of my use cases R outperforms Julia by a factor 10.
You could also argue that the political necessity in competitive cycling to maintain its status quo (thus not allowing recumbents and the like) has forced us into a local maximum that we cannot easily exit.
I'm mad about that. Google can fuck off with that crap. So can microsoft. It's not a competition. It's shit regardless who does it. Obviously people are reacting to this now because it's new and if people react violently enough maybe microsoft will try to score some PR points by removing it, but fuck them both for doing this shit. Same with apple trying to fuck over non-Safari browsers. Fuck them all.
In Finland being little grumpy is a sign that you are currently doing something important.

"Leave me alone. I know what I'm doing." :)
I think a lot of people including NYT & WaPo staff don't understand that economic prosperity and environmental sustainability are mutually exclusive. In fact most, if not all politicians and business people suffer the same lack of understanding.
Unfortunately most of the things can be used for good and for bad.

Secret communication is definitely one of them. And since the negative potential is huge, there is always going to be a incredible incentive of those looking for the criminals to inspect any form of communication. I think the potential of misuse by the "bad guys" is a lot higher at the moment compare to "good guys" to be caught.

So for the general public, if you are not doing anything bad you should not worry... Right?

I am a little paranoid. For example that things may shift in a way that today the "good guys" do not expect or undervalue.

What if in the future the good guys become the bad guys? Or what if the bad guys get in control of the systems the "good guys" have?

And of course in some countries the majority may be the "bad guys"... And in other things may not be so black or white.
Should they? I know of no such law or theory. They have a burden of proof regarding the correctness of evidence and the defence can question the legality of collection methods if the evidence gets used in court. As far as I know, that's about it.
For industrial uses, where buyers care about total cost of ownership, there's room for that. Now that silicon precision improvements have such small performance returns, there's also much more room for "heirloom" tech for consumers.
It’s how I teach people. I also think of variables as boxes and labels. Tje caveat is that for a non-primitive datatype, I put the address of a vault in the box and will go to the vault, everytime I use the value of the variable.

I’m not talking pointers here, simply references.
The case of anyone is curious: https://en.wikipedia.org/wiki/Death_of_Harry_Dunn
tl;dr the team brute force generate the set of likely melodies and put them on a hard disk to copyright them.
It doesn't matter if the trial is going to be fair or not. Doing this is the worst kind of betrayal that a military can commit against a soldier.

This is also why the US is not even a signatory of the ICC. It, by principle, opposes the sheer notion of Americans facing international trials for war crimes, even in impartial, third party courts. There's no way in hell it would extradite its spies to face trials for computer crimes.

It's arguments for not participating in the ICC are that the trials would be political, and not impartial. That's a stick with two ends.
I would imagine that they're not talking about general North Carolina English so much as the dialect of the island of Ocracoke, which has a number of conservative features that date back to Shakespeare's day.

https://en.wikipedia.org/wiki/High_Tider
Rather, it was more like "We're all Americans, and we stick up for each other". That's an ethos, a feeling, that we all (and Democrats in particular) need to recapture, in my opinion.

When you say Democrats, do you mean voters and/or politicians? Why do you think they don't, in particular, stick up for Americans?
Either react-hook-form[1] or formik[2]

[1] https://github.com/react-hook-form/react-hook-form
[2] https://github.com/jaredpalmer/formik
I used to have this mentality until I tried hiring minimum wage workers.

Minimum wage workers are extremely low quality. They have 0 skills and require education on everything. Sure Engineers need to learn too, but there's a gigantic difference.

Minimum wage workers are hard to find. Most people won't work for that little, so turnover is high.

Minimum wage workers don't care. They know they can find another job easily.

I was forced into paying 15$/hr for data collection as a result.
> Once we know the actual cause I suspect we’ll see research funds skyrocket

I agree with your hypothesis, but saying it out loud seems backwards. In an ideal world, wouldn't we see research funds rise now in order to discover the cause (the hard part) rather than for the treatment (the less hard part).
I'm not expert on these things, but if these microbes evolved without any animals around, I wouldn't have expected them to evolve any of the characteristics that make some bacteria harmful.

For example, our immune system should be able to handle them easily, because they never had to fight an immune system before.

There could be some crazy thing that happens, but I bet the odds are low enough that we don't need to worry too much.
IMO my favorite way to think about recursion is to build up a call stack and then draw the return arrows.
2019 State of the Merchant Report
as in musical staves? good one!
Probably something like MS or another auto-immune disorder that could be microbiome and/or dopamine related. Could also be type 1 diabetes, RA, Crohn's, etc. Those would be my guess.
I believe that R was originally an implementation of S in Scheme, because of the restrictive commercial licensing of S and the desire to have a free-as-in-beer alternative that was S-compatible. This comes through in things like R's metaprogramming:

https://adv-r.hadley.nz/meta-big-picture.html#meta-big-pictu...
Occasionally you'll find old notes from some club that Newton was a member of or similar historic handwritten notes posted to this site and usually the handwriting is horrible, but also highly variable. Some people having nearly impenetrable script while other script looks beautiful.

One person with amazingly clear handwriting: Donald Knuth. I showed one of his handwritten notes to a colleague and they asked why he had typed it up in a Comic Sans derivative.
SMPSes are also used for DC/DC conversion (up or down). Especially with solar panels, they are mixed current/voltage-mode devices, so you want to load them at a specific voltage (which depends on the incident light) to maximize the power draw. (This is what a power optimizer does in a solar panel installation.)
I always thought recursion was very elegant, but until now I was using it to scan through folders on the file-system and that was about it.

Then I had an interesting problem at work where recursion seemed the most elegant solution ... but I quickly encountered errors that were not caught in a try catch block and made the program fail silently.

I'll admit my ignorance, but I thought a stackoverflow was a "feature" of low level programming languages such as C and C++ since I never encountered one in 10 years of coding in C#.

So it seems my love for recursion will have to remain mostly platonic and I'll have to use those unappealing loops for a while.
also gamblers

https://www.washingtonpost.com/news/innovations/wp/2017/07/2...

https://money.cnn.com/2015/02/27/technology/security/iran-ha...

https://www.ft.com/content/1bc41d30-ecdb-11e5-888e-2eadd5fbc...
I installed Edison on iOS somewhat recently. At the end of setting up my server info, there was a question asking if I approved them using/sharing my data. I tapped NO. My information was all deleted like I had just installed the app brand new. I thought it was a bug so I went through set up again. Selected NO again. Account info deleted. You can’t use the app without agreeing they can use your info/data.

I uninstalled.
This made me genuinely chuckle. I love economic theories applied to real life when they border on absurd because they assume everything is about maximizing utility.

I'll be sure to farm out all my spousal duties if I have better things to do and I'll report back on how that went.
Just because the other skeezy companies do it doesn’t legitimize it. That’s like saying colonialism was great because everyone was doing it
10,000 years? I think so. 1,000 years? Maaaaybe.
You'd love the work of Barbara Ehrenreich, who has erudite, anthropological, book-length rants about this sort of thing (e.g. https://www.amazon.com/Bright-sided-Relentless-Promotion-Pos...)
Learning Machine Lowered Their AWS Costs by 67% Using Pulumi
Totally, but the question becomes what caliber of scientist that is attracting.

I guess someone could work for a pittance for a few years then leverage an NSA position for absurdly higher pay at a government contractor doing the same thing.
When Japanese companies came to the West some of them tried to push the Japanese company culture into their subsidiaries without any modifications.

Starting workday with everyone standing in attention outside and singing company song when company flag was hoisted did not go well.
To me there’s nothing wrong with React, but everything wrong with people using it in inappropriate contexts.

For instance, I’ve seen a growing trend of people creating a whole DOM using React JSX so that they can use React’s server side rendering pipeline. <body> tag all the way down. But the actual reactive components make up about 30% of the page. So you’re wasting download and JS processing time (a serious concern on low end devices) hydrating a lot of elements that won’t even ever change. It’s stupid and it needs to stop.

But for fully interactive webapps, React is great.
What I hate is that you can’t even say no to Apple any more. It’s all this “not right now” or “maybe later” passive aggressive bollocks.

I just want a “no never” button.
A few weeks ago I was going through some stuff in our storage unit and found an originally very nice suitcase. It's of no value to me now because it has no wheels.

Imagine how much more difficult air travel would be without the wheels!
Right, ancaps argue for privatization of everything because that will eliminate externalities, but I see absolutely no way to prove that the carbon being pumped into the atmosphere is derived by some company/individual at some percentage, and then of course you don't actually have courts or a legal system but silly things like Dispute Resolution Organizations that are somehow supposed to enforce the decision of some court case across the globe?

It's all kind of insane.
It isn't really your company unless you own it. If its owners and the managers they employ don't listen to the workers they pay for actually having a clue that's their fault, not yours. Unless the company fails and you can't find another decent job it isn't your problem either.
Apparently there no longer is a universally accepted definition of peace time, or military personnel for that matter. See Omar Khadr fiasco for example.

https://en.wikipedia.org/wiki/Omar_Khadr
That is a really clever alternative to the volunteerism that is becoming very popular in companies -- hire others to do it. Then you're helping two groups of people.

Of course that doesn't do much good for the company's employees that don't wind up volunteering / doing the work, perhaps even increasing the separation the employees may feel toward the less-privileged. Service projects, mission trips, etc. can do a lot toward increasing humility, gratitude, and a spirit of giving in a more-privileged person. One could argue this is partly why companies want to do this sort of thing, so their employees grow (among other good / less-than-good reasons).

Perhaps a company could split the difference. Hire others to do the manual labor that day, but take half the company's team to the jobsite do the work with them. Then on another day you do the same with the other half. That way, all parties involved receive some benefit, and everybody is getting to meet a human being behind the statistics. Just a thought.

P.S. It's a certain level of irony when a party steps in to "help," when in reality they're taking away opportunity from parties more prepared for that sort of work, and are probably doing a worse job, aka building shoddily-constructed houses for the poor. This is especially a problem in developing countries, when an organization or church flies a bunch of inexperienced people into the country, brings in supplies, etc., and virtually takes over the available construction projects in an area because they're doing it for free. All of a sudden the local tradespeople have their businesses dry up, and they may not be able to recover -- and they're the ones that the area needs to continue the work afterwards! A far better method, in my opinion, is to get the locals involved and ask how you can help. Volunteerism is fantastic, but we should do it wisely. </soapbox>