skysight-inc/HackerNews huggingface dataset:
> In order to tests classes in isolation like this, all dependencies must be injected, so they can be stubbed or mocked.

This really boils down to which school of testing you follow. London (Mockist) vs Detroit/Chicago (Classicist). [0] is a good article on the different views of testing. Made me think more about it.

I find that using fewer mocks, and unit tests that integrate many classes (vs one set of tests for each class) makes Java programming more fun- but it is very much a Detroit school way. And that's okay, but it's good to really think about the differences.

[0]https://medium.com/@adrianbooth/test-driven-development-wars...
It's easily solvable for liquids, the only issue is upfront cost.

https://interestingengineering.com/drug-store-in-czechia-bri...
As others have mentioned in the thread, the issue is that virtual calls are more expensive because you have to resolve the correct function in the related vtable.

So instead of just setting up and executing the call, you have to traipse through memory a bunch of times, affecting caches and making things slower.

But the thing is, Java's compiler works at runtime, so it can either inline the function (basically dump the code into the call site instead of invoking) or devirtualize it (if the same object is called over and over, the JIT can just remember the last lookup and add a guard if the target changes).

In say C++, making everything virtual would be crazy because the compiler can only safely inline in certain situations and can rarely devirtualize a call.
I imagine one could apply the semantics of a leadership election algorithm and a recognizer neural net in each AI player to let them develop their messaging in game. If the AI were permitted to store temporary state through the course of a tournament or with a practice round (human players practice too) then I don’t see why it couldn’t work.
Nice. There is also:

"Who Dares Wins"

The motto of UK elite special forces regiments of the Special Air Service.
I expect most of them are large companies unconcerned with that in the first place (so it'd have to be mandated), but more importantly jam containers tend to have pretty thin walls and somewhat odd shapes.

They're solid enough when full and sealed but I expect they're much weaker when empty, so I don't know that the cost/benefit would break even unless the cost of the alternative was way increased.

> The beer companies in Ontario do, soda bottles are returnable and reusable in many places.

Reusing beer bottles is much more traditional so I expect they're designed for this specifically, and there's usually either an incentive scheme to encourage or outright legislation to mandate container deposits (germany even has legislation for single-use container deposits).
It's a shame your comment has basically no replies, I'd like to read a counterpoint.
In my experience with Alibaba, vendors would sell a single unit for cheaper but the shipping quotes are higher than AliExpress, but that could just be the vendors I was contacting.
You can request an extra recycling bin free of charge in Seattle. I believe you can even do it via the app
It's something that needs to be addressed. If the ROI for an action is very low nobody is going to investigate doing that action.
USB CD+DVD burners are nearly disposable-cheap and very convenient to use, now. The "good" ones are under $30 and crappy ones as low as $15. They're barely larger than a CD jewel case, weigh ~nothing, and are powered entirely over USB, so no external power brick.
AI is still fairly bad at open ended games, like, say, zelda. Anything where you can't quite train it from start to end is a struggle.
> We need to just force manufacturers to bear the costs of recycling their products 100%: everybody would switch to reusable

Proclamations like this are strong evidence of economic illiteracy. Forcing everything to be recyclable isn’t optimal for society or for the environment.
What "platform" is it exactly they don't want to maintain?
there is always a relevant xkcd!
I understand that the 1K+ engineer number comes from Facebook as a whole, when mentioning the use of Hack as a typed PHP.

More like to give a perspective on the transition on how to come from a small company into a huge one.
>but I will never in a million years install the privacy and security nightmare that is the Epic Game Store on a PC I own.

What issues?

Anyway, having to install a new launcher, as annoying as it is, is a far cry from throwing out your entire phone and all your apps, and buying a different phone (which has many of the same restrictions again).

I don't understand why people keep comparing the iOS App Store to the Epic Game Store exclusives, they not remotely the same.
I too found the hosted Ghost platform expensive for personal use, and when I thought of self-hosting, I was discouraged from trying it by some people who know better. They said that Ghost's developers have focused on making it work on their hosting platform and that it's a bag of hurt (or soon turns into one) elsewhere. Sadly, I had to use WordPress even though I don't like the platform's security related issues and how its plugin systems can make users shoot themselves in the foot (on complexity, site speed, site stability and security exposure).

What I'm looking for is a lean and nice CMS that comes with some batteries included, and can generate good static sites and also work for dynamic ones.
The point is to offer an alternative form of music discovery compared to social media influences and advertisements, not about forcing my taste on my offspring. It's also about creating a body of cultural heritage that survives and counterbalances the fast moving and often shallow trends of our time. Same with books.
> Every millisecond counts.

Not really sure that follows. For a 20ft room, it only takes a wifi signal 20 nanoseconds to cross it, and an ethernet signal around 30 nanoseconds. Your room would need to be over a hundred miles wide to add a millisecond of delay, disregarding stuff like repeaters.
Sorry, I should have been more precise: I was referring to detecting that a function is tail recursive.

(Yours is still a helpful explanation, though -- thanks!)
Well now I'm curious: what are the "questions" posed in frame 23?
Although this time his own OS should have basic features and lessons learned by prior entrants in that sector. Like, if you start an online store have such basic stuff as a shopping cart. Obvious stuff like that.
A controversial company using DNA to sketch the faces of criminals
One of the costs is weight, which means that transporting glass bottles releases more CO2. We also shouldn’t underestimate how dangerous glass can be when dropped.
> I'm forever grateful for my dad's records.

Same here. And mom's. And cassettes.
What's the difference to modeling the "happy path" with function calls one after another, with an outermost try block that can catch any exception that might have happened inbetween?

These functions wouldn't even need to care about Some[T]; T is enough.
Adversarial Attack and Defense on Neural Networks in PyTorch
Armandoramires65@gmail.com
The key (for any product), from what I have learned and have no experience of it, seems to be finding a `beachhead market`, a startup term for finding a smallest possible subset of a niche, where you can dominate (establish a community in this case) and then grow from there one step at a time.
>What I said had nothing to do with correlation vs causation. What I said was that "variables that a priori have nothing to do with race (e.g. where you live, how much money you make, etc.) are highly correlated with race."

They're highly correlated to race, but they are no caused by race, and are therefore defacto not racist and are free game, QED.

If the variable was "dark skin", it's not necessarily specific to a single race, but it is inherently a property of race, and therefore racist. How much money you make is not a property of race, or a property specific to minorities. It's fair game.

>I'm speaking of signals and information theory.

Not very well.

>The point is allowing variables that combine to be equivalent to allowing the variable of race ends up being the same thing.

Not really, no, this is factually incorrect. Where minorities live ebs and flows through time (Great migration), race does not. What minorities earn ebs and flows through time (Asians), the fact that they are Asian does not. QED.

>Presumably you mean that blacks are _convicted_ (or maybe arrested) for sexual assaults and rapes at a higher level (since obviously what they do are what they are convicted of doing are not the same thing).

Both. Arrested and convicted.

>Do you believe such a general fact has anything to do with individuals and their likely future actions? How? Why?

Now your moving goalposts. I provided a simple to digest fact. This is basic population statistics, and you can indeed inference what individuals can/will do from population statistics.
That’s a great question...

I am not an expert, but the dog food cookbook I have cooked from didn’t prescribe 100% meat, it had you combine meat, grains, vegetables, and oils (and eggs? I can’t remember).

And there are more sustainable meats than beef which are just as healthy for dogs.

Also using parts of the animal other than the prime cuts is good for an overall more sustainable plan. (And probably good for the health of the animal too)
Is there any place for monoliths on 2020?
I also see people saying they miss checked exception because developers always forget to check the returned error code...
Thanks!
Can you recommend some tutorials/channels on youtube by any chance?
I had a quick look at Zola sometime ago while looking for alternatives to Hugo (which is written in Go, but is also distributed as a single binary). But it seemed like Zola had fewer themes available. As a non-designer, having great themes available (for free, preferably) would be a good starting point.
I have run into many of these same issues. Certbot auto upgrade issues, v1 protocol deprecation, and time wasted fixing it.

Still, Letsencrypt is an amazing project. I would never want to go back the old way of buying / renewing / installing certificates. That was a true pain!
Automatic rifles would like to have a word with you.
I don't consent with the gist of that show. Rather, I think, the Minitel approach was much like todays app stores: still allowing for private entrepreneurs and innovation, but with a regulating entity, which is also claiming ownership of the transactions, on top of it.
Since I’m literally talking about institutional reuse of glassware and institutional recycling of aluminum, and advocating not using plastic at all; I’m not sure what nit you are picking with me.
> A) What percentage of the company are you getting?

Usually you are getting something minuscule initially, well below any founder or board member's share. The logic is that, if there is going to be money made, the company will need lots of headcount and that headcount all needs to think they own something significant in the entity, which they don't because of vesting, dilution, new CEOs, etc.

> B) What dilution is going to happen?

Unknown, and depends on the performance of the management and board, if they even bother to perform later when all the money is gone (because the company is actually not profitable, shocker) and they have to suck up to someone else who wants a higher dilution so they can get a good percent of the company. Don't forget the employees will be "the problem" if the company runs out (which means RIFs or worse). Unless it's going gang busters, in which cases that minuscule amount stays the same. Oh, don't forget preferred stock.

> C) When can you sell your stake in the company?

Probably never, or maybe when it sells, if you are lucky. Besides, calling it a "stake" is really a fantasy given the stake's value is tied to whatever the investors thought it was worth, which in their mind is always more than any sane person would agree to spend on the company to make it their own company's problem. If the company is even slightly profitable (unlikely) then everyone would lose their minds thinking it's worth half a billion or something. Think two 20 something year old founders thinking their company is worth 1B+ and refusing to take an offer from Facebook for half that while today they are gone and it's not worth diddly.

> D) How soon and in what manner does it vest

Usually to the advantage of the company. Most people never vest their full amount of shares because the company doesn't sell and over 4 years (typical vest scheduling) the chances are the company will re-up its coiffures, which means dilution and besides which you can't stand working for these idiots for more than 2 and a half years, tops.
The Java community is so enormous that it has lots of different cultures. It's easy to pick on the enterprise architect yadda yadda culture because, well, they deserve it. But there are people doing FP in Java, realtime financial in Java, embedded systems in Java, games in Java... there are just a LOT of Java programmers out there.

Stop talking about the Java community like it's a monolithic thing. It's far too big for that.
>The iPhone is no more or less a computing device than those are

The iPad Pro, the iPad and iPhone is are not general computing devices, but more like gaming consoles? Wow.

Apart from that, gaming consoles subsidize or barely eke out a profit for their hardware, whereas Apple charges buyers a huge margin on the phones. I'll agree to the forced 30% cut if Apple cuts their phone prices by 50%.
I thoroughly enjoyed that. As someone who programs almost exclusively in high level languages, I learned a lot. It made brainfuck a bit more intelligible, too. It was actually a great choice of language for this exercise.
Still not close to the very common experience of having equity you worked years for cash out to nothing!
Voltaire Quotes
I don't think "epic bought exclusivity" is quite right. Epic store pays a larger percent of the purchase to developers than any other store. Developers really want you to buy their game on the epic store. That's the real reason epic exclusives exist, developers don't want steam taking their money. Epic gives them an advance as an excuse, but developers would not agree if they didn't want epic store to gain market share.
YCombinator was a successful startup accelerator, then built HN.

The folks behind Stack Overflow ran a popular blog (Coding Horror)

In those cases they had a smarter-than-average population that had some shared interest (e.g. "COMM-unity".)

When those sites came around, Google was recognizable as what it is today, but Facebook was not. Hyperlinking wasn't seen as a crime back then, and Google didn't see organic search results as competition for paid advertising.

Circa 2000 I helped someone build an online community of 400,000 in Brazil -- the start of that was sending 10,000 spam emails, which got us 2,000 sign ups (as incredible as that sounds today.)

Pay attention to retention. If you think it is a hard to get people, then it is all the more important to retain people and to think about the path of getting them to contribute.

I think a lot of people who want to try marketing don't understand how much work it takes. If I wanted to advertise a concert at a college campus I'd expect to put up a (8.5x11) poster for every 10 students or so. I see a lot of people print 1 poster per 1000 students and call it a day.

Some people don't want to make extra designs and wait for the printer, other people don't want to spend the $, other people don't want to walk to every building on campus.

You will hear stories of someone who got an exceptional break (that 20% effective e-mail blast is one) and wish you could get one. Don't let that wishing get in the way of doing the hard work, in fact often it seems you get the "break" by accident when you are doing the "average" work.

Avoid the Girardian ("mimetic") traps that are popular in many places. In particular, do not be "part of a herd" without a well-examined understanding of why your actions benefit you (incl. 'your brain thinks that cocaine raises your utility function but it doesn't)

Specifically, those "Like us on Facebook" buttons feed data and traffic back to Facebook from hundreds of sites. The ratio of engagement the world gets from those buttons is vastly less than the engagement that the world gets.

If I was talking to customers on the phone and trying to get them to buy into a bad deal like that I'd have a hard time, but when people see that "everybody else is doing it", it's hard to get people to think the consequences through.

Those sites you mention all predate the Facebook age. To linear order, "new communities are not being created". If you look closer, new communities are being created but they are smaller and separated from the social media lamestream.
Is turning Java into a dynamic programming language really the way to go to fix this, though?
> If we energy-cost-accounted for all externalities, then I wonder how returning the containers to the factory to automatically sanitize and re-use compares to recycling.

That would be interesting, but it's very difficult to price externalities, and the very same people who are against any form of recycling mandate are also against pricing externalities (just look at who killed Australia's carbon tax, and which party's blocking any sort of cap-and-trade or carbon tax in the US).
Reading this now, cheers! Is there anything in particular I should be looking for, or will it jump out at me (bearing in mind that I've never written anything more complex than an unoptimized Lisp interpreter) ?
Add to that that the page failed to make any attempt define what was meant by porcelain.
I agree with your broader point even if I think this characterization is exaggerated. The system is skewed toward the rich; however, I do think sentencing should factor in the likelihood of re-offending, and I would intuit that rich people (especially white-collar criminals) are less likely to re-offend due to some combination of greater fear of prison ("more to lose") and damage to their reputation ("people don't tend to trust fraudsters multiple times" though there are exceptions to every rule). Poorer people are probably more likely to re-offend due to systemic issues, and at least in my major US city we have a perennial problem of violent gun offenders being released after only a few months or years only to re-offend (typically disproportionately in poorer communities, perpetuating the poverty cycle). I very much doubt that differences in likelihood of re-offending account for the entire sentencing disparity between rich and poor; however, to the extent that it contributes to the disparity, we shouldn't try to solve for that gap by lightening sentences on account of poverty, but by addressing the upstream systemic issues (notably, lighter sentencing often perpetuates systemic issues, as with my anecdote about violent gun offenders).
> You're too far from the cause of the exception to do anything specific with it, the context is lost.

Which is perfectly fine. If you _can_ handle the exception near where it happened, do so. Otherwise bubble it up and log it or whatever.

Consider a REST service. If a DB or other error happens, I can retry right then and there if business logic calls for it (probably not), or just kick the can down the road where something appropriate like a 500 response serializer will take care of it. That’s a great pattern in my opinion.
How does the saying go? When you have a hammer, everything looks like a nail?
> Again, we don't share the same perspective here. As a consumer, some of the products you've mentioned are acceptable substitutes. But I'm not just a consumer of digital products. I also produce them.

Sure, I'm looking at things from a more broad market perspective so naturally I won't look at the individual case you experience. In the case of search I see Google under tremendous pressure. If you start your search on Facebook or Amazon, that's lost revenue for Google. Those are insanely popular companies. The fact that you are looking strictly at web search and that marketshare I think causes your perspective to be different, and in my view inaccurate when looking at the entire marketplace. Put another way, I don't really care about declining monopolies.

> In Apple's case, I have to release on their app store. Except... wait a minute... I can't even try to promote a possible alternative! If you use an Iphone, you literally cannot choose to get my software through another channel.
They are enforcing their own store monopoly with their software dictatorship. And just like a car, no one is going to go out and buy a completely different phone to use my one app. It's just not practical.

It would be nice if you stopped throwing around terms like dictatorship so casually, especially given the connotations around that (murder, genocide, human suffering, etc.). I don't really see how Apple is a dictator any more than any other company is. They create a product, the iPhone. That device has certain features and capabilities. The fact that you don't have an alternative is a feature of the phone, because as I mentioned above it forces a collective bargaining situation for Apple on behalf of users. Why do you need an alternative to Apple's distribution network, and why should you not have to pay Apple for access to a revenue stream that they actually create and maintain? It doesn't make sense to me whatsoever that you would have that perspective. You just want to have your cake and eat it too, and I think that's greedy and unfair.

> And just like a car, no one is going to go out and buy a completely different phone to use my one app. It's just not practical.

Its' very practical. You can do it in an instance. iPhones have very high resale value. But people would rather have the iPhone and its App Store, over access to multiple app stores via Android, hence why they bought an iPhone.
There are currently no signs that Longwave and Shortwave AM broadcasts are going away here in the UK. If Droitwich Transmitting Station[0] can stay operational for another 14 years it will be 100 years old!

[0]https://en.wikipedia.org/wiki/Droitwich_Transmitting_Station
Working in a small Company always let me astonished learning things about unicorn apps. But really an application like Whatsapp need 1000+ developers!? I can think about teams about android, ios and web app. X2 if you think about teams for business oriented services. But 1000+ developers for what?
The advantage of the Option type is that you don't need to check for nullability, you simply pattern match on Some(_) or None. A type of `some{T} | undefined` means that the expression can have values `Some(_)` or `None` or `undefined`, which defeats the point of the Option type!
There was a time when F14 and Swiss were internally available and not in open source. You think there aren’t other things that aren’t open source yet that those guys have?

folly/absl/gtest/glog/tf/pytorch/etc/etc aren’t perfect, but they have stuff that no one else has, and they had it before Github did.

“The guy who wrote the book” so to speak often works at one of these places, and while some of the stuff makes it into open source some of the time, some of it doesn’t.

Google gets Borg, OSS gets k8s.

Citing NIH is kinda flamey as an alternative to citing examples IMHO.
As I said, Anglo-Saxon University prestige is overrated.

Maybe someone from a Grandes Ecoles would know ;)
Insecticides and herbicides are famously trouble for stomach bacteria, among many other things.
And yet that's getting ignored here...
Making the plants produce them directly just makes the plants a lot less safe for human consumption.

(I've a bunch of related allergies and intolerances and am tired of the IBS and pain related)

I'm otherwise a fan of GMO.
If anything, I think unchecked exceptions were the bigger mistake in Java.

Checked exceptions are pretty much isomorphic to result-types that are oh so fashionable these days (see also Rust), unchecked exceptions on the other hand are completely invisible and unpredictable crazyness.