skysight-inc/HackerNews huggingface dataset:
100% test coverage is not so valuable. But, I would argue that test coverage for the bits of complex logic that people are “afraid to touch for fear of breaking it” are valuable. Create tests for this code before you change it for assurance you haven’t broken it. If there are weird border cases the original developer wants to ensure remain supported, you need a test case for it.
Adding a Loading Icon in Nuxt
Larry Peek's book and tutorials on mh and nmh, as well as his shell wizardry generally, are very highly recommended.
If the javascript community was honest, nothing would ever graduate to 1.0.
Wavelength = 1 / frequently and is directly related to photon's energy. You only need one photon to observe these.

Intensity is number of photons per unit area per unit time, so it takes many photons normally, but a single photon produces a non-zero intensity.
Is it possible to buy sperm on your own? Do you need the approval of a doctor or some other third part entity to obtain sperm from a sperm bank?
Don Fertman, Subway’s chief development officer and a veteran of the company for 38 years, said... that owning restaurants helps give development agents “a better understanding of all aspects of owning a small business.” He said the company reviews the agents’ work and expects them to uphold ethical standards, dealing with violations “on a case-by-case basis.”

....

“Our business development agents are well-respected members of our business community,” [Fertman] said. “And when we hear these allegations, I would say that they are false.” He said he was not aware of any exceptions.

This is literally the same C-level clown claiming (a) that all violations are investigated carefully and (b) that no violations exist. No ethical person could have heard about this ridiculous "development agent" scheme and remained silent about how obviously abusive it is, therefore no manager at Subway corporate is an ethical person. I'm also pretty disappointed in USA courts: did no judge ever look at these bankrupted immigrants and see someone deserving of justice?

I haven't been in one of these dumps in at least a year, and after reading TFA I don't plan to go back. I'm just glad it's privately held, so the upcoming fire-sale to private equity will hurt the family and not honest investors. Not as much as they've hurt the poor entrepreneurs who trusted them, but that would be too much to expect in USA...
Sure thing. I'm not suggesting that there is anything wrong with the framework, and just because I find the tone of the blog somewhat arrogant doesn't mean that I'm offended by it; sometimes arrogance has a reasonable explanation, I just don't see that here.

> trying to explain why their project has advantages

IMO you can do that without the tacit suggestion that the competition produces unmaintanble code, or at least, explain why this framework is objectively more maintainable and not just one's particular opinion of what is maintainable.

> if a project took an arrogant tone while also having a large amount of money backing it, I might be annoyed

I'm not really annoyed either way, but in my totally subjective opinion a lone developer should take a more humble tone, it's not as if backing by a large corporation correlates with non-
maintainability.
Boeing self-reported after Air Canada had already created a "paper trail". At that point, they could hardly hope to keep the failure secret.
There's a Github example that is just every framework example under the sun for JS, I wonder if that would be interesting.

Edit: Found it, it's called RealWorld (https://github.com/gothinkster/realworld)
There's a whole signup just for auditing!

https://www.startupschool.org/register
It's really good - I was able to build extra modules for WSL2 with ease.
I didn't mean to say Linux is the best OS overall (I'm a *BSD user after all). Just that Linux became big among developers for practical reasons rather than ideological (though ideologically-driven contributors certainly helped).
Ask HN: Could AI / visual processing sort out the local bookshop?
There's a bookshop around the corner that is stuffed to the ceiling with books. An old lady sits there all day - I'm sure they aren't online.

When I go in there I look at the thousands and thousands of books and I can't helping wondering if AI/machine learning would be able to, given high resolutions photos of each bookshelf, identify the books, find them in a book database, and put them online to a second hand bookmarket like abebooks.com and then when a book is sold, be able to tell the store owner exactly where to find the book in the store.

It's just a thought exercise but I wonder if this would actually work.
Enlight Featured Maker: Nathan Leung
This is no more or less likely in an integration test vs a unit test. One of the first things you learn in writing unit tests is that you should be selective in picking your inputs. This is even taught in those “trade schools” he subtly derides. You regularly see both public test cases and hidden test cases run against problem sets, at least that’s what my interns tell me.
Great. The naziscape. Why not add a “self regulation” feature where enough people can burry a racist, xenophobic and other content you know this platform is meant to enable? Automatically by consensus, no need for human intervention.

I remember once opening an account in a USA based right wing forum to comment on some disgusting post. It took 5 minutes for the moderator to delete the comment and close my account.

Free speech is not the issue for the right, it’s the problem.
I love Potbelly! I miss that place and Beck's Prime when I lived in Houston.
“those that belong to the emperor” - borges reference?
as a person that gave birth to a child, married to a woman, no. stop.

i also see a lot of disgusting sexism in the assumption that men cannot be solo parents or be partnered to other men that both want to be parents.

you seem to know nothing about assisted reproduction and you should inform yourself and address your cisheterosexism before you speak again on this topic.

edit: i’m so infuriated i missed the part about adoption. if you haven’t experienced adoption from the perspective of solo parenting by choice, i assure you that the path to getting pregnant and carrying a child is usually drastically easier and cheaper. i cannot even _donate_ eggs/embryos without running into religious organizations that refuse to talk to me.
Their search engine is not bad too, and I use it as my primary search engine. They also helpfully provide a link to other search engines so that if you are not satisfied with their search result you can search on the other search engines with just a click. This ensures that they get crucial data (the search query) to improve their search results and also doesn't leave their user disgruntled due to non-relevant search result.

On the flip side, they are just as intrusive as Google. When I installed their browser or mail app (don't remember which one) it asked for my ios PIN / password (no ios app ever requires a PIN / password for installation - and no, I am not talking about an iCloud password which is required for app installation if you have enabled it for app installation).
If this started as part of another app, it could have taken 2 years to isolate the framework as a standalone piece of work.
I think you can lens the lower radiation away from the sun. A fresnel-like arrangement that points light from under the panel in a direction other than that of the panel.
Every time I see this blog I'm extremely interested in the content, but the stylized presentation is so jarring and tough to read. I doubt this is an original qualm and I'm fully able to switch to reading mode in Firefox to mitigate this problem, but frankly it's off-putting.
> Based on what military / social doctrine must aggressive attacking of Yandex "MUST" be done?

Information is power and the "right" information, even more so.
talk about a gold mine! what if UFOs could teach us a robust way to eliminate ad fraud?
Not on my MacBook:/
How much efficiency do they lose? What else reduces efficiency, and is the trade off to moving them to a different location worse?

On the first one: let's look at a high end model like https://www.energysage.com/solar-panels/sunpower-corporation.... You will see the temperature coefficient of PMax and Voc in the specs.

The PMax in this case is -.38. You can predict a panel's loss of efficiency by multiplying the difference in degrees Celsius from standard testing conditions. Standard testing conditions for a solar panel is at 25 Celsius. A hot panel in summer will get up to 65 C. So 40 x -.38 in this case, or just a bit over a 15% loss.

That is not great, but 85% of max efficiency is not ridiculous. Panel orientation, angle, and shading can easily add up to more than that. The second question is a much harder one.

What's ridiculous is not having solar panels.
Indeed. They have since canceled as of about 4-5 months ago. Now they use a T-Mobile re-seller (via walmart, iirc) that gives them 25GB/mo for less than their "broadband DSL" cost. So far they have been happy - watching shows at 480p.
speaking from a parent-donor perspective - i’m planning to donate some embryos created during ivf. (i have infertility issues.) i also am in a same sex marriage.

open identity donors, recipient families and children, and the studies behind identity release (or the lack thereof) all overwhelmingly point towards open donations as being a positive. anonymous only when you have no choice. a lot of groups out there exist - and books and more - that can help you navigate when to have the talk and how to have it.

as we are both biological parents to our children, i can’t tell you exactly how it goes, but we are surrounded by so many solo parents and queer parents that used donors and surrogates. everyone has a beautiful, loving family in their own right and these kids grow up normalizing this as part of themselves even from toddlerhood. there are struggles, but if you think parenthood is for you, then you should do it. good luck!

edit: just wanted to add, that some sperm banks are not made equal......... big ones like california cryobank and xytex tend to have much higher family limits and more restrictions than smaller progressive ones like sperm bank of california. if the idea of having 30 half-siblings is unbelievable - banks like sperm bank of ca have 10 family limits and track closely. you can help narrow things down for your future kids just with the bank (or program) you pick.
> Articles like this are just drummed up to stir negative emotions about "others"

The negativity seems more targeted at the leaders who arranged this than at the developers. Both the examples you cite are from the same comment, and even that comment is more about resentment towards management corruption than about the incompetence of the developers hired as a result of the corruption.

> The software did exactly as it's supposed to do

I gather new issues with the software have come to light since the accidents, as a result of the heightened scrutiny, and they seem likely to keep the planes grounded for longer than Boeing hoped.
That Indian company is HCL. Ive hired and fired people that have worked in HCL here in Mexico. The culture seems veeery bad, as engineers coming from there have a culture of "do the minimum". And no ownership at all.

As an extreme example, one ex-employee stopped working one day because his wireless keyboard did not have batteries (a kB connected to his work MacBook Pro). Colleagues told him to just buy some AA batteries while I was back (I would have refunded them to him) and he did not want to do it.

Nowadays if I see HCL or Tata in resumes here in GDL, it is an automatic pass.
Looks pretty legit. Keep it up!
I struggled for a long time to find a useful recommendation. I finally arrived at a way of figuring it out:

Check their stats: https://stats.lineageos.org/

Pick your country on the right, then lookup the models listed at the left from most popular to least popular.

The phones that are the most popular stand the chance of being the most stable, and best supported. I finally arrived @ "nash", which is more commonly known as the "Moto Z Force" (https://wiki.lineageos.org/devices/nash). You'll have to copy/paste the code names to their devices wiki to get the specs.

I got one second hand with some wear for about US$100 on ebay. It was easy to unlock, and I'm fairly impressed with how it works with Lineage thus far (About 2-3 months as my only phone). It's 6" tall, I'm not sure the diagonal, but it fits comfortably in my pockets. I added a case since it's super thin otherwise.

#3 in the US is https://wiki.lineageos.org/devices/klte @ 5.59" tall ...
I can run Clojure libs that are 5+ years old on the latest clojure with no code changes. I applaud the author for designing a framework that keeps devs off the absolute waste of time that is the upgrade treadmill.
The demise of Microsoft's eBook store; everything will 'stop working' with DRM
> the component factory pattern used by Typescene doesn’t sacrifice readability: <foo x="y">...</foo> simply turns into Foo.with({ x: "y" }, ...).

The JSX version is more readable tho. It looks like HTML. Everybody knows HTML.
Great. Do you have skin in the game?

Why not punish both the corporation AND the employees? Civil punishment for the corporation, criminal charges for the individuals.

We need not seek financial damages from the wage slaves, but the corporation should be disincentivized from grinding people into unsafe corners with unreasonable demands for effort.
You don’t think there is a difference between a stock buyback and a fine?
Focusing a laser at that range requires a rather large diameter heavy set of optical components.
Impressive amount of code and words. I think I'd think twice before approving this in a code review, though.

Why is this not the obvious solution to the stated problem?

function avgPopularity(slang) {
let sum = 0;
let count = 0;
for (item of slang) {
if (item.popularity > 0) {
sum += item.popularity;
count += 1;
}
}
return sum / count;
}
In practice it's not really working though. At least not yet. There's a very long thread on virtualbox forums with people trying to get it to work but failing.

I personally have to reboot when I need to use docker or virtualbox. Very annoying.
yes. you just sign up with a sperm bank and cough up money.

for maximum protections (both directions) you will want to involve licensed medical professionals on the usage end. so you should have a doctor looped in for ICI/IUI/IVF etc.
That's a great little documentary. Worthy of its own post.
> then what amount of testing is going to catch that?

Mutation Testing could. :) https://ai.google/research/pubs/pub46584
9hr = 72 day = 1440 month = $28800 MXN a month. Buys you 1 software engineer between Jr and mid level here in Mexico my
Newpipe is literally doing what the browser does, which is fair. The rest of the argument boils down to ad blocking. If you are a stickler, you could use youtube in a browser and get the ads.
> What this ignores is that Linux driver support is generally fantastic, works out of the box in a way that desktop architects at MS dream about and is infinitely more current in practice since you go to one place to update all your software, including driver software, something MS hasn't been able to get right in a decade of trying.

Generally, yes, it's pretty decent on first go and there's a nice default happy path.

Unfortunately in my own experience, that path isn't particularly wide, and there's a huge number of gaps.

Version compatibility is a major issue, imo. One driver or package works great on one kernel version is completely broken on the next.

A few hours ago I tried to install the official AMD drivers for Ubuntu. It's not until the install script has already gone and screwed up my system that I get told that they don't support 19.04.

I just don't have that issue on Windows as a rule. I'm not claiming Windows is perfect by any means, it's got it's own set of issues.
Yeah a lot of the 90s/early 2000s OOP stuff I learned in school seemed to always result in really tightly coupled systems and bespoke webs of tests and fixtures that strung along weird dependency chains in unwieldy spaghetti piles that did no good. Following TDD has helped me land at decoupled functional interfaces like the ones you've described, and it all scales and composes so nicely, yet stays very tractable.

Robert Martin sketched 2 diagrams in [1] that elegantly illustrate these two different design patterns and how testable usually means composable and more tractable:

[1] http://blog.cleancoder.com/uncle-bob/2017/03/03/TDD-Harms-Ar...
Er, all it takes is one ingested radioactive particle to damage DNA and spawn cancer. Radioactive particles from Fukushima are showing up in automobile AC filters on the West Coast, and the media hasn't said much about the MOX fuel in Reactor 3 that many experts now theorize could go critical based on the volatile (and largely untested) combination of plutonium and uranium that MOX consists of. And Japanese culture is about the worst possible mindset to deal with this cleanup effort, they are more concerned about saving face and avoiding embarrassment in front of the international community for having made the genius decision to build a bunch of nuclear reactors, some of which are using experimental MOX fuel, on top of the Shionihara Fault. They haven't even located the melted fuel in these reactors yet, and one misstep could easily result in another meltdown or worse yet a critical MOX mushroom cloud that kills millions if not hundreds of millions of humans as the result. Never mind the 850,000 tons of contaminated water they are now simply going to discharge into the ocean.
No one is immune from spear phishing. No one. A competent spear phisher will compromise one of your coworkers first (maybe even your manager), then target you posing as them. Click a (legit looking) link and you are pwned.

And yeah, I don't know who you are obviously. But if I did and you were my target, I could pwn you easily. Pwning individuals is easy with keyloggers.

Also, my scheme isn't broken by design, you just labelled it as such with no evidence. You never said why it's broken by design. Because it's not.
Not magical at all, there's a basic geographic explanation for why very few countries could invade Canada and a NATO alliance that explains why anyone who could, won't.

And magically... a lot of countries that aren't Canada still get attacked. Funny how that works.
We invented and then implemented time zones and then invented and then implemented daylight savings time; arbitrarily and with arbitrary laws and treaties.

There are days where I think I should go back to a mechanical watch and adjust the time each day at high noon. It won’t agree with anyone else’s time most of the time, but at least it will be correct.
I grew up in Europe where car interiors have always used only icons for as long as I've ridden them, and I've never heard of anyone being confused. Same with road signs. First time I visited the US I was amazed by how much text is on your street signs, where only icons would be used in Europe.

I recently bought a domestic car in Japan. I had no problems using any features since they all use the same icons that my parents' domestic Swedish 1991 Volvo had that I learned to drive on. If they used kanji words instead I'd be lost.

> There are no icon dictionaries,

It’s called “the manual”. You clan usually find it in the glovebox, and it doesn’t require a data connection. But in reality you've learned all these symbols by the time you get your drivers license (just like you've learned all the road signs).

> especially when everyone copyrights them so every icon is different.

Car interior icons are standardized by the ISO https://www.iso.org/standard/54513.html
I used to really love one particular Quiznos sub. It had this really great bbq sauce. I was happy to pay a premium for it. Then one day they changed the sauce. It was awful. I stopped going.

Moral of the story: When customers love your product, don’t change it or take it away.
Basic code coverage analysis should catch that add_these doesn't have full branch coverage.

Additionally, some fuzzing tools can actually to branch analysis and target your "rare" codepaths. Now, sure, figuring out how to hit some codepaths basically requires brute force - it's not going to magically figure out an efficient way to collide SHA1s if that's what it takes for your test to fail - and you need a way to differentiate good from bad behavior (this might be a reference implementation, or this might be as simple as "does it crash?") - but you do have to get crazier than add_these before you hit the limits of even existing tooling to catch bugs.
Absent from this discussion is the use of generative testing. At the unit level they can automatically enumerate a variety of scenarios the programmer would likely overlook.
Or at least force it to be an intentional decision to do it wrong, which go does. Exceptions permit the programmer to be unaware that the function they're calling could throw an exception.
Yes that's how they tested the Mars drone.

https://www.jpl.nasa.gov/news/news.php?feature=7417
He says the framework is for apps, not blogs, so if it is not I would call him out on it.
My hardwired memory is when Ballmer mocked me publicly during an intern Q&A for asking if Apple could become a threat in 2006.
I tried posting it first actually and it didn’t get any traction. Be my guest?
Devil's advocate here.

If you hadn't used those libraries, you would have had to implement functionality from those libraries in your own code. Presumably, your code would be subject to the same vulnerabilities and probably require even more work to update. After all, API changes are generally easier to handle than design changes.

</advocacy>

I do agree that tiny, insignificant libraries like "left-pad" are bad. Imo, a good dependency is one that significantly reduces the design complexity of a project.
SRE = Site Reliability Engineering, see https://en.wikipedia.org/wiki/Site_Reliability_Engineering

MVP = (in this case, probably) Minimum Viable Product, see https://en.wikipedia.org/wiki/Minimum_viable_product
..and that would give him the final blow.
My explanation was unrelated to this specific code. You asked for how it can be done with this license.
As much as people crap on Subway I don't think I've ever had a negative experience at one. I know they don't use fresh ingredients but I'm fine with that. They aren't that expensive and I enjoy the array of toppings they have, although I will always remain bitter that they took away that spicy pepper paste. If on any day I decide to go there, I'm not doing it to have a good time, I'm doing it get a quick bite to eat and fill up on. Although the fact that it's one of 2 close food places to me adds bias, I don't have to get on any main streets to access the plaza it's in.
There was definitely regulatory capture which led to lax FAA oversight, though. Maybe a free-market fundamentalist would argue that they would have done better if they weren't dragged down by all that red tape, but it suggests to me that a looser regulatory environment was more dangerous.
Yes!
My son is getting into Scratch (50 projects in the last couple of months), but it has at least a couple of serious limitations as a programming language, namely no return values from functions/blocks, and lists are not first-class, making it unnecessarily complex to implement data structures.

The one thing keeping him on Scratch (or rather, away from Snap) is the Scratch community/sharing. I'll have him and his friends consider joining Snap now.
If we ever meet aliens that also happen to be advanced enough to trade with, we will have already solved this issue ourselves because we’re cruising around in the Enterprise and needed a new timekeeping system by that point, or the Enterprise came to us and they will have their own timekeeping system that we can adopt.

Before then? Eh. Objectivity is overrated and an imperfect time system is a nice reminder that life doesn’t revolve around us and what we want.
Because it’s an English proper noun?
Some of My Heretical Beliefs