skysight-inc/HackerNews huggingface dataset:
I wouldn't say that UOM are uncontentious, things can get dicey around reference units and precision for instance, or the combinatorial explosion of composite units.
Not quite the same, but available on nuget- 'fluentAssertions' gives you something akin to this. I've had decent success with having our juniors use it vs less verbose assertion libraries. I don't know about evaluating individual expressions in a line separately, but it does give you clean syntax and similar error messages that are very readable-

"GetProductPage().GetProductPrice().Should().Be().LessThan(...)"
Tbh, one of the differences between xUnit and nUnit, is the way generated test cases work, like specifying test cases in an xml file.
nUnit has the TestCaseSource attribute for this, while xUnit has the Fact attribute.

One of the key differences, is there are no test cases generated, nUnit tests just wont run, while xUnit will throw.

Since it's completely legal and sensible for a certain kind of test to have no entries in an xml, we needed to hack around this quirk. When I (and countless others) have mentioned this on the xunit github, the author berated us that how dare we request this.

So nUnit might be buggy, but xUnit is fundamentally unfixable.
Apparently this is yet another “best practice” preached by people using crappy tools.
Except for some weird architectures, where C is supported, C++ is as well.

And if either GCC or clang are supported, they support safer languages than C and C++ on their standard collection of frontends.
It's not just someone else's opinion, it's agreed upon opinion. The alternative is the authoritative approach.
That and the Boogeyman of food safety liability.
https://archive.ph/LpupG
I’ve come to the conclusion that none of this matters for most parts of a system. I worked in the most horrendous code and systems you can imagine but it turned into a multi billion dollar company. Then everyone starts talking about code quality and rewrites etc and new features stall as beautiful systems are written and high test coverage met and competing companies surpass us and take market share with new and better features. We’ve gotten religious over code and tests in the software industry abd should probably shift back some.
See also: reversal of siberian rivers, aral sea obliteration.
The reason for one assert pet test is that it forces you to test one thing at a time. It sets your mind in the mode of single responsibility.
They dropped out of the leading-edge logic race after getting to 14nm. Development and capex just got too expensive to pay off. I don't know much about the industry but it has been consolidating for 3-4 decades so it's probably just the same story, the up-front costs keep growing. I guess GF and UMC were approaching the limit of DUV where you start either having to do very complicated and expensive multi-patterning, or even more complicated and expensive EUV, so maybe that is what stopped them.
Well here's one guy I wouldn't want to have a beer with, in Antarctica or elsewhere.
Every Mastodon explanation is like this
Totally agree, but how would you go about categorizing ideas into those that are worthy of equivalency and those that aren’t? Seems easy enough for fringe conspiracy theories but harder as you get into the realm of well sourced but bad ideas.
In any survey of humans, there will be some small percentage of the responders who are in a mood to just tweak the system. Distinguishing them from people who genuinely hold marginal beliefs (fake moon landing, flat earth) or even from people who socially adopt positions that they don't really believe (Jesus is returning in 2032, Kim Il Sung is guiding our leadership to victory) is often difficult.
She Bought the House Her Mother Cleaned for 43 Years
> I don't understand why it's so hard for everyone to just have their own blog that is twitter-sized posts and you follow the people you want or don't.

comments. either you destroy UX, or you suffer intolerable levels of spam, or you roll your own pseudo captcha (“please enter the name of the original grass-type starter pokemon to comment”) that only works as long as your blog stays small and niche. and whatever you choose brings a bunch more hosting complexity compared to the low-barrier-to-entry static site generators so popular today.
Doing Things That Scale (2020)
> It only works if you can get all your friends to use the same server.

I'm the only user on my server and I have a bunch of (not on my server) friends on my timeline. I'm not sure what you're suggesting isn't happening?
It obviously depends on your values, where you live etc.

- The war in Irak by the US and Vietnam by US/France was absolutely unjustified. But they are both able to compare Putin to Hitler and position themselves as peace makers.

- It's probably even more obvious in recent history. World War 2 with "Pétain" being praised for doing what he could to limit the casualties when France lost the war in under 3 weeks. He is now considered complete evil (he was summoned to lead France when the army was already defeated, Germans controlled Paris. Of course he had to do bad things.

I think there is also a tendency for people who never experienced war to rewrite history in their own head. It's again obvious with the Pétain example. If you listen to French, they would all be part of the Resistance. Yet the historical records show a different story. The population was neutral for the most part, not actively collaboration, not trying to destroy rails either.
Exactly.

But why are people so obsessed with PR in the first place? Who cares? People are obsessed with drama. My view is there is too much of that, cut that crap out, it's irrelevant to your life.

Either Twitter as a product, is useful to you, or it's not, so either use it or don't. Twitter as a product did not change in the past week, if you never read any news headlines, you would be completely none the wiser and still happily using it if you were using it before.

There is too much real stuff to worry about to get caught up in the drama of this.
> It's the job of the developer to cut as many corners of those policies as possible to ship code ASAP.

I can't tell if this is supposed to be humor, or if you actually believe it. It's certainly not my job as a developer to ship worse code so that I can release it ASAP. Rather, it's my job to push back against ASAP where it conflicts with writing better code.
theres some study which found it might make the sky turn a milky white which seems grim but apparently sunsets would look incredible
Your item 1 actually makes things less expensive. This can be proved by looking at places that force the producers to pay for it, but don't otherwise interfere.

When businesses assign people to do it in the cheapest possible way, but aren't allowed to externalise the cost onto society, what you describe happens, because its cheaper.

Not quite as cheap as blaming the consumer and telling lots of lies unfortunately, or we wouldnt need any regulation to achieve the most efficient outcome.
I have never heard about such a restriction for plugins.

And on the plugin page for Grammarly, it says it gets "Access your data for all websites":

https://addons.mozilla.org/en-US/firefox/addon/grammarly-1/
I bet if it were in monospace and you were reading code in context rather than on HN you'd have noticed.

That said, NUnit has much better syntax for this, where you put parallel/multiple assertions like this in an explicit block together: https://docs.nunit.org/articles/nunit/writing-tests/assertio...

Much less boilerplate duplication in the actual test framework, too.
Yup! RSS is RSS! If you want to follow a Haven feed, you just need to make sure your newsreader can handle HTTP Basic Auth credentials. A Haven feed URL embeds the credentials right in the URL to make it easier.

And Haven's feed reader can read every RSS and Atom feed I've been able to find. The feed reading and publishing are both part of the live demo, so you can do some testing over there! https://havenweb.org/demo.html

If you run into any incompatibilities, let me know and I'll get them fixed!
> frag-1.1.2 failed during the building phase. The exception was: ExitFailure 1
>
> Go fix that for us.

Isn't there an error message just above saying that you need to install the development version of the GL library? Fix it yourself; we can't!

Granted, that error message could be made easier to read.
> Frankly, if Musk cuts $1B from the run rate and there isn't a bad outage, a lot of people will look pretty stupid.

Is this a good way of reasoning?

If somebody said "frankly, if Bob stops wearing his seatbelt and doesn't die, a lot of people will look pretty stupid" we'd push back. Now the opposite is also not true, where if things go fine Musk is still an idiot. Only the people who know the internals of the system can really say with confidence. One thing I am sure of is that Musk is not one of those people.
>A string value is not a great type to convey a user's email address or their country of origin. These values deserve much richer and dedicated types

this is a classic case of not needing more types but needing proper names. Types as concretions, i.e. simply collections of data or functions are a terrible idea because they're static and don't accrete. Data in the real world always does. This becomes very obvious when you go down a paragraph and you see the conundrum:

>For example, let's have a second type called VerifiedEmailAddress. If you wish it can even inherit from an EmailAddress. I don't care, but ensure that there is only one place in the code which can yield a new instance of VerifiedEmailAddress

okay, and for the next email setup let's have a third type, and a fourth type, and a fifth type, and so on. The end result of this is a zoo of types that help nobody to understand anything. It reminds me of an older Rich Hickey talk. When you program a delivery truck you don't make a type for each different truck because of the contents of the truck, you just take your delivery out of the truck and you don't care about the rest.
I wonder if HN would benefit from a [serious] tag the way some subreddits use it. Though, if OP could give a longer description of why they're running such a poll (I guess to see the demographics) I would expect more people to answer seriously rather than give low effort/joke responses.
> There isn't enough time in a no-sleep 24h day to verify every single piece of content one is reading/hearing online that same day.

If it was necessary to fact check every tweet, this would be a big problem. Luckily though, that is not a requirement. With a proper implementation, it should be reasonably easy to surface a historic list of (a subset of) any given user's incorrect statements, which provides objective evidence to distrust someone's claims and opinions. With the style of epistemology practiced by most people in 2022, everyone is going to have black marks on their history. And if we had a cultural change as a consequence of this, people might start putting some effort into speaking in the form of true statements.

> Just go to any major news site's homepage; there's at least 40 articles there, plus videos. Count the number of tweets or instas you're glancing upon on your feed, they're infinitely loading below your thumbs.

Establish a persistent and centralized list of well fact checked "untruths" (rhetoric, innuendo, etc) from popular media outlets, and we will then have undeniable evidence that can be easily referenced, making common claims that mainstream media is ~"not that bad" transparently false.

> Self-service fact-checking is not scalable.

There is an important difference between scalability and infinite scalability.

If Elon is smart, this feature could be a very big problem for belief shapers.
IMO this is wrong way to approach explaining this. Having Python 3.4 and 3.5 coexist is laughable example - yes. Whole post is written from perspective of a developer who has code he needs to deploy.

If one looks from operations/sysadmins perspective:
- I have a big server or 10 servers
- I don't want to install PHP/Python/.NET for each dev team on the server or get new server and maintain it separately for PHP teams and separate way for .NET teams
- I want to provide environment where devs can just drop a container so it enables them to have what they need without me checking off each install and each VM

I also don't think dev teams should run their own k8s clusters. If you have huge company and people running data centers you don't want them to deal with whatever flavor of back-end code these servers are running.
The fact that the ranges aren't equal makes it pretty useless to parse, unless entered in a spreadsheet later, and I couldn't be bothered to do that.

There's no reason to have one category for the 5 years 16-20, and the most common age group of Internet savvy working age adults to be lumped in two 10 year "26-35" and "36-45" ranges.

Oh well. It's just for fun I guess.
True, but very few people seem to want to start small and build skills. Wax on, wax off even.

Also, Brooks reminds us to plan to throw one away since you will anyway.
Bancor
Oh lord, can anyone make a post without whining on about Twitter?
Well, in that context one can also say that a €447 pair of shoes is ridiculously expensive, a €447 bike is ridiculously expensive, a €447 telephone is ridiculously expensive, etc.
It’s debt. When you can’t add new features quickly because you have nightmarish tests to fix and you spend more time on the tests than the product, I’d say it’s debt. Especially with the insane mocking setups.
The most successful languages are typed but weakly so. Just enough type system to avoid the biggest class of bugs, not enough to get in your way all the time. Golang strikes this balance very well. Too little typing, and your Python unit tests get too heavy to run after every commit. Too much, and you have to read a book on category theory before you can figure out how to grab that one field using Lenses in Haskel.

Edit: I should note this is coming from an outside observer as my most favorite languages are dynamically typed like Python and Lisp. But it should also be noted that I like writing in small code bases. Larger ones tend to need typing.
Destroying a work system that loses 1100Mm a year is not a strategic loss. It is a gain in the direction you want to take the company (gain instead of loss)
> Testing lots of things at the same time means strictly speaking you're writing an integration test rather than a unit test

There's nothing wrong with integration tests, but they're not unit tests. It's fine to have both, but the requirements for a good unit test and those for a good integration test diverge. The title of this post, at least, was specific to unit tests.
Is Gmail Silencing Republicans?
We bake it on low temperature for like two hours. We did it just once, so we cannot assess whether it's still efficient with the baking energy included.

But the winter is coming now, so the extra heat generated when regenerating won't go to waste.
I'm curious what things you're trying to do that requires you to overload xunit classes? We use xunit for everything and haven't found any gaps so far.
This was published barely two months ago on that subject:

https://www.npr.org/2022/09/01/1120518369/antarctica-sexual-...
A Twitter Employee’s Account of Surviving Layoff Day
It might still be cheaper than copying the values if they’re large.
Pounds sterling
That's a _VERY_ selective set of sources ([3][4][5]), which you are in bad faith using a representation of the "youth"
Care to provide us a list of approved jokes?
Can't believe I'm reading here for almost ten years already, which means I've started at ~18. Kudos on everyone who is young and reading HN, or lobste.rs, or any other special interest group/community. I remember back then, I was still in high school, it gave me a lot of "dissonance" about "real world" (including me hanging around in the local hackspace) and what we did in school. I hated every single moment in school. Stay with your dreams, everything you do will matter at a later point in your life. Even if you're just having a series of never finished attempts, it somehow pays out at a later point. Curiosity is key. <3
I’m not a crypto fan but spitballing here: what if it were tokenized? Not necessarily in a distributed blockchain sort of way, after all this is Twitter which is centralized, but rather in terms of setting economic incentives for making good moderation judgements, eg when you make a judgment you stake something of value (money, tokens, reputation, whatever) and set up some mechanism such that making “bad” moderation judgments is an expensive choice. Seems like this is a scenario where there is low levels of trust and therefore can use the thinking of a similarly low-trust domain (crypto).
The only thing special about Haven is that access is restricted for the content you publish. Anything that publishes and consumes RSS (so long as it supports HTTP Basic Auth) will play nicely with Haven.

I have to add that caveat because support isn't universal. NetNewsWire supports it, Thunderbird supports it, and Inoreader supports it on their paid tier, but Feedly doesn't. (for some examples)

Happy to chat directly, drop me a note on the Haven contact page! https://havenweb.org/contact.html
NAK.

Hacker News is pretty serious compared to most social media, and I love that. Which makes some rare harmless comments or posts like this one actually good to encounter once in a while.

The seriousness-to-joke ratio of this site is just perfect in my opinion.
Good point. Pedantry is tolerated here and there is a culture of upvoting nitpicks because it fits in with the 'engineering ethos'. I have similar experiences at work too. But Reddit for example, while low quality in many ways, downvotes most pedantry as socially unacceptable and mirrors 'real life'.
My blog is only about my SaaS and, after writing all I had to say about it, I realised that my new ideas were repetitive, so I decided to pause a bit.
The problem with this is the explosion of types when you start with combinations. Stuff like VerifiedEmailOptedOutOfMarketing.

I can see a type system designed from the ground up to do something like this. But as a bolt on to existing languages it's pretty clunky.
The real reason why these topics met is that Andrew Ng is a prominent politician.
Exactly. The IP portfolios that TSMC has is huge. You can go to Cadence, Synopsys, or TSMC themselves and get PLLs, serdes PHYs for PCI Express, USB, HDMI, DDR 3/4/5, LPDDR, etc.

Is Intel going to let a customer use their internal IP?

Most of the third party IP for TSMC is based on around ARM and the AXI / AMBA bus specs to quickly integrate. I've heard that Intel's blocks use an Intel specific bus so you would need a bunch of translation shims.

Do you remember when Intel ported the Atom CPU to TSMC 40nm around 2009? They had to pre approve every design and it couldn't be in devices with larger than a 7" screen and all kinds of ridiculous nonsense. I later read articles that they did not have a single customer license the Atom in TSMC's process. Then they decided to make Atom powered mobile phone chips and basically paid a couple of companies to design them. Then no one wanted them. On top of that there were Android apps that used native ARM code and not just Java. So Intel had to make an ARM to x86 emulator for that.

Intel is great at making server / desktop / laptop chips and pushing the industry forward with new specs and standards like USB. But I don't trust them to understand or follow through on anything else
Phew, there are so many files and lines in that repo.

As far as I understand it, all that has to be done is something like:

document.body.innerHTML.replace(/<some_regex>/,'<some_string>')

Where <some_regex> matches strings of type

@someone@someinstance.tld

and '<some_string>' turns that into

<a href=https://yourinstance/web/@someon@someinstance.tld>@someon@someinstance.tld</a>
Lots of the complaining about the monetization strategy is really complaining about Elon. I am sure some of the self-aggrandizing blue checks are not happy losing their imaginary status, but it’s a reasonable business decision.

But yes, a massive social media network not relying on ad money is a net positive to society in my opinion. Nothing good can come out from having the C-suite of Coca-Cola set social norms by allocating ad spend.
In my experience, having lived in a few English speaking countries, "twat" is commonly understood as a fool, whereas it's derivative "twot" can be used to describe either a fool or for female genitalia. So given this distinction, I am very much pro twot but anti twat.

Further reading: https://en.wikipedia.org/wiki/Twat
>They are consistently seeming more evil with each passing week.

That is simply not true. They are pretty much the same every single week for at least the past 5 years. What has changed is that the media, the public, or anybody reading has finally accepted the fact Apple may not be so righteous.

Or, all the good faith they had, mostly saved up during Steve Jobs's era has finally burned out.
We tried 1 kg of baking soda. It absorbed a little bit of the humidity, but the mold appeared on the food itself.
Well yeah some people also think the guy selling snake oil out the back of his trunk will cure their diabetes too. I didn't mean literally everybody, I mean any serious person who has put any thought into it.

A group can't decide as a group with everybody on equal terms and no consolidation of power or authority. This is the human condition. This is why communism doesn't work and you definitely do have to hold any stable communist society together with a brutal authoritarian police state and single-party dictatorship. History and reality agree with me.
IKR, what a waste of an 8th bit, when a 7-bit integer would have met the requirements. Software bloat has reached new extremes.
If you're 105, should you upvote both 96-105 and 105-255?
No, there should only be the one EmailAddress type. If it's not valid, it's not an EmailAddress.

Does having an EmailAddress type guarantee you won't accidentally accept crap? No, but when you get it wrong, you edit the validation in one place in the system.
Why can’t this be done in a native plugin? For one thing, who uses gmail for real work? For another, the idea of paying for yet another web app that Hoovers my data into the cloud isn’t appealing. Sunsama (another YC alum) already does all that.
If two tests call the same method with the same setup and arguments just to assert two different outcomes I would suggest that is the code smell.
Fifty years of Carly Simon's You're So Vain and the mystery man at its heart
It cannot test native desktop and mobile applications, right?
> Sure C++ is a tad better than C but compared to e.g. Rust and Zig it's pretty convoluted and verbose when trying to achieve things that they achieve with 2-5 liners.

yeah, if one is stuck in C++98 mentality.
I don't think the homebrew itself is the problem, it's the quantity of booze they can create. Plenty of people die to exposure while drunk, here's one of the first examples I could find https://www.bostonglobe.com/metro/2019/02/05/autopsy-college...
Find the societies most affected by Global Warming the soonest, between the tropics is the safest bet. Pick the one with the largest GDP because they have the largest ability to geoengineer.

Do you think that a political leader from there will ask global permission before doing this? Do you think a political leader from there could make any other decision when the society is facing an existential threat?

It's naïveté. This needs to be researched much more than it has been because the illusion of choice will be gone sooner than you think.
Then that’s a sign Musk has absolutely lost it. Writing off tens of billions for petty revenge is insane.

(also the shareholders just cashed out, they don’t care)
If you give people power, they'll use it to fuck with it.

- Boaty McBoat Face