skysight-inc/HackerNews huggingface dataset:
I'd suggest that `count(customers)` or `incrementScore(goodCustomers, delta)` are shorter, more readable, don't embed type information in the variable name (e.g. what happens if you realise your customers are actually a set, not a list), and don't end up embedding type information in your function name (e.g. what if I want to count employees).

Also, by not including semantic information in the variable, it also requires this to be conveyed everywhere else e.g. your function names. You rightly point out that hopefully there's tight context around this thing (e.g. it's only about customers) and maybe you can leave that out, but over time as code changes and grows in weird ways, this may not always hold.

What do you think?
How to Implement a Recommendation System with Deep Learning and PyTorch
From everything I'm seeing, it sounds like it may be over automated if anything. (sorry if I'm going against code of conduct, I'm not sure what the rules are on making the link-footnotey deal)

https://www.investopedia.com/news/teslas-hyperautomated-asse...
What incenses me is this recent notion that because programmers fail to change comment with the code change, they shouldn't even write comments. They should instead write the self-documenting code.

This doesn't make sense on so many levels. Only a recluse sitting in some dungeon who never dealt with people can come up with something so inane.

Edit:

I understand that that every developer should aspire to become someone who writes code that reads like a children's book, and they should. However, actively discouraging writing comments is so wrong on so many levels.

At the last place I worked, we used to have a small at-home coding test before interview and none of the young developers who successfully completed the test did any sort of code documentation or commenting. When I asked why, they would tell me that their code is self-documenting, which was utter nonsense.
I see you’ve automatically intuited his views on the Baloch nationalist struggle. Shabash, Electra aapka hua.
I wholeheartedly disagree, as do many others evidently. But thank you for pointing out how I must feel and then passing off your opinion as fact. Perhaps we have different definitions of sophisticated software, that's all.

"PS:" Since we're critiquing responses, your initial response should have never existed. It provided nothing of value to the conversation. Odd that you would provide assessment of other's comments... but thank you.
Another spin on this:

I grew up in Texas. As we all know, Texans are really proud of Texas. Part of this is because the schools spend 3x as much time teaching “Texas history” as they do teaching US history or world history (lol).

Almost all of what is called “Texas history” is simply propaganda from the early to mid 1800s. Truth is, Texas was essentially American Mexico (nearly 100% Spanish-speaking) until we found oil there in the late 1800s. It was only ever it’s own independent country because the US was not militarily strong at the time and couldn’t afford a war with Mexico — which would have been the result of the annexation of Texas.

But as a result of this state-mandated focus on “local history”, kids who come out of Texas schools are often woefully uneducated as to even Western European history. You just learn this concentrated version of American Exceptionalism that’s mandated by the board of education and has only a tenuous relationship to the truth.

As a side note, it’s really weird to learn history in the context of a place that’s only had meaningful levels of population for the last 50 years.
Each bug is stored independently and in particular independently of the source code, so older bugs could be archived or simply left on the git remote.

I don't see your point about the permission model.

You will have access permission for the code as you normally do for your git remote as well as an extra user for the web UI that will store bug edits as one of the "public" user with whatever external authentication system you want.
Similarly, a lot of kids in the floppy disk era lived with families that couldn't afford home computers and attended schools that didn't have them either.
> do you know who didn't know nothing about it?

They can blame their parents and grandparents who voted for stupid and corrupt politicians. You don't need to look very far.
>> It can, that's how GNOME works today. It's not how it generally works on X, though, and it's not very modular.

We don't need modular.

>>>BTW, I'm hoping for animated wallpaper on my desktop

>> This is possible with the layer shell protocol I'm talking about.

It's also possible by building the feature into the compositor. No new protocols or possible security issues needed. Simpler is better in most cases.
The most interesting statistic I found in this article is that nearly three times as many women as men have had a same sex encounter according to a 2016 survey of 10k US adults - 17% vs 6%.
There is a lot of historical data on it already. Also in markets much more similar to modern markets, but it’s important to keep in mind that things are different depending on the period.

Today the most valuable parts of a country isn’t raw materials or factories, but know-how, and know-how is a lot more mobile than any other resource.

Romans faced a different threat, in that their biggest resource was the materials and the factories, and because of that, they didn’t want one region to have access to all of it. So they made their weapons in a different place than their food source.

I don’t think protectionism or nationalism has ever really worked though. You mention the Roman Empire, but it thrived the most when it was the most inclusive, tolerating every region and culture as long as they all paid their taxes on time and accepted everyone else. One of the key reasons the Roman Empire originally was so tough on Christianity and Judaism was because the monotheisms didn’t accept others.

I think it’ll be alright though, America has been through worse than Trump and the alt-right.
Negotiating the NVM-Express Land Rush
Spending time to understand the author’s intent of some code is one of the hardest parts of reading code.

It’s like when you find a nil-guard in a function. You can’t truly refactor it until you know whether it was added defensively just-in-case or whether nils can still exist in the system at the function’s callsite, calling for further upstream examination.

There’s a certain hell in trying to follow a code base where every function is infected with ‘if (!arg) return’.
There are possibly plenty of cam websites that would integrate or create a new section for larger increase in audience and money.
NREL Set to Soar Higher with Eagle Supercomputer
What's the mean time of wine storage for a bottle of wine in a restaurant that delivers via DoorDash? A week? A month?

What is the cost of space and refrigeration for that time? 15 cents? 25 cents?

It's virtually nothing compared with the labour and machine costs of storing and turning ingredients into a meal.

And I'm genuinely curious (DoorDash isn't in my city) what proportion of restaurants that use DoorDash also have one or more sommeliers on site.
Argonne Leverages HPC and Machine Learning to Accelerate Science
I don't think that makes it simpler. I think that just makes a massive compositor which tries to please everyone and ends up pleasing no one, and being 10x the size it needs to be.
I had a similar device branded as a "Disney Sound Source"

https://en.m.wikipedia.org/wiki/Covox_Speech_Thing
I thought about something like this years ago - a machine that adjusts the weight dynamically based on the effort you are putting in, with the aim of squeezing out every last gram of effort even when you are fatigued.
Maybe a year in prison or so will save his life.
Is it? The public outcry against what these firms are doing is pretty loud. Members of Congress have expressed concern. Even Vox has published stories about Twitter suppressing content from conservative politicians (but no democrats). It has no effect.

Moreover how do you measure "public outcry"? The very point of censorship is to stop public outcry. If the media aren't writing stories and anyone who expresses concern is deemed to be supporting hate speech and banned, then it will look a lot like nobody cares even if many people do.
Why are only 50% of profits (not even revenue) redistributed to contributors? The content creators are the ones adding all of the value to your website.

Or am I reading it wrong and that is ON TOP of the revenue they get from engagement?

Either way, nice website.
Safety-first AI for autonomous data centre cooling and industrial control
I also get only a search bar in Chrome on an iphone.
Just curious, how does copyright work in this case? To summarize someone's book (especially if we are selling the summaries), don't we have to get permission from the book's authors?
Casual Games Promotion – What’s the Secret?
Stumbled upon this similar project: https://github.com/sit-fyi/issue-tracking yesterday. I thought it was an interesting way of going about it. It's build upon this idea of serverless information tracking. https://github.com/sit-fyi/sit
> It was a capitalist/neoliberal system that created the crisis

You don't seem to realize there is such thing as "personal responsibility". Nobody forced the Greeks to borrow way more money than they could ever hope to repay. The Greek government created its own problem and hoped to get away with it. There's no world where you can make it the fault of someone else.
You may be surprised to learn that the Koch Bros. and the Saudis do, in fact, receive enormous amounts of criticism for their behavior.

But I think with Musk the answer is that people respond extra harshly to perceive hypocrisy. The Kochs are almost cartoon corporate arch-villains and the Saudis are brutal theocrats. No one has any illusions that they are good people trying to help the world. Musk, however, has been presented as a Good Guy by both himself and a largely fawning press, set up as some kind of technology messiah. I think people therefore react strongly when, of course, this proves not to be true and that he's just another businessman, albeit one who does genuinely seem to want to help people.
Simplistic analysis aside, I'd consider winning your campaigns to be a hard requirement for "best" general and this excludes Napoleon, Lee, Rommel, etc.
Ruby is for idiots
I have a theory. I've been working in Ruby for a couple of years now and I've came into conclusion that this language only gets adopted because dumb people are able to write a semi-decent simple applications in it, but when it comes to doing anything serious and complex it just sucks compared to serious languages like Java or C#. The performance is a joke, there is no support at all, most libraries are buggy and the documentation is nonexistent. In a large application if you want to change something - good look there are is no static type checking - either you try to grep every use of what you are trying to change(but that in reality means nothing because of crazy amount of metaprogramming available in ruby) or just gamble. I got drawn to it simply because there is a massive job market for it where I live. I think managers have no idea about choosing development frameworks/languages thus this choice is left to the "market", where supply of idiots that are able to program in a dumbed-down language like Ruby is much greater than supply of smart people resulting. This often results in managers picking the framework based on this alone(or maybe an opinion of an idiot CTO somewhere that likes Ruby because he is also an idiot and has gained his position just due to job seniority).
Top 100 Cryptocurrencies Ranked by Risk-Adjusted Return
> You'd still have the problems of who watches the watchers

Could you expand on what you mean by this? If you remove the concept of material wealth (as a distinction between individuals), the cause for conflict is greatly reduced.

> the idea that some of us are more equal than others

I don't see how this would continue to cause conflicts once people's material needs and wants are all met. People tend to hate on exceptional people because they have access to more things.

> There is no Star Trek utopia.

Certainly not now, but it's a good goal to aim for.
I have always wanted something like this without having to move away from Git (to Fossil).

A bug tracker like this allows the bug history to be tracked and remain with the source code which is much better than keeping the bugs in a web based service because every 5 years you need to migrate it (Bugzilla to Trac to JIRA) and in every migration, some context or formatting is lost.

For something like this to be successful in enterprises, the tool should be management-friendly. Right now JIRA leads because it allows management to pull pretty reports out of it. Is there anything planned in git-bug to appease these management type people so that it has a good chance of taking off in the enterprise world too?
Perhaps their initial reason in shorting the stock was not inherently evil. But at this point they risk losing billions of dollars so their only incentive is to ensure the company fails.

I actually don't find their share price to be out of control at all. They have assets other companies would only dream of at this point. The data alone on miles driven is extremely valuable in the race to self driving cars. Their supercharger network is extremely impressive and growing every day. Not only do they build the best electric car, but they've built out the infrastructure that many analysts seem to just discount. Not unlike what Amazon did (and is still doing).
How many minutes would that highly responsive Windows XP install survive browsing the web before it's rendered useless by tons of malware?

How many 2005 era applications, print drivers, toolbars or screensavers, and whatever else was cool in 2005, can you install before the machine is as responsive as a 300 baud connection?

XP era was probably peak crapware with people having IE with 12 added toolbars and unusable everything. Often solved by buying a replacement machine because the old one got so slow.
That's because the government is corrupt. If the government actually let the banks fail and bailed out the citizens instead the bad banks would be gone, the citizens would have put the money into the economy again, and you'd have an economic miracle happening quickly, as it is common after such resets.

Government subsidized failure is one of the main reasons why communism never worked out. Bad companies need to fail and make way for more efficient or less stupid companies. Otherwise you end up with all your companies operating at roughly the same efficiency as the government (close to 0), because there's no incentive for them to avoid risk. They're rewarded either way.
Perhaps we could change the title to something less baity? I'm tempted to suggest "Military-themed toy data science project". But if there is more interest than that in there somewhere, then maybe a title that reflects whatever that may be?
Synchronizing Android audio playback
There is some math missing. I don't remember the name now, but when something has a 2:1 positive to negative ratio of votes but only has 3 votes, and another thing also has a 2:1 ratio but has 400 votes, it's not the same ratio.

My money is still on Hannibal and Alexander as being the best generals. They both fought and won battles against huge odds. And invented amazing tactics. You know that saying: "how much a smartphone costs? A few billion for the first one in research, and few hundred for all the others."
The only thing that I heard Napoleon invented was that defeat in detail thing. I invented that on my own when playing starcraft as a kid :/
I think napoleon truly took advantage of the idea of the republic where each man owned himself and had to serve for citizenship. But I'm no expert, so yeh: some math seems to be missing.
Programming sucks, I quit
> Loosers like to celebrate failures of people doing better than them.

This zero-sum mindset that you're a 'loser' to even suggest ways a company might be a great company, without you know, the founder being an asshole is dangerous and actually shuts down constructive criticism.
Your post is heavily downvoted because you are simply engaging in ad-hominem - presumably you ran out of arguments and know you can't win this one?

There is no such thing as a "soft science problem" for which "hard-science demonstrations" are invalid. That's a separation you've made up on the spot.

What I'm asking for isn't even science, I'm not even asking for data. I'm asking for anecdotes! That should be easy! Just show a bunch of cases of companies explicitly refusing to hire women or refusing to promote women because of their gender. You don't even have to show that amounts to the entire cause of the disparity. That's an absurdly low bar.
`i` vs `index` is whatever. `index` is better, but it's not like I'd bash someone for using `i`.

Using `list` is just bad. Your list (probably) holds a set of things that has a name. So name your list that. At the very least, name it after the type of things it's holding. Types are only declared once, but variable names are forever. Having to constantly look up the type of a variable because the programmer was too lazy to name the list of things as `things` instead of `list` is rather inconsiderate.

(Of course, there are times when you would use `list`. For instance, if you're writing a list sorting function, and you actually have zero context more than "yep, this thing is a list".)
Balkans used TV and newspapers.
Wasn't he hugely popular among democrats?
Pastafarianism is not a religion, Dutch court decides
Shameless plug: if you like this, I'm looking for a remote job. My email is on my Github profile and my resume is here: http://pellelatarte.fr/dl/resume.pdf .
With the exponential growth of the field, people with 15 years experience are relatively rare.
Assuming valid FIDO2/U2F implementation and same origin policy, this shouldn't be an issue. A browser will enforce that the APP-ID/domain name submitted to the token is the same as the origin requesting it. So in order to be tricked into signing into your bank, it would actually have to be your bank requesting the authentication. HTTPS is also a requirement.
Growing Black Holes Within Accretion Disks
Slack App: Simplified image resize workflow in slack
>But when I see the hate and vitriol heaped on him, I'm compelled to wonder just what kind of alternative universe people are wishing for.

>Do we actually want Tesla and SpaceX to fail?

>Would we rather that Musk had just never founded Tesla and SpaceX, that the world didn't have any companies doing what those companies are trying to do, and that we were left to be content with the previous status quo in the automotive and space industries?

This is exactly the sort of dishonest response to any criticism of Musk that makes it seem like you're talking to a cultist.

People criticizing Musk's treatment of workers, or the soundness of his business practices, or what have you, aren't praying for his failure or (even more bizarrely) against the very concept of Progress itself. It's utterly bizarre that Musk has been made into this untouchable deity, who is apparently the living incarnation of technology, by some people.

Musk isn't a god, he's just a businessman. He's done some good and has drive and ambition, but it's perfectly valid to analyze how he runs his businesses or conducts himself. Being a "Visionary" doesn't give him a free pass to abuse his workers or be an asshole, and if he can't operate without being that way then maybe he should be removed. However, if he can learn to rein himself in and address the concerns raised about his companies instead of throwing childish tantrums over every criticism, then he can be of great value to the world.
Pre-sleep treatment with galantamine stimulates lucid dreaming
If a book can be summarized in 10-15 minutes and the rest of the book was worthless "filler", I wonder whether or not that's the sort of book worth summarizing in the first place.
Thanks!! This next should will come with case and be more robust!
1) Learn to do as much in plain Python as possible, focus on lazy evaluation (itertools, yielding, ...), you'll be able to process gigabytes with a tiny memory footprint, deployment will be a breeze etc.

2) Get to know some of the basic Python data processing/science packages like pandas, numpy, scipy etc.

3) Get used to writing short shell scripts - they probably won't be a part of your pipeline, but data engineering, especially development, involves a lot of data prep that coreutils will help you with. Throw in a bit of jq and you'll handle a lot of prep work.

4) Only once you've gotten used to the above, look at Dask, PySpark, Airflow etc. It really depends on your use cases, but chances are you won't have to touch these technologies at all.

Bottom line - wait with the heavyweight tools, they might be needlessly powerful. Also, work closely with DevOps, because the deployment side of things will help you understand consequences of your actions.
And in both cases I'm sure we haven't even found the most silent virus there is.
It's bizarre and absurd to me that the public opinion even has a role in supporting corporate leaders, let alone a large one. Why should it influence Tesla and SpaceX whether or not the public supports him, apart from investing and buying the products? What matters is tangible results, not personal opinions of the masses.
The Discount Airline Model Is Coming for Europe’s Railways
This culture of startup is completely insane, what can possibly justify driving oneself to the limit of craziness? Revolutionize the world? How can you revolutionize anything when the method you are using are what created the problem in the first place (always more, always faster)?

It's ego, that's all it is, and it usually ends up very badly.
This officially displaces that comment about winning the Putnam as the best one in HN history.
Actually, a lot of elevators make most of their profit on moisture management. Being able to nail a 15% M on a 125 car train can bring in a lot of money. There are farmers who do dry their grain before they bring it in, but gas dryers are expensive.
No, it's not the same thing at all. I'm not saying doctors are causing overdoses. I was answering the previous comment putting the blame on pharma companies mainly, which is ridiculous because doctors are the only ones who are able to prescribe anything. The fact that they let themselves be corrupted by pharma companies is totally THEIR responsibility.
It's hard, as a straight male my whole life, to tell whether personal anti-homo feelings are completely natural or the result of an ingrained societal bias. I wonder if there's some sort of pyschological test for that.
While I can see the benefits, it’s hard to fathom why they are not looking at the cause more seriously and just accepting as a fait accompli and say it’s going to happen, here’s what you need to know.
I believe something like the model followed by Apache Software Foundation works well in favor of continuity of a project. They have an overseeing committee that one can request to add new committers or even transfer ownership of project if the existing committers are no longer maintaining the project.

But ASF does come with a lot of bureaucracy for creating a new project. GitHub makes creating new projects very simple but it also makes disapperance of ownership very likely. If there was a way to request GitHub to transfer ownership of a popular but unmaintained project to someone else, a lot of time and effort spent in creating new forks and new project resources could be avoided.
Elon Musk did not found Tesla. I do want Tesla to succeed, but facts are facts.