skysight-inc/HackerNews huggingface dataset:
I don't write many tests. I've found with experience and heavy linting you can avoid the vast majority of bugs. Not much point to spending a ton of time on tests if they hardly ever break for nontrivial reasons. My normal setup for java is:

Linters:
ErrorProne
Checkstyle
PMD
SpotBugs
Nullaway

All with highly customized settings

All warnings enabled on javac

Google-java-format to autoformat everything on build.

For runtime analysis:
LeakCanary to find memory leaks

Hibernate with interceptors to find long queries

Rest framework or gRPC with interceptors for long calls

Proxied JDBC connector to find long or N+1 queries

Opentracing/Zipkin integration to make debugging crazy stuff easier

NewRelic for projects where the $ makes sense

And I'm always on the lookout for more of these tools. In the long-run they save enormous amounts of time by preventing buggy code and keeping most shitty hacks out of the codebase.

Unlike tests, they don't break constantly and add more maintenance burden to the codebase. And it's less work, one time setup vs ~50% codebase bloat to add tests.

I see project leads call for more tests all the time to "fix" an unreliable codebase where there's zero linting. It won't save you from everything but I swear it's like 95% bug reduction. You should have most/all of these tools in place before you consider writing the first tests
> attitude of mild delusional distrust, often leaning towards conspiracy theories, anti-authoritarianism, etc

Almost every article here on hn is about how some entity is spying on you, hacking you, or selling your data.

Just because I'm paranoid, don't mean they're not after me.
Every popular ORM uses reflection to determine how to map fields to columns. For example, what type of date or money object to use.

I automagically map some postgres JSONB columns to a parsed object form. Looks just like a regular typed nested object.
Ask HN: Gamification of User Profile
I would like to know some examples of applying gamification in user profile building process.

Our company uses an internal product but the problem is, people are not completing their profiles, to think that we are already using it for almost a year.
Which brings up the interesting idea that qi may be phenomenologically "real", insomuch as it's something our brains percieve, even if it has no basis in physical "reality".
Open source as a term was popularized as a way to promote licenses that are not "viral" (aka requires release of modified versions of code). This is why many developers default to the BSD license and similar, despite how it allows others to come along and close up their work, like what Sony did with the PS4.
I believe cancer is the only segment where US actually can boast great results.

But thing is - not all medications are covered at the same level under American private insurances as well.
I so wish I hadn't read this.. My eyeballs are itching
We overpay for prescription drugs, but they're not even close to the biggest contributor to healthcare overspending. We could make all prescription drugs free and only reduce our costs by ~9%.
But isn't the point of the whole thing that you do not broadcast it until after you are done? So yes, it's obvious in hindsight, but the damage will be done.
I understand this, but don’t understand why millions of people are ok with the system. It has a lot more in common with a protection racket than with patient care in my view.
Thank you.

> focus on just packaging related features within GitLab

I'm curious what you mean by that?
This is the common defense, that the US is somehow responsible for an outsized amount of medical progress. Are there studies of such a thing? And do these studies distinguish between healthcare that leans elective vs necessary? Also, the US seems to excel at the very expensive end of life care.
If health insurance companies are the problem, why are administrative expenses --- which we overspend on, to be sure --- not the dominant factor in our health care expenses? They aren't; they're not even in the top 3.

If Medicare managed all of US health care and nothing else changed (that is, if we relied on Medicare for funding and kept the rest of the system we had intact), we'd reduce prices by something in the low teens percentage points. Families upset about the cost to insure their families on the ACA markets would not be mollified by that level of price relief.
> accidentally shipping it on iOS can be pretty dangerous

I read the same argument about GPLv2 in like 1994. To date, there remains no case law I'm aware of where a copyright holder "lost" anything by "accidentally" shipping GPL software. How many decades does it take for us to put this myth to rest?
We will not. USA is the global piggy bank.

Honestly - it is.
Judging by the comments, there are a lot of us here who already know this. So what are we going to do about it, now? The system is broken but there are a number of entrenched interests who want to keep it that way and an electorate willing to buy whatever they say.

I am short on hope.
I think that misses the point.

Germany pays doctors less, and can, because the switching cost is far higher. Canadians get to keep their first language (most of them do at least), stay on the same continent, which reduces travel to see old friends and extended family, and otherwise have fewer culture shocks to adjust to.
AT LAST.
Totally agree -- I wrote some similar thoughts elsewhere in the thread. It might just take some time for more developers to gain experience with the declarative/diff-based approach, to become comfortable with it.
The reason healthcare costs so much more in the US than other countries, is health insurance. When insurance pays for everything patients don't care how much the medical providers are charging, or whether they are providing unnecessary services. When somebody else (i.e., insurance) is paying, the individual consumer is encouraged to consume without any restraint. When all consumers behave this way, healthcare providers are able to charge sky-high prices and unnecessary services, which in turn causes insurance premiums to go up. (Look up "tragedy of the commons").

The solution is to make the consumer participate in driving costs down. One employer I know of has an excellent solution to the problem: Make employees pay 100% of the bill up to a certain amount, such as $6000. That's a large amount, but the employer then contributes a large amount to your Health Savings Account (HSA), such as $4000. This amount is for you to keep regardless of whether you have any health bills or not. (This money can be used for medical expenses only, but can be used any time, including after retirement). So the maximum you will spend out of pocket per year is $2000. How does this encourage the consumer to scrutinize and control medical expenditure? Because the first $6000 of medical spending in a year is "your money". This is money you'd be able to keep in your HSA if you didn't have any medical expenses. This gives the consumer a strong incentive to reduce costs, question charges, avoid unnecessary services, and so on.
I've thought about a similar arrangement, where a state could contract its entire health care system to a smart country.
Why do you care about accreditation? Do people ask you if a degree is accredited? Nobody’s ever asked me.
Sounds a little like nand2tetris: https://www.nand2tetris.org/
This came at the right time.

I was looking into LambCI but it only supports github.

I was using bitbucket for private repos.

Checkout: https://github.com/lambci/lambci/blob/master/README.md

It only supports github.

For my hobby projects i can't afford to host gitlab CI/Jenkins or pay for premium CI services.

Now, i can run my tests on Lambda,yay!
Health insurers and providers negotiate payments for healthcare. They sit on the opposite side of the table - insurers want the lowest price and providers want the highest price.

The only benefit an insurer would have from a higher price is if they have a monopoly position - no other insurer. Otherwise the other insurers will pay less, charge a lower premium and grab all the customers.
Show HN: Screen sharing support in Hello
Hello HN,

I launched Hello https://itshello.co few months back. https://news.ycombinator.com/item?id=18447957

Many requested me to add screen sharing to the service. Here it goes now. Screen sharing will be enabled in supported browsers. Check Firefox or MS Edge latest build. You can enable screen sharing in Chrome by enabling the "chrome://flags/#enable-experimental-web-platform-features".

Let me know your thoughts.

Thanks
Docker for Data Science using R: Part 3
Ok, but Americans overconsume health care and are prescribed more procedures than other countries --- that's a dominant factor in our health care costs, unlike prescription drugs and admin costs. How do insurers, which have a direct financial incentive not to fund care, own that problem?
>Even though eye beams do not exist in reality, and even though most people do not intellectually believe in them, they may exist as a part of the rich, implicit social model that we naturally apply to seeing agents.

It makes sense that people would attempt to reconstruct a model or theory of mind from scant cues based on other's gazes. In many contexts, such as encountering strangers, you don't have anything else to work with, and so the importance is on leveraging what you can.

It's also something that even if eye beams or extramissons have no empirical reality, the concept of them can still be utilized in representations of other's minds. It reminds me of Zizek's interest in the "reality of the virtual" that is, even things that aren't empirically real but are merely conceived can have real world impacts.
You can pay for private care for things that aren't covered by the public system.
Top 7 Android Apps Written in Kotlin You Should Know
There isn't a difference nowadays as far as I know, but used to have a computer that refused to boot off a USB. Also, with USBs, you can have a "persistent" install, which lets you keep things, but you have to be careful, because flash memory will die after a certain number of writes.
The problem I have with Java is that its a tremendous amount of code to do tiny things. There is a cognitive load that comes from reading. The more code you have to read to perform the equivalent action the more tired you get and the more opportunity you have for errors.

There is something precious to being able to do more with substantially less code, which is why I avoid OOP all together. You can't do that in Java.
I tried python, bash and even C, none of them update /proc/self/comm when argv[0] is updated:

dualbus@system76-pc:~$ cat argv0.c
#include <stdio.h>
#include <string.h>
int main(int argc, char **argv) {
FILE *fp;
char buf[256]; // XXX :-)
strcpy(argv[0], "XYZ");
//puts(argv[0]);
fp = fopen("/proc/self/comm", "r");
fread(&buf, 1, 256, fp);
buf[255] = '\0';
puts(buf);
}
dualbus@system76-pc:~$ gcc -o argv0 argv0.c -Wall
dualbus@system76-pc:~$ ./argv0
argv0

dualbus@system76-pc:~$ python -c 'import sys; sys.argv[0] = "XYZ"; print(open("/proc/self/comm").read())'
python

dualbus@system76-pc:~$ ~/src/gnu/bash/bash -c 'BASH_ARGV0="XYZ"; cat /proc/$BASHPID/comm'
bash

Furthermore, https://github.com/torvalds/linux/blob/master/Documentation/... says:

> 3.6 /proc/<pid>/comm & /proc/<pid>/task/<tid>/comm
> --------------------------------------------------------
> These files provide a method to access a tasks comm value. It also allows for
> a task to set its own or one of its thread siblings comm value. The comm value
> is limited in size compared to the cmdline value, so writing anything longer
> then the kernel's TASK_COMM_LEN (currently 16 chars) will result in a truncated
> comm value.

Which works as advertised:

dualbus@system76-pc:~$ ~/src/gnu/bash/bash -c 'echo -n XYZ > /proc/$BASHPID/comm; ps -p $BASHPID'
PID TTY TIME CMD
28797 pts/6 00:00:00 XYZ

Can you show me an example, in any language, where updating argv[0] causes ps (or /proc/self/comm) to show the updated value?

EDIT: formatting.

EDIT2: I stand corrected, see willglynn's comment.
Propaganda and lobbying by the insurance companies ensure that the will of the people doesn't turn against them.
Are those the list prices, or the negotiated prices the providers pay insurers? From my understanding and in my limited experience there is virtually no relationship between the two, and, in reality, even the uninsured don't end up paying list.
Typical salesperson, he lies in his presentation. Says he just sold some to Elon Musk and this is his last one available. Do you want your salesperson misleading?
My memory is pretty hazy, but I believe GitLab began as a simple Git hosting program for people to be able to run on their own servers, and it started without serious intent to build a money-making product. BitBucket Server didn't exist yet (and even today, it's just Atlassian Stash renamed, IIRC.)

When they went to launch GitLab.com, they probably did more product research at that point, and that's probably where the disappointment came in.

I think GitLab's approach is pretty cool, and software toward developers really ought to be developed in this manner: start with the problem, then work on the product. No point in trying to build a product for a problem you can't solve. GitLab today is certainly a better product for being heavily oriented around solving developer's problems; for example, having GitLab CI built-in and even usable for free even on private repositories on GitLab.com is incredible, and it's one of those things that are going to continue to be enticing as GitHub increases the competition.
Nope. He ordered MRI immediately with the XRay... and he didn't even look at it, as I was informed by the assistant.

I checked if he needed to do that with my other doctor - he said that only one was needed, not the other.
On FreeBSD, as I recall, they don't want any GPL'd code in the base system, simply because the ideological goal is to have everything under BSDL. It's not that it affects other bits of the system though.
What the author of this tweet doesn’t mention is the reliability of the blue line between downtown Chicago and ORD is absolute garbage. You can routinely be stuck on a train for 45-60 minutes at a time because of technical difficulties.

https://www.nbcchicago.com/investigations/why-are-cta-trains...

> Responding to an open records request, the CTA said between January of 2017 to May 2018, there were 471 disruptions of 10 minutes or longer. Of those 469 breakdowns, 162 were on the Blue Line. The Red Line was second with 94, followed by the Green with 55.

> We are running, right now, as many trains as possible, on the O’Hare branch of the Blue Line during the am/pm rush,” he says. “We are running as many trains as possible, and we are running them as closely together, as we can.”

If Boring Co can offer consistently reliable 12 minute trips that parallel the Blue Line for $20, sign me up. Cheaper than a Lyft, but more reliable than what the CTA can deliver.

TLDR Edgy Chicago journalist uses baseless complaints to push mediocre podcast on Twitter and sidestep that Chicago politics and no will to fix systemic city level financial issues are the core issue.
Man, the GitLab astroturfing in HackerNews is getting annoying.
That's a solution looking for a problem in JS. You're thinking in types instead of in terms of a dynamic language.

You basically HAVE to do this in Java otherwise your program won't work. In JS, you can look everything over at runtime and dispatch from there (made much easier because first-class functions and closures are a thing).
Why would I be excited about a proposal to totally restructure an industry that every American comes into contact with and that represents something approaching 20% of our economy just for the prospect of a ten percent savings? Take any family complaining today about the cost of a Silver plan on an ACA exchange, offer them a 10% savings, and see if they're OK with what they're paying.
"higher unemployment led to higher skills requirements, in a probably-causal way."

Can you explain the causal bit?

The sneaky detail that stands out to me is that this is the 'share' or '%' of jobs with high skills went down, but not necessarily the absolute number of high skills jobs.

So during a recession, there are not a lot of low-end jobs available. As things warm up, more Ops. needed, so more jobs.

But the 'long term view' R&D jobs may have always been there in absolute terms. They might have only changed in relative terms because of the number of regular jobs going up and down.

It implies more causality between 'regular jobs' and 'the economy' but maybe less so between 'high end jobs' and 'the economy'.

Ergo, the 'skills' gap still exists - companies still want high end folks and can't find them. Which makes sense as well because I believe one could crudely say there is a 'skills gap' - anyone hiring high-end people can feel this.
If only we had a currency that was immune to 51% attacks because a government was willing to use force to preserve its value, and therefore doesn't need a massive use of energy for its proof of work.
> UK Open University

As a person that has two math degrees and knows someone that received their PhD in a CS/Math/Logic area (i.e. PL) I couldn't +1 this recommendation enough. That person is now a professor at a college in the UK but studied while elsewhere in the EU.

The OP stated:

>I am looking for suggestions on online mathematics degree options

The Open University is a very valid choice for this.
For historical context, there were of course similar things that eixsted before protobufs. Some were even widely standardized (eg ASN.1). Protobufs apparently was a kind of reboot of these concepts inside Google.
Some application still requires bash, like wireguard
Fair enough, but installing Tails onto your hardware is against the spirit of Tails.

https://tails.boum.org/support/faq/index.en.html#index6h2
Fortune 500 companies already frequently self-insure their employees.
My employer, a financial services firm in New York, blocks both gitlab and bitbucket due to their free private repos. Even though they allowed github until now, I am worried that they will soon start blocking that as well! :(
No it's not an unreasonable charge.
The amount I had to go through and the necessity of it was the question.

I got charged with two things - XRay and MRI. One was enough, apparently... And I wasn't in any critical condition to an XRay immediately.
It's still just supply and demand. Sexier products draw more candidates. The only reason you're taking 40% less to work on something cool is because if you don't, someone else will.

Most people eventually have to decide whether they want to make 150k writing CRUD apps or 90k writing algorithms.
I feel that until a car can ascertain that it’s in a construction zone using only vision (like you and I do) we’ll never achieve what we need. Any autonomous system that relies on (or even incorporates) stored databases of any kind is implicitly worse than a teenage first time driver and should therefore not be considered acceptable.
We keep adding ways, which is exactly the opposite of sanctioning a single approach.
Awesome, thank you! This is super useful. I stand corrected.
https://notipdoordash.com
A lot, because it's hard to derive meaningful conclusions from something that's used so relatively little precisely because of licensing concerns.

Anyway, with v2, the concerns were more vague - you'd have to accidentally link something GPLv2. With v3, even just shipping the binary signed with a private key on a platform that requires said key to load it, is enough to potentially force disclosure of that key (and that is by design of GPLv3 - it wants to kill the TiVo model).
> Again, no, it isn't. You seem to be severely underestimating the systemic impact of cache misses if you are considering them a "small" impact to efficiency.

You are severely overestimating the impact of cache misses if you think that all indirection must be eliminated and any use of pImpls at all is always wrong, as you seem to be implying.

> pImpls are the sort of thing you use at API boundaries to avoid leaking implementation details into users, but that's trading efficiency & complexity for a more stable API boundary. Scattering them throughout your code base would be like compiling with -O0.

It's a good thing that I never advocated using them everywhere then. Where did you read me saying this?

> Or, alternatively, using pImpls to optimize for compile time is a premature optimization.

Only if this is done by default, which I have not advocated for anywhere in this thread. I called it a tool in the toolbox. I mentioned it as one of several possibilities. Somehow you have translated this into "use pImpls everywhere", which is a strawman.
Are the reviews entirely based on paperwork? It seems like the human element of the claimant would be a confounding variable.

If they know they've been rejected, they'll behave differently for the 'redundant' review.

If they don't know they've been rejected, they'll be annoyed at being asked to attend identical meetings that are in their view unnecessary.
Relationship  Hero (YC S17) Is Hiring Full-Time Remote Coaches
The way things are going soon Top 10 PoW will become targets and ultimately BTC.

BTC is hard to attack and not because it's got a ton of hashpower but because it's hard to get paid in any other crypto (if/when payout for asking a successful attack on BTC might be more than USD 10 mil).
I'm glad they called out the 737 crash that was attributed to automation paradox. That's a real danger here, and I hope they do something about it.
You're never going to get skilled if you don't learn how to actually drive the car in the first place. A car that 100% sticks to the road with no slip is not as quick as a car that is being pushed to the point of carrying a slight slip angle through corners, and you're not going to find out how that works with constant intervention. It is about carrying speed through corners, not negotiating them with the help of some electronic aids and pinning the gas down the straights.
How are the diets vastly different when for example macro-nutrients are considered?
If it's doing just power charging it should be much simpler, no? Maybe there just aren't any USB-C charger-only microcontrollers out there? Or perhaps the protocol negotiation happens at such fast speed that you have no choice but to use a fairly fast microcontroller?
> universal needs

Not everyone agrees Person A's needs should be paid for by other people. The system described (that pays for everyone, but treats people that can afford it better) may be a reasonable compromise to those people.
Well, yes you can do that for some theoretical knowledge, but it wouldn't be very practical on the job because indeed, they are not the same jobs at all. The role of nurses is to handle the expected as efficiently as possible. The job of docs is to handle anything unexpected. That is why a wide education is necessary.

You may also be surprised by the fact that specialist nurses are well paid and would often never want to "upgrade" to being a doc, precisely be cause of the additional constraints. Finally, the ego of specialist nurses rivals that of docs, and they are even stronger unionized.
I don't think it's really possible to keep the same quality of care for cheaper by changing education because armies of residents and fellows are effectively doing slave labor and you'd have trouble finding cheaper and more efficient than a highly-trained slave. In my opinion, well applied technology is the only long term solution.
That's great but you haven't provided any specific examples.

Ballmer did not 'squeeze lemons' - he multiplied the company by like 4x. The 'cloud' FYI was a big new thing. All MS products have evolved quite a lot and are not the 'same products'.

What new products / initiatives has Satya introduced that are lining up to be the future of MS? That will replace the core products sometime?
It's definitely a white collar answer. Try to sell someone a hammer this way and I imagine you'll be laughed out of the workshop.