skysight-inc/HackerNews huggingface dataset:
I say that it depends on the "unit" you're trying to test. Is it large and complex enough in itself that you need to isolate it from other components (dependencies)?

For your use case, if the shopping cart is simple enough, I'll just choose a simple or frequently used discount calculator and make some unit tests to test the shopping cart functionalities. Then for the rest of discount calculator cases there will be separated unit tests.

The problem with testing almost everything in isolation makes refactoring some small-inner components costly, since every change may break some of unit tests.
Why is the aspiration so slow?
Depressing. The government isn't remotely taking the ecology seriously enough, except where tourism is affected, and even then the mining/Adani is more important.
Google Is Pushing Zoom Out of Gmail by Default Starting Today
And as always, on these types of calls, one should never take a "no" from someone who doesn't have the authority to say "yes". Of course, this has to be balanced with how much the question/problem at hand matters to you.
What books if I might ask?
We've known of paint for a while.
Turns out I actually have the H21s. I had forgotten exactly why I wasn't using them with my XPS but turns out it's because they are a nightmare getting them to connect. Once connected the audio stutters awfully but only when I type on my wired keyboard or move my bluetooth mouse. Maybe it's my laptop at fault but it all works fine under Windows. I tried following the steps in the article (just in case that helped) but it's still unusable. Shame. I'll go back to only using the H21's them with my Android phone and in Windows, both of which work flawlessly!
Nice write-up. Thanks for posting it.

You captured my angle perfectly with your first sentence. I really wonder whether those who tried planned economies would've done better at it if they'd had better tools. I don't want to see an experiment in that vein anywhere I live, but I do wonder.

If you still remember it well enough to do so, it'd be interesting to see more detail about how Beer's work is horse shit. Mostly because I like the rest of your take on cybersyn and you might save me reading the horse shit for myself if you post it.
> pure spam

I think this is what really did usenet in for me. I used to use newsgroups quite a bit in the early 2000s, then moved on to forums, and then of course social media took over (and now I'm substantially over that).

Given that usenet is now past its popular heyday, I thought it would also be past the peak of spam - and it probably is - but having just registered with eternal-september.org, I'm still pretty surprised by how much spam is in some of these groups. Granted a lot of it is old (because I told Thunderbird to just download all the headers), but there's loads of more recent stuff as well: e.g., crap about COVID in all kinds of groups, as if we're not hearing and reading enough about it already.

This is kind of a shame. If newsgroups had a viable mechanism for combating spam I think they'd still be a great place to hang out because they were and are a one-stop shop for such a wide range of activities and interests. In addition, and ignoring the spam, the reading and writing experience is still really pleasant.
I'm probably preaching to the choir here but personally I find the act of downvoting a legitimate argument as opposed to providing a counter-argument distasteful. Downvoting ought to be limited to a particular subset of comments that does not include simply ones you disagree with. It honestly does smell like censorship. I read some of your other comments, and I don't even agree with all of them, but they didn't strike me as worthy of minimization.

Back on topic, the institutional investors having a diversification default also occurred to me when I read your comments. It raised a lot of questions in my mind that I don't have the answers to. What percentage of the market is represented by institutional investment versus non-institutional investment where at least the investors have the option of selective investment over diversification? Can institutional investors break from the diversification strategy without being seen as picking winners, anti-competitive, or gambling with the money? More fundamentally, how do you take a system which operates on 0% information and transform it into something that has at least 1% or 2% information?

Anyway, I don't expect you to answer those questions. Thanks for the food for thought.
That's not very cold though. The water should be ice cold i.e 0 C° for the best effect.
> But that is an implementation detail. Only the BulkPurchaseDiscountStrategy knows whether it's 9 or 10 that's the trigger.

Language is poor, but I think there is consensus on what "implementation detail" means, and I don't think that's it. Whether it's 9 or 10 is customer facing behaviour. It's behaviour that might come from your marketing team or product owner or whatever, but it is outward facing. It is something that someone could write in a word document and call part of your specification.

The implementation detail would be whether that logic lives in BulkPurchaseDiscountStrategy or as one case in a big ShoppingCart class. A user pressing buttons on your UI can see the result of the price break, but they can't see the difference in code organisation.

You can say "price breaks should occur at 9 items" without ever saying "BulkPurchaseDiscountStrategy". In one ideal, all tests would test user facing requirements and not know anything about your code. You could refactor your code to your heart's content and know you the result was still what you wanted. There are downsides to that though because those end to end or system tests are fragile to write and expensive to run. It's much easier to cover all possible code paths with more focused testing. Hence in this case you could test the top interface of ShoppingCart, with all it's assembled dependencies. Not the same as pushing button in a Web Browser, but a lot more convenient to write and run.
Show HN: I built a SaaS to allow customers to send quick screen recordings
Most of the time I initiate contact with Amazon customer service, I seem to get a custom response. When pushy, I have gotten excellent custom responses.

I expect Amazon does far more revenue/customer, though.
I work in support, have for close to a decade.

I take at least a little pride in being a personable worker who can read the situation and respond appropriately from the beginning.

Acknowledging the problem and the concerns of the customer is at least the bare minimum and they didn't even do that.
I don’t necessarily disagree that Spotify’s response was unsurprising, but is the number of Spotify users relevant? Logically, the number of support staff ought to scale with the number of customers. It’s not about size, it’s about where Spotify has decided to invest.
History Rhymes: Bitcoin and the Rothschilds
Sadly, the format of that doc is browser-only. I prefer an actual PDF that can be read offline:

https://www.zilog.com/appnotes_download.php?FromPage=DirectL...
The MD VDP also supports SMS video mode (but not the original TMS9918 modes)
What do you mean ? Being able to transfer from one service to the same service is still practical. It allow you to transfer playlist from one account to the other.
Science gives us options but doesn't tell us what we _should_ do. That is up to voters in countries with democratically elected officials.
Breakdance.
It is funny. Originally the value of Netflix was that you could watch 10 seasons of an old TV show in one go. Now you can watch 1/2 season (10-13 episodes) of a new show.

I have started to check if there is more than one season out before I watch a new show, and frequently there isn't.
An elegant solution to installing Docker dependencies twice
Autotranslation for the lazy: https://translate.google.com/translate?hl=&sl=ja&tl=en&u=htt...

[spoiler alert?] I was expecting a "transferring station" to connect two rail lines, but it is a "sightseeing station" that has a nice view.
The X was just bad for tiny scratches. Mine had a bunch and it was stored in my pocket without anything else in the pocket to scratch it. It was the only phone I had that scratched like this.
You sound like you've never heard of boycotting. Yes, that what you described is how boycotting works. It's a very common thing. It ranges from civil rights activists boycotting segregated buses to religious conservatives boycotting stores that sell birth control/plan B to people using lyft instead of uber because of all the issues at uber. One of my friends refused to buy milk from Oberweis, a dairy company in the Chicago area, because they discriminated against polish immigrants like his grandparents way back when, so his family had decided to boycott them forever. This is not some sort of new concept.
I'm speaking of the normal DOM representation of the HTML in the page. A server-side highlighter generates HTML with css classes or styling attached that gets turned into a DOM by the browser. A JS-based highlighter edits the DOM by adding css classes or attaching styling. The in-browser representation of the end result, which a browser extension likely works with, can be the same, and how it looks like exactly is more important for their functionality than if the server or JS did it.
Fictional books such as Snow Crash and Jennifer Government explore the idea of non-governmental neighboring tribes.
I assumed this change had the opposite motivation since people who would ask for more language features could now do them in macros while keeping the core language small.
How can a [assumingly benevolent] state survive without using propaganda, censorship, and surveillance today, when all the other states, as well as malicious parties within itself would inevitably deploy propaganda, censorship, and surveillance against it?

This is a genuine question. I would love propaganda, censorship, and surveillance to be non-existent but I can't really see a viable alternative. That would be cool if we could make the people immune to propaganda by means of education but I'm sure there will always be plenty of people who would remain easy to manipulate.
Sure, though his position hasn't changed much on trans. I've always agreed with him that people who switch genders shouldn't be treated equally when it comes to contact sports like UFC. He's just been more distasteful about discussing it over time IMO.

If I had to sum up how Rogan has changed, he reminds me of many older men who just start to become aholes to everyone and everything, and believe that everything always deserves criticism while rarely deserving to be taken seriously. Though age is a factor, I think his FU money and success has completely gotten to his head.

I was a fan for years from about episode 50, but rarely listen/watch now. His exclusivity is not a factor keeping me subscribed if I consider leaving Spotify in the future.
I am just shy of 10 years professional experience now and I have learned 1 very important lesson:

You can safely ignore the opinion of anyone/anything that claims there's a "golden solution".

That goes for ALL aspects of programming. EVERYTHING has a tradeoff, and it concerns me how often that pro vs con analysis is just never done.

I've worked in all the flavors here:

* Well designed, easy to use interfaces in a massive monolith

* Poorly designed monoliths with litanies of gotchas and edge cases

* Super fast microservices that "just work"

* Garbage applications tightly coupled across a network layer

What it all comes down to is the strength and ability of the design phase. Good engineers = good products.

This shouldn't need to be said but the comments also appear to sidestep that problem with a few proclaiming "golden solutions".

Be weary :)
Show HN: Shared cloud list without registrations
To be honest your examples were aired on TV some time ago where the normal season was 24 episodes (about 40-45 min long for seasons like Lost) and a half season 10 or 12.

Most of the new shows are between 8 and 12 episodes about an hour long.
Let's start writing code in a simple, understandable way
If you just want a csv of all your playlists right now, instead of potentially "30 days". This repo works well.

https://github.com/pavel-aicradle/exportify
This argument seems very similar to the argument that not all Trump supporters are racists but (practically) all racists are Trump supporters.

There is a very difficult line to tread here, to me it feels like any inference between the state of Israel and the Jewish faith is itself somewhat anti-semitic, or at least it should be. However, the International Holocaust Remembrance Alliance definition itself does it so I am probably wide of the mark.
Did I expect different than what I got? No, I didn't. I honestly expected exactly what I got.

Before I even emailed I had already made the decision to move, but I figured I should at least give them the opportunity to respond, and at the very minimum on my part give them feedback as to why I'm leaving.
No, you are right, the situation is much more comparable to Weimar Germany, which is far far worse.
Y'know, that sounds like an interesting idea for VR with some custom controller for tactile input and feedback... something like a stress ball, or silly putty, or something like this.
How do you even figure out who does and does not have the authority to say "yes" an an outsider though.
Having only seen the first two, Parks and Rec and Community definitely suffered towards their later seasons, although I would say they were still good towards the end.

Parks and Rec season 1 was just six episodes. Yeah it improved a lot in quality, but viewership appears to have actually declined over time according to wikipedia.
Because I use the main screen for more than displaying docs and chat? And it's a problem to spend large-ish amounts of money just to workaround software problems?
Marketing agency for NFL, MasterCard, MLB, SoundCloud exposes clients’ data
We used to say "having a weston" for that - from weston super mare.
I would argue that high paying jobs are a big driver of cities and never in human history have people had the ability to work in high paying jobs outside of big cities like we do now. The ability to effectively work remotely is largely dependent on job duties and IT in general can work remotely with little productivity loss. Hence the bay area getting hit harder than most.

To me the question is whether companies/employees will continue letting/wanting to work remotely in the future. I am certainly not concerned about a population collapse in big cities because many companies and people want to live there and don't because of cost.
It very very likely messes up the magnetometer or even breaks it completely (I've managed that myself).
There's huge energy potential for tethered floating wind turbines off the California coast.

The costs seem to plummet far faster than even the rosiest expectations, too. A more recent auction than the Hywind project discussed by the BBC here, at Dogger Bank, has anchored turbines but is super cheap, about $50/MWh, which for the UK means cheaper than natural gas:

https://cleantechnica.com/2019/09/23/uk-offshore-wind-prices...

They recently ordered 13 MW turbines, which are absolutely massive compared to the tethered 5 MW turbines at Hywind.

Europe has been very quick at changing their offshore oil expertise into renewable energy know-how. The US is far behind, and though there are a few plans on the US Atlantic coast, it seems that our energy giants are determined to go down in the flames of fossil fuels rather than transition to the future of cheaper, cleaner energy that everybody else is building. They deserve their low market caps these days.
Hahaha, Windows-only malware.
That definitely would work for Earth today. But note that to simulate observers on Earth today, you had to simulate from the big bang up to (today - light-crossing time from body) for each celestial body.

That's significantly larger than Earth, only to simulate Earth today, because tomorrow the entire universe would go dark.

Lightspeed gives structure to the computation of the universe but it doesn't reduce the load.

Saving templates doesn't reduce the load either, not in the sense I'm considering. It may practically mean that you don't have to run it again, but theoretically if you want to know how much computation got you to this point then you have to count the computation of the templates.

So if you had our whole universe at your disposal, and knowledge of all natural laws and processes, and knowledge of the starting conditions, and absolute power over matter and energy, you still cannot simulate our entire universe with anything less than just restarting it. If you wanted to simulated it specifically for some observers, you can free up resources using the lightspeed method but that's a computational debt you cannot pay if you wanted the simulation to continue.
It comes with a usb c to lightning cable. Plus any of the bajillion chargers/cables most of us already have will work.
Do you mean "Seasons" instead of "Series"?

A Series consists of one or more Seasons. A Season has episodes.
Twitter suspends accounts for posing as Black Trump supporters
Hey all,

Creator here. ScreenRequest is a simple web based screen recording tool that allows your customer (or user) to easily send you a screen recording. I see the tool being most useful for triaging support issues. Would love to hear some feedback!
A "fake" isn't a test; it's a real, working implementation of some interface. The only reason we don't use such implementations in production is for some non-functional reason (efficiency, resilience, etc.). For example, if we want a key/value store we might choose Redis for production, but a HashMap is a perfectly good fake (and you can bet that the language/library implementing HashMap has a ton of tests!)
Netflix gained ground in original television by funding bold new stuff that nobody else would (Orange Is The New Black, BoJack). They've now becomes slaves to their data despite the fact that the signals they rely on are hopelessly confounded. It's possible that they've hit upon the right strategy, but I both suspect and hope that isn't true.
Dangerous statement... Is it because the 'problem solvers' in question don't in fact know how to solve the complexity in code?
I think this depends on the structure of the series.

When all TV was by appointment (no easy way to rewatch), series emphasized self-contained episodes. You could watch half of the episodes of any season of Star Trek or TNG and still enjoy it. Same with other popular shows like Magnum PI, Law and Order, etc. There was some ongoing charater development, but it was pretty slow and minimal.

As rewatching got easier (essentially once market penetration of VCRs got high enough), popular series started introducing more serial story lines. X Files is a great example; it started off with mostly "monster of the week" self-contained stories, and then over time added "lore"--ongoing serial storylines.

On digital platforms, watching and rewatching are basically the same thing, so a series can be 100% serial storyline. Essentially, they are very long movies that are released one chapter at a time.

This has affected movies too. There's no way something like the MCU would have worked as a concept without very easy ways for viewers coming into the middle to go back and watch or re-watch earlier movies.
Or thinking that this time, a constantly growing wealth gap between the rich and the poor won't lead to a revolution if major reformation doesn't happen first.

Also, pretty sure MMT knows that printing money leads to inflation. Thats why the theory has taxes to remove money as well, if you want to tax someone other then those who hold capital evenly (which is inflation).
We still support migrating to Spotify. We want people to be able to migrate FROM and TO any music service. They get to decide what platform they want to be on.

And yes, you can import your songs between accounts on the same platform.
What if they were promoting a company that funds misleading nutrition research to fool people into thinking sugar is less harmful, leading to countless early deaths and diabetes?

What about a company that's the largest plastic polluter in the world, that also lobbies to kill regulation to reduce plastic pollution? It's hard to know the full extent of the harm microplastics cause the ecosystem, but it's unlikely to be small.

How far do you have to drive to find a supermarket that doesn't sell Coca-Cola? Or is that not worth the same level of condemnation as interviewing the wrong person?
Binge-watching on streaming services is a double-edged sword. On the one hand, people can jump into a show after missing the first season and hearing good things about it. On the other hand, something I might have started watching every week on network tv, I might decide to wait and see. I know I can watch it later for no additional cost if it turns out to be great.

Now the show is under a lot of pressure to maintain a level of buzz around it. But I also might not watch it if it seems like an okay show but the moment has passed.

I low-key wanted to watch GoT when it was on. Now I wouldn't bother, because all the people I could talk to about it have already watched it and are sick of it.
I dumped mine due to the impending shutdown. I only had a quick look, but the data format looked atrocious.

I'm not sure you could actually do it worse, mine was a folder for every playlist, with a CSV for each song.

Trivial for me as a programmer to reformat, but useless for the general public.
Oh okay. So iOS is mostly fine but WatchOS and tvOS have problems?
Yes, which is one reason I dislike Rogan. However, Spotify and Jones aren't in direct business (making money off their business deal together). I'm fine with Spotify and Rogan doing business.

It's not that I go around worrying about what's said in every song and podcast on Spotify, it's rather whether I agree with Spotify's business practices or not. I wish Spotify told Rogan to stop having conspiracy theorists on his show (unless they are critically exposed), but I don't consider Alex Jones as being a part of Spotify's business model because he is a guest in one of their pods.
Gotta disagree with you. A well built / designed / simple monolith beats any poorly implemented microservice of the same domain problem anytime.

If you cannot separate the domain problem correctly in microservice architecture, be prepared for the worst.
Most of them, that i know?

This is more cultural/social than sex/biological based.
Hey HN! We saw an issue in the trading ecosystem: trading beginners were flocking to popular forums like Wall Street Bets and other Reddit groups to find their investment advice, polarized by the screenshots of large gains only to lose half or more of their account value. Our goal is to provide a platform that shortens the experience gap between beginner and advanced traders, allowing everyone to invest their money with confidence, without the hours spent researching and waiting to enter or exit a trade. Feel free to ask me any questions about the product or engineering side of the platform.
Hard to take the site seriously when it has a Marxist "Capitalism" section. Curate's egg.
The point of LOST was to dangle more and more plot twists to create cliffhanger suspense every episode, not tell a story.
Though that is an interesting topic. The data doesnt suggest that sleep had any effect on the depression rates of teens.
> They tried to bolt Java applications together using Amazon Kinesis (which isn't intended as a service bus)

In my travels I've learned that 'Using %NOT_ESB% as an ESB' is the first sign you are entering microservice hell.
Spotify allows you to download music to Garmin watches. Maybe you're underestimating the difficulty of porting Spotify to Apple Watch?
Impressively, it’s pressure sensitive on my iPhone XS Max.