skysight-inc/HackerNews huggingface dataset:
I was on a team that needed to write tests to deploy their app on an "enterprise CRM" that you probably all have heard of. You couldn't upload the app for distribution unless you had X% test coverage. Of course, nobody wants to write all these tests.

We had a few real tests. But most of our tests would call methods and check for != null. This worked great, got us up past 70% coverage with little effort. Supposedly these apps went through a "review" of some sort before they were released to the public. Oddly, our test methodology was never an issue.
> I believe this will continue and I fully expect that at some point the United States will deem those born in mainland China, regardless of current citizenship, to be a security risk and they won't be allowed to work in areas of national security or national interest.

I think this kind of policy is already in practice, maybe not in the federal government but in some highly sensitive private business.

I heard, forgot the source, business like Lockheed martin has secret programs won’t hire you if your parents are born in mainland China. I found it reasonable, because the CCP will definitely take your remaining family members in China as hostages to make you do things.
It may have been rational to pre-emptively murder millions of people by dropping nuclear bombs on them? That's quite a claim. We should be eternally thankful that the political leaders of the time had the good sense not to listen to certain geniuses.
I don't think this is the reason.

I think it might be more to do with a woman coming across some weird men in the woods and being unable to lean on civilisation to keep the men from being psychologically or physically abusive.

The danger isn't nature. That's the same for men and women

(though you might argue a case that women are more susceptible to hypothermia... but I highly doubt anyone thinks about that).

This is going to be controversial but I think the reality is that society caters to women a bit more than men; so the woods and going back to nature, for men, is an escape. But for women (and speaking very generally) it's more a feeling of removing of safety and comfort.
Less violence for now. Colonialism didn't start off with armies, it too started off with trade. Only later forms of colonialism when with war from the get go.
Aviation is very very much driven by the price of fuel. Pretty much the whole drive towards modernizing airliners is reducing the fuel cost.

Adding a tax on the carbon content of fuels will push that even harder.
So you don't have a specific product set or even example bug to point to? I've never had an issue getting critical security fixes out of Cisco or Arista or Aruba, and given the fact you've completely ignored my question with more vague insinuations I'll assume you're making it up as you go.

https://www.nrtoday.com/print_only/huawei-ban-threatens-wire...

https://www.nytimes.com/2019/05/25/technology/huawei-rural-w...

Etc. Not a mention of features or bug fixes. It's all about price.
The protests failed to invigorate change, not unlike anti mask protests today, because the message wasn't persuasive enough to sufficiently many people.

That's democracy. It's not great, but it's better than the alternatives.
A team getting to 100% test coverage and enforcing it feels like an application of Goodhart's Law.

When a measure becomes a target, it ceases to be a good measure.

At my last job, we required 100% code coverage for most code, and the other parts of the code (in ideality) were marked with ignores that were well-thought-through.

In practice, I ended up writing a bunch of test cases only to hit the if blocks. It didn't mean that the tests I wrote were any good. I'm still a fan of 100% test coverage, but with some leeway for what needs to be ignored, and what needs to be tested later (non-critical paths, if you have a deadline, perhaps)
Like most others here in the comments, I find the results not particularly controversial. Pretty easy to imagine scenarios where lines of code are run, but the tests themselves are suboptimal or incomplete.

As an aside— I've often mused at to whether theres a more useful multivariate (but still coarse) measure that could combine coverage with cyclomatic complexity and number of tests/assertions. Seems like it would be incrementally better than just coverage alone.
I think the comment you replied to said pretty much that - both bad, but one is worse
Hillel Wayne discussed the paucity of decent research in software engineering land: https://buttondown.email/hillelwayne/archive/i-ing-hate-scie... (discussion: https://news.ycombinator.com/item?id=27892615)
It’s hard to do test-first TDD “mindlessly” because writing a test usually forces you to think in terms of the specification of the behavior you’re about to implement.
I worked in games for a few years. We constantly got DoS'd. Probably twice a week. Luckily our content was extremely cachable, so once it happened a few times we just black holed stuff through Fastly. The attacks weren't super sophisticated, mostly just hitting a public endpoint a ton of times or trying to crawl API endpoints.
TL;DR - we've been doing this for 12 years and we're tired and want to do something else. These guys gave us enough money to do that.

Interesting that there are at least three 'Medialab' brands, one is the management platform for healthcare, one is a department at MIT, and then there is Medialab the holding company (https://www.medialab.la/) which bought Genius (YC S11) too.

I may be too cynical because I'm guessing they are going to give it the 'Sourceforge' treatment.
>How much does bitfinex support the price at $1 on exchanges?

An open question. Several attorneys general have ongoing investigations regarding the tether peg.

A really grim and cynical person might make the case that exchanges want something like tether to exist, and are incentivized to fudge the public-facing numbers regarding tether trade volume and its order book.
IMGZ created this, IMGZ owns the copyright. IMGZ has a will of its own.
A poor person has the exact same opportunity to by a $100k plus Tesla in 2010? Surely you can’t be serious with this argument.
Because then you could at least see the URL you're going to instead of the redirect the site is going to use to track you anyway.

This attribute doesn't do anything shady, and would do the opposite if it were actually used. The whole idea is to be able to provide the tracking data the site will get one way or the other, but with the ping attribute, you can do it without mangling the URLs.
Imagine if Europe got hit with a ice storm
I think the most common approach to convert SDF to polygons is called 'marching cubes' and it yields triangles and quads, but I guess you can always 'convex' (halve) the quads afterwards to get 100% triangles. It will most probably not be as neat and tidy as the mesh in the article though!

If you can identify lots of locations of points on the isosurface, it could probably be fairly easily triangulated in this case too since a rounded cube is a fairly simple and convex shape.. but the result will also be inherently noisy I think.

Guess it's all about the use case eh?
It’s not a problem here, but if the type doesn’t guarantee reference equality for equal value, you’d also need a test to differentiate between

a == b

And (in Java)

a.equals(b)

In order to catch misguided refactorings. (I’ve introduced bugs this way before I learned that == can give a false positive for strings if the strings are interned)
The problem is that we don't know how, how, or why (although, of course, the near-nultimate "why" is likely profit.)

Facebook is a publicly traded company. It may have novel negative externalities, but we're largely comfortable with its impact: maximizing shareholder value. When Facebook manipulates us, we feel we can hold it accountable as an institution. We're wrong, but we're complacent. With these mystery accounts, we're out of our depth. We do not know "cui bono," and that's eerie.
The internment of Japanese Americans is actually a pretty good example. As far as the outcome of events is concerned, it doesn't matter whether any of them actually were traitors (as far as I know there were no significant cases), it only matters whether they were depicted as traitors by politicians eager to stoke public xenophobia.
In every dictionary I've found, including wikipedia, "eminent domain" is either a synonym for, or
defined in terms of, expropriation:
https://en.m.wikipedia.org/wiki/Eminent_domain

Furthermore, let's not act like these massive publicly traded companies are people. It's not like voters are deciding to take away some grannies appartment that she rents out as her sole source of income/rent.

We're talking about the companies that have been over and over shown to defraud the granny for fees of services that they don't provide (like snow removal when there is no snow, or window cleaning when there are no windows), colluding to arbitrarily inflate housing prices, and engage in unlawful behaviour to prevent tennants from cancelling contracts.

In german law there is no fundamental right to profit at the stock exchanges. There is however a right to live in dignity. And I don't know about you, but not being scammed for the place that I live in, is a pretty dignifying thing.
It takes a while for fraud to come to light. I'm not for a second suggesting Neumann is a fraud, but I would guess that the people who conflate him with Holmes think (rightly or wrongly) that the WeWork saga had at least some high-level hallmarks of fraud.
There's nothing shocking about that many representatives voting in favor of something that had over two thirds public support. In fact, it looks appropriate.

As for the media, the foreign and public press weren't so in favor. But I'll be the last to suggest that American media isn't terrible. It is.
Great responses. Thank you. Subtext does seem like an interesting attempt to expand the kinds of problems spreadsheets can solve.
> The NSA has certain restrictions on spying on US citizens that, say, Germany or Israel do not. So the NSA can get counterparts to do their dirty work and in turn the NSA does their dirty work.

The Snowden revelations made it clear that those regulations are toothless, unenforced, and effectively just propaganda.
I mean, this is like saying a Kindle isn't worth it because you can only read books on it. Sure, if you don't value the fact that it is digital (almost inifite capacity, delete without making a mess, backup to computer, send PDFs of the notes that you created, etc.) it's "not more than a notebook" but then you really missed the point of the device...
That's a good article, and helpful reminder to learn from the past rather than letting history repeat itself!

"McCallum gained control by giving up control, delegating authority to managers who could use information in real time"

"targeted metrics had to be reported back to its board of directors"

Sounds like cache-RAM-disk in a computer, but being applied to a business Process.

The other suggestion I'm experimenting with for encouraging constructive Process (making code review less scary) is saying "thank you" for the 730 good lines, and making suggestions for the 19 lines to change. It's destructive to just say "these are bad", but through suggestions and humility, we can learn from each other. In the 1854 train network, I guess that would be each train being willing to yield to others. And for us as passengers, saying "thank you" to the conductor or bus driver.
Sorry, was confusing.

Ads cost a lot more. People who rent space get a lot less.
Or ipfs if your machine is often online
Right, it's not a 'side project' type of vendor, more of an Imgur scale vendor. I love Hetzner, I just wish they had more locations than Germany and Finland, which are practically the same in terms of latency if you/your users are from Asia or the Americas.
Everyone on the Internet is a bot.

Even me.

Even you.
Please read the comment before replying. I said it suggests a difference, which is very different from proclaiming that there's definitely one. And I said 98%, not 99.99%.

The 50x difference is a starting point, not a declaration that there's no other factors.
Nothing good ever lasts. Well, then... time to archive the links for future find-and-replace, and to offload everything I have there (luckily, not much, I learned my lesson on imageshack.us once upon a yesteryear).
I don't buy that. For example Ramana Maharshi was awakened and he self-realized suddenly without following any path. There were awakened people before Buddha, and there are awakened people today without having followed any path.

The idea that only Buddhism holds the keys to self-realization is dangerous, frankly. The Catholic Church want you to believe the same thing, that only the Papal hierarchy can direct you to God.
With hindsight today, the internet was indeed a mistake. Any good it did is compounded by so much bad. Honestly the advent of the iPhone/smartphones really accelerated this toxic nature. Facebook/twitter/instagram/etc are probably the biggest drivers of human misery today.
Yeah, but apparently I go to much more ethical gyms.
That was my experience after getting an ipad pro. I imagined all the great architecture drawings and design notes I will take on it but in reality typing in Notion is faster and more organised + tools like PlantUML are just plain better for creating diagrams because you don't have to worry about arranging your boxes and arrows in space.
Designed to save the world. Good Lord the self congratulatory massive egos of the rich who as a whole would never exist with same tax schemes and the media they own are quite a thing.
This is my last reply. I'm done with this conversation, we've gone way too far from the initial discussion, and we're too far off on what "convincing" evidence is, or what is self-evident, for a productive text-based discussion.

> In particular, note you said that the Cato makes the argument that those making minimum wage are not "actually poor." In fact they make no such claim that there are not poor working a minimum wage job. Yours was a straw man.

I said "people making current minimum wage, or close to minimum wage, are not actually poor, or won't be in the long-term," they said "a lot of people who earn the federal minimum wage or just above it are not poor, or will not be poor in the longer term." I guess, for some reason, you assume the difference is "people" vs. "a lot of people," and that I therefore mean "all people." Your assumption does not make it a straw man.

> Only if you're oblivious to the fact it tells you exactly what happened to the individuals, which is that they were forced to either lose their job or compete for hours with the established staff at other locations.

This is an assumption. The ones that transfer to other locations now receive hazard pay, and, those unemployed workers potentially make hazard pay at new jobs, both of those are potential net positives... The article does, in fact, not discuss actual worker outcomes. Once again, even in the oversimplified world where jobs are simply eliminated, job loss is not equivalent to unemployment.

> Were you looking for a [...] paper?

Preferably, yes. "Concrete examples" are also called "anecdotes," and are not at all convincing of large-scale, job market-wide, patterns or effects.

> One example of those who end up engaging in independent contractor / self employment for less than minimum wage is gig workers, who often earn less than minimum wage and yet voluntarily choose to do so anyway [1]. Presumably if jobs numerous enough for the number of people working these gig jobs existed that offered them employment protections, many would choose that over independent contractor status where they are on their own if anything goes wrong.

That is another assumption. You "presume" that gig workers would choose non-gig work if given the option... With no actual evidence of that being the case at a meaningful level. People work "gig" jobs (e.g. drive for Lyft) for extremely varied reasons (some even do so in addition to other jobs, in fact, your source says most Uber drives do this).
The term Metaverse was coined in 1992 by Neil Stephenson, in the sci-fi novel Snow Crash. The fictional Metaverse is basically a networked version of the the sci-fi Holodeck from Star Trek, which first appeared in an episode aired in 1974.

There is no way at all that Facebook is anywhere near having VR capabilities like the Holodeck in Star Trek, let alone the Metaverse in Snow Crash. So I don't understand what their pitch is. I like that they're spending $50 million working on the problem, but I don't think that the Oculus Rift is the going to turn into a Holodeck, or Facebook into the Metaverse, with just $50 million and 3-5 years.
> Replace "China" with "The USA" and "Eastern" with "Western" and the other way around and not much of meaning or value would be lost.

> > This goes beyond classified material and extends to China cheating on trade including, but not limited to, the wholesale theft of intellectual property through "partnerships" and other means as the price Western companies pay for "access" to the Chinese market.

> > Why the issue with those born in mainland China? Because China doesn't allow dual-citizenship. Those that become naturalized in the United States, for example, lose their Chinese citizenship. This then becomes a carrot the CCP can dangle in front of those wishing to return: restoration of citizenship. That is, of course, if you happen to have a particular set of knowledge or skills deemed important to China.

Those things aren't true of the US though.
It gets crazy with demands for 100% test coverage, in languages where you're encouraged to write compile-time logic, macros, setup-dependent minor details, time bombs, asserts which throw compiler errors when you misconfigure, etc.
> It’s hard to do test-first TDD “mindlessly” because writing a test usually forces you to think in terms of the specification of the behavior you’re about to implement.

Tests are code. Code can be sloppy, fallible, useless. Writing a consumer before you write a provider doesn't make either more robust, just the point at which they meet more clear. You can certainly write a test that uses a function, but the test doesn't actually test anything at all, just that the function exists. aka "mindless TDD".
One of the reasons to tax CO2 specifically instead of some other tax (e.g. income tax) is that it pushes alternatives.

If there is a CO2-heavy option that's 10% cheaper than the "green" option, introducing the tax will suddenly make the "green" option the cheaper one.

This could be using an electric truck to get food to the store, it could be using a heat pump instead of an oil furnace, it could be the locally grown potatoes instead of potatoes that were trucked over a long distance from a place with cheaper labor, etc.

Most of the savings won't happen because the millionaire flies less, they will be made because someone, somewhere along the supply chain makes a different decision because the environmentally friendlier thing is now cheaper. That's the beauty of it - it's about fixing the emissions where the best effect can be achieved with the smallest investment, not about taking away people's ability to consume and live an enjoyable life.
Because the culture is somehow to post (and even up-vote) vacuous comments to begin with.

Almost always when I find myself in Reddit comments because something's interesting I wish it were HN, and am shocked a lot of the time that people have time for such drivel. Duolingo too. Yes. Me too. Haha. Nice work buddy. Looks good. No. This is lame. Lol. Why? What's the point?

But then, we can take this further, there's more thought in our comments, and on HN in general, but ultimately not any 'point' either. (Obviously there's the occasional hugely noteworthy comment on HN, but then I'm sure there is on Reddit too, albeit fewer pro rata.)
Maybe that's why he left Apple. I would find it hard to look at an earlier product like the iMac G3 and call it devoid of emotion. But there are likely fewer opportunities to put a new spin on "rectangular sheet of glass", which is what iMac, iPhone, and iPad are now.
Now, I've never worked at a big company with lots of developers, but testing seems dramatically overvalued. My company currently employs zero testing (meaning zero automated tests). Anything that could negatively impact the company if it blew up is examined pretty closely and then set loose. Occasionally things break.

Our company serves tens of millions of users monthly. We have bugs, we fix them as needed. We're not writing banking software so the risk profile is pretty small, but I think more companies fall into this category than test engineers would have you believe.

I'd give myself 2 more years in the industry if I had to do TDD, or anything else that strives for even moderate coverage.
Creator of WikiScanner exposed CIA edits of Wikipedia, Griffith pleads guilty
USD doesn’t split into two different competing currencies when a transaction has to be reversed, so I think the ethereum solution is clearly worse.
I was but I'd forgotten, thanks for reminding me! Also, Cloudflare now have a very nice image resizing product which I'd probably use if IMGZ didn't need to resize ten images per year.

I'm not sure they're ready for my kind of volume yet.
A guy made a HN post about his own tweet.
Crypto Packaged Goods
I'm fine with the line oriented nature of git. I wouldn't want to be confronted with problems due to the constantly shifting nature of languages vs whatever plugin exists for them on git. Even C is constantly changing.
Whoa. Good hustle!
The whisper founders threatened to default on the debt they raised from SVB, then used inside money to buy it at cents on the dollar. because debt is senior to equity, they then wiped out the equity raised and kicked sequoia, shasta, and lightspeed off the board. then raised PE to fund a series of purchases of apps such as kik, and a lot of android apps with churned users with always-on location permissions turned on. They then used that data to build a small ad network.
That sounds like a lot of trust to put on someone in a “trustless” system
I was going to be worried if mutation testing wasn't mentioned here. Is a great way to test the effectiveness of your tests at catching the common mistakes people make in code.

That is, a mutation suit doesn't test your code, per se. It tests your test suit.
in java the method that takes two `int`s would still use ==.
java has value types which don't need `equals`.
Yes, they are a cryptocurrency exchange, how corrupt and inept can they possibly be?
While it may not be a literal blood pact with the government, there have been numerous accounts of Chinese (ex)-citizens being coerced into taking actions under the threat of harm to their family and relatives that remain on the main-land.

Blood pact is a poor choice of wording, but not too far off from the reality. Perhaps blood-line persuasion is better?
Wonder if this: https://www.bbc.com/news/world-asia-china-58026038 (China nuclear: Taishan reactor shut down over damaged fuel rods) is also a factor......
Ah I see, I read "influence" as a noun when you meant it as a verb. Very ambiguous though.
Let's say I mistype 'a == b' as 'a <= b' when writing fn (the purpose of tests being to validate that the code is correct, after all). The test values of fn(1, 1), and fn(1, 0) will still display "equal" and "not", even when the function is obviously incorrect.

Let's add 1 to a before the equality comparison in order to meet a new business requirement. fn(1, 1) still works, but does fn(maxint, maxint)? Or does it suddenly throw an exception (or worse, silently roll over to minint)?
Many companies had instant messaging systems before regular 1 on 1 meetings. Email too.
No, in the context of this thread we are storing programs as punch cards, which are not meant to be read or maintained by humans. They are the executable form of the software, that's all.
Ahaha you fell right into my trap!