skysight-inc/HackerNews huggingface dataset:
There could be 2 ways to solve that specific problem of sending a welcome email:

1) Write a GraphQL schema stitching gateway, that can write a custom mutation that delegates to another API (or GraphQL API) to write to the database, or writes to the database directly. This is becoming popular as more backend services expose their functionalities via GraphQL.

2) React asynchronously after the database write is done. Put the database event in a queue, for example, that runs the email send async-ly.
Unix: Making Computers Easier to Use – AT&T Archives Film from 1982 [video]
> Definining "monad" as a thing for which monad laws hold is exactly the sort of almost-tautological non-explanation that makes people roll their eyes at FP aficionados.

Thank-you for crystallizing and articulating a frustration I have often, as a beginner to intermediate Haskeller.
It is difficult to get someone to understand something when their livelihood depends on not understanding it.

Drug trade earns money; money buys guns and shooters; guns and shooters protect drug trade.
Well don't leave us in suspense, why isn't PDF a suitable replacement?

Yes, but it's not a fully ACCESSIBLE document, which is half of the point of the article.
Per Twitch's stream analytics, on one of my data science programming streams on Twitch the majority of my viewers came from the Explore page, under the relatively-less-popular Programming category.

I wonder if there's a bit of game theory in play where it's impossible to be discovered when playing a megapopular game like Overwatch/Fortnite, and it's more advantageous to play relatively more obscure games. It wouldn't be the first time working the long-tail has been effective.
every year i participate in the extra life streamathon fundraiser. i usually get a few viewers here and there but for the most part it's just me the whole time. the concept of streaming for nobody is a little disheartening, especially if you're narrating to yourself, but when people come in and i interact for a few minutes it's a lot of fun. i'm looking forward to it next year for sure.
I can only speak for myself, but as someone who streams off and on (mostly off, since I've got other things going on right now that I need to focus on), I have no particular desire to be famous. I'd rather not be famous. But it's really enjoyable to be able to share my experiences with other people. For a lot of games (most?), there's a significant amount of organic content that comes out of you, a specific person, going through a game's content and seeing it for the first time (or the second, or third, ... for games that have that kind of replay value). Having even one other person engaged with your journey, and reacting alongside you -- that's fun.

It's not the same as having friends over. You play with your friends. They're having their own experience, and you're having yours. Streamers get to have other people share that experience.

(To `moretai's downvoters: Yes, we can read their comment as an insensitive, unimaginative put-down of this group of people. But why should we? I think there's an interesting point to be discussed here, and I'm more than willing to read `moretai's comment as a genuine question.)
I can't help but wonder why people in this position don't give up earlier. It sounds like you need quite a bit of the right sort of self-promotion to get off the ground floor. Only once you've got enough of an audience will word-of-mouth start working for you.
Or, the way you eliminated one class opens up or makes more likely a different class. Maybe avoiding pointers makes it more likely to introduce logic bugs. It could also make some algorithm too slow, which one could call a performance bug.

I don't think it's particular likely, but there are always trade-offs.
Accusing people of not reading the article is against HN community guidelines.

https://news.ycombinator.com/newsguidelines.html
I'm not very familiar with Twitch, but isn't the community interaction (text/voice chat?) a large component of it? I'd imagine these streamers would be very interested in chatting with the 1 or 2 people who stopped by their stream.

If the bots can't respond they'd be found on pretty quick, and making bots who can pass some sort of "video game specific Turing test" is a major endeavor. Only getting instantly recognizable fake viewers would as demoralizing as no viewers.
Getting the Lead Out of Lithium Battery Recycling
I've considered it. But, the transaction overhead isn't small. I'd need to reserve the car in advance, Lyft to the rental agency, etc. Currently, I can decide to go to the mountains on a whim Friday afternoon.
Maybe clock recovery strategies can help? But the initial problem is that the hearer doesn't know they're hearing a message (maybe?), which is like detecting steganography.
Five facts about smell
fMRI studies are like studies showing which transistors are active during certain computations. Maybe it means something, maybe it doesn’t.
1) The conference did the uploading, not the speaker

2) I think the videos were thrown up on YouTube in a "why not" sort of way, with minimal effort. Notice how the whole channel is just that specific event over that couple of days. I'm glad they posted them, but it was primarily an in-person event.
Anyone have a good recommendation for SAP alternative for small medium businesses (SMB)? All the companies I work for use something equally convoluted like Oracle and SAP. When I worked at a startup, I debated for a long time which ERP/PDM system will be the most effective (which I never answered).
Former SAP employee here, who btw, is very critical of SAP. I also happen to have worked in Escalation Management at SAP, who's prime responsibility was to take SAP projects that were about to go south and put them into "escalation" before they the hit newspapers.

Let me try to explain the mystery around SAP.

1. Most of the situations where SAP projects go haywire is largely due to (a) incorrect implementation by the service integrator and (b) challenges between business processes and systems support for those business processes. Sally in accounting wants to see sales per unit for the Germany promotional rollout, while Karen in marketing wants to see overall sales for 100 store locations in both Germany and Netherlands. The NL's retail stores don't split out VAT because their POS systems don't allow you to do that...etc etc. You can see where this is going...

2. Implementing ERP at the global level is incredibly complex. There's this idea (especially in the HN circles) to just "throw SaaS" at the problem, but it's not that simple. If you haven't been involved with an implementation at this size, it's not worth discussing. It's a wonderful hodgepodge of culture challenges, project management methodology clashes, and misalignment of strategy.

3. Yes, no one ever got fired for hiring SAP, just like they did with IBM. This is obviously changing, but still has some truth to it (see next point).

4. Honestly, being a CIO of a global F500 company absolutely sucks. If you try to stick your head out and do anything innovative and it fails, your axed. Many CIOs simply go into turtle mode - protect the budget you're given by the CFO and just don't f anything up. A CIO who choses to build a custom ERP and fails will be fired 100x faster than one who uses a packaged solution and it fails.

5. What's the alternative? Oracle? At this level, they're all the same (ok, not totally true, but generally accurate).

Happy to answer any questions...this area is unfortunately/fortunately close to my heart.
That is one hell of a Django app.
> it is something in the code you just touched!

Yes, but you also need to localize the effect of the bug to know why is it that the code you changed broke the program (and remember that we're talking about a case where the rest of the program is not familiar to you enough). Good unit tests can help you find the immediate effect of the failure, rather than the ultimate one.
I think people are just very on guard against oil & gas interests, which represent some of the biggest money in the country and indeed the world.
How to always get a reply to your emails
> I somewhat miss the hard FN keys, but for me losing them is not a deal breaker because I can coerce the Touch Bar to display function keys by pressing the fn key.

And you can really use them without looking at them?
$6.3T BlackRock Targets Cryptocurrency
Every few years, over the past 20 years, I look around to see if there are any open source contenders in the ERP space. There are usually a couple, but you never get to hear about them again. I think it's a difficult space to enter and succeed in and I think most efforts probably underestimate the complexity and isn't funded or run well enough to tackle that adequately.
According to 538 Hillary had a 70% chance. Yes. Many people completely interpreted that like 70% would vote for Clinton. I had to explain the meaning of "70% chance" to people who should know better. I think they just heard the number and didn't give it a second thought.
What I don't understand about Twitch is how anyone has time to consume this content. When it comes to sitting on your butt and watching something, the traditional TV show is moving to an on-demand model. Twitch is a step in the other direction, where if you faithfully consume content from any Twitch channel, you have to sit down and watch for hours every night when the streamer is online. Who does that? I imagine it's mostly students and single young professionals.
Will a browser in 2028 be able to render those pages correctly?

Why not? Modern browsers can still render pages from the 1990's.
> It also supports adding a transcript (like subtitles or closed captions, but without timing information), and it will use speech recognition to try to line it up with the video.

that is genuinely pretty cool and a good compromise between manually adding timestamps to captions and dealing with the hilarious but often very incorrect auto-captioning.
Assurant – Wayne (Philly), PA – Full-Time – Visa – Onsite – Cloud Architect
Nah. The bridge crew all have executive lifeboats. No biggie if the ship goes down.
It does seem like most of his efforts were redirected into his book lately, which is understandable. I picked it up a while back and have to say I'd recommend it.
I started streaming on Twitch a few months ago, and there are a few third party bots that join every channel they can find, such as "commanderroot" (used for collecting data), but they don't interact at all. I also have a theory that there are people that artificially inflate view counts of certain games, though I'm not sure if it's game developers or other streamers trying to grow the audience for the games they play. Twitch is currently one of the best forms of advertising when it comes to PC games.
Keeping a "did" file is also immensely valuable to demonstrating your performance and achievements to your employer. Think about all the positive things you've done for work over the past year. It's hard to account for them all mentally, and even harder for your boss to remember.
Actually, once you get the name right, it being the Department for Digital, Culture, Media, and Sport, it becomes somewhat clearer what it has to do with this WWW site. But this then prompts the question of exactly when "digital" became a noun. (-:
"impossible" is a highly contextual term here. Adding this to Rust isn't "impossible", of course it isn't. We can "just" slowly turn Rust into Haskell using the edition mechanism. Done.

When folks say something is "impossible" in such a context, they mean "given the constraints", which include goals the lang team has for the language. An effects system is pretty heavyweight and may violate these goals.
Which country, potentially which industry? This is something where from what I've seen there's often local players which are interesting, but would be a bad choice in other places.
ITT: Nobody knows what they're talking about.

People need to stop assuming all governments work identically and that numbers are comparable in any way. In China local governments COLLECTS NO TAXES, thus they fund all their expenditures by debt. In 2 years there's going to be widespread tax reform and all this debt will be wiped away.
We don't know that beta amyloid causes Alzheimer's. (I was a grad student in a lab that did research on beta amyloid)
I love StackEdit, syncs to your google drive and supports Markdown, multiple folders, and folders within folders.

Works on Android, IOS, Mac, Windows, Linux, etc
Scala almost has this. You can declare a function with "implicit" arguments, and the compiler will look for something that matches the requirements in each calling scope and insert it automatically.

It does not, however, automatically infer the implicit parameters based on usage of implicit arguments in the function body, though.
Sure, but that’s a small salary, even for Germany.
Financial modeling is about risk adjust return. Because GS knows they can not determine with certainty the outcome of a given investment, they diversify and hedge. Most of all, GS is a market maker, the equivalent of a bookie. To say that GS’s models “didn’t come close” is to ignore all the ways in which such a grading scheme is different than GS’s actual business model. If their WC prediction efforts acted as anything more than a fun spirited PR project, it was likely that GS wanted to somehow keep its employees engaged and adding business value during the WC which they otherwise would have been certainly watched all month.
Streams are stored so you can watch after the fact, in which case it’s basically TV.

There’s no requirement that you only watch while they’re online.
It can be fixed in CSS. Add scrollbars to <pre> on small viewports, or have it wrap on small viewports.

Opera Mini could do magic with forcing text to wrap on small displays, why are mobile browsers shit today? If you don't want this to be usable on an actual computer, why not make HN an app and be done with it? Comments could become even shorter and more inane than they generally are already.
Third decade’s the charm!

(I’ve been working on an unreleased unusable IDE for a little over ten years, but the end is in sight for me!)
> The cost of fixing a discovered bug seems to grow exponentially with the amount of code in which the bug may appear.

That's completely at odds with my experience.

I find that for local bugs, the cost of locating them grows with O(log n) of the amount of code. And for non-local bugs (interface bugs, system bugs, incompatible specs...) unit tests don't catch them anyway.
Impressive! How's it different from postgraphql (https://postgraphql.github.io/) or postgraphile (https://www.graphile.org/postgraphile/)?
Very interesting article. I have nothing substantial to add I just want to point out how "cyberpunky" the lives of some people have become. Twenty years ago this would have fit right into the storyline of a dystopian cyberpunk novel about poor streamers who spend all day in front of a computer screen trying to become the most popular "gamer in the online gaming community".
> ... UK gov is falling prey to politics from the same people that brought you #brexit.

Oh do shut up. What has 'Brexit' got to do with this?

This is the UK equivalent of turning everything into an excuse to bash Trump/Republicans.

> ..That's my reading of that anyway

I am sure it is. It isn't anyone else's I expect
More on point... more radioactive material is released by coal emissions than by nuclear reactor waste output annually.
I guess people treat it like sport. Most people wouldn't think it strange for someone to watch a 90 minute football match
The nightmare videos of kids’ YouTube – and what’s wrong with the internet today
You might be interested in a UX talk given by Apaar Tuli, lead designer of Whim, called The MaaSive Future of Transport:

https://interaction18.ixda.org/program/talk-the-maasive-futu...

Disclosure: I work at MaaS Global
> I do think it's important to have unit tests when the unit's behavior is complicated. Where I start to get worried is when there are unit tests being written against classes that have very little behavior that doesn't involve interaction with some other module.

I think this is precisely where unit test suits start to have problems. Good, flexible unit testing requires a lot of judgement about what will be useful to test and what will be too much of a burden in the future. Unfortunately judgement is hard to acquire and even more difficult to teach, and a lot of teams want to create and enforce over-dogmatic testing "standards." When unit testing, you have to balance:

1. What testing do I need to have confidence my code is working?

2. What testing do I need to catch likely regressions?

3. What kinds of tests will just get in my way in the future or are literally useless [1]?

[1] E.g. unit tests that essentially only test core language functionality, once you take out all the mocks.
Amazon pay nobody to prevent such problems, so nobody is liable. It's not their fault they're too poor to hire anybody to solve such problems as counterfeiting or piracy, or to pay taxes.
replace "watching TV" with "hanging out with your friends" and maybe it makes more sense
I'm a greenie, but I do figure natural gas could potentially be a stepping stone while we try to figure out the fossil fuel alternative. I don't see it as a long term solution, but at half the CO2 and much cleaner burning, it definitely seems like we should be scrapping coal as fast as we can- which could meaningfully decrease the US's total emissions.

Then, we figure out what to do next. We just need Zeno's Paradox working for us.
I'm having trouble thinking of how unit tests are "expensive to maintain"; you don't really need to do anything other than having them there.

If it's because you need to change them after a feature changes or breaks, isn't that the entire purpose of testing and not exclusive to unit tests?
Ask HN: reading at work
tldr: do/can you read at work?

Dan Luu has a great article, 'How I Learned to Program', in which he writes:

"I asked if I could expense books and read them at work. This seemed perfectly normal because a lot of other people did the same thing, and there were at least two people who averaged more than one technical book per week, including one person who averaged a technical book every 2 or 3 days"

this sounds 1) awesome! 2) fantastical; I cannot imagine pitching this to management and cannot management being ok with it. but maybe it's more common than I imagine, or more common in certain sectors (Luu was working at a chip design company).
Sure, but that's because mobile devices have really small screens. You could create PDFs that were meant to be viewed at that size, but why?

You'd have the same problem trying to read a regular book through a mobile-phone-sized window. That doesn't make books an unsuitable vehicle for document delivery.
Thanks! And good questions, firstly no scraping involved. The api's are much easier to work with.

For Hacker News it uses the official JSON api https://github.com/HackerNews/API/blob/master/README.md

And for Redit, it simply queries the url directly eg: https://reddit.com/example.com/article.html

As for your second question, go easy on me it's my first extension ;) But yes I plan to port it to Firefox too, as the extension APIs are amazingly similar!
So, the same as watching sports? Most need to limit what they choose to watch, you don't have to watch everything.
Because they obeyed the court order and took it down, so obviously they didn't have to do any of that.

I really don't understand what you are expecting. If you disobey a court, you get punished. Why is that strange?

And the exile in an embassy thing was unrelated to any leaks, despite Assange desperately trying to make it as if it was.

Look, I supported Wikileaks goals at first, but then Assange tried to turn it into his personal PR firm, using the name "wiki" to try to make it as if it's some "for the public thing".
Holland’s Struggle with Its 9/11
Depends. I’d say for example that the primitive technology channel does it out of love. So there are people like that, even if the wast majority does it because let’s be honest a career in video gaming sounds great. But the thing is those are also the least likely to attract viewers.

Top spots nowadays are claimed by sponsored players anyway and making it as an amateur is nightmarish difficult. Fame grows exponentially because once a talent emerges companies are quick to sign it up and after that they provide most of the promotion for their talent to grow.
File > Save As... > Web Archive
> unit tests increase maintenance liabilities because they are less resilient against code changes. Coupling between modules and their tests is introduced! Tests are system modules as well.

Every time I hear this kind of statement, I think of Bob Martin's article: https://blog.cleancoder.com/uncle-bob/2017/05/05/TestDefinit...

> The author tells of how his unit tests are fragile because he mocks out all the collaborators. (sigh). Every time a collaborator changes, the mocks have to be changed. And this, of course, makes the unit tests fragile... the author of the above blog has given up on badly written micro-tests, in favor of badly written functional tests. Why badly written? Because in both cases the author describes these tests as coupled to things that they should not be coupled to. In the case of his micro-tests, he was using too many mocks, and deeply coupling his tests to the implementation of the production code. That, of course, leads to fragile tests.

> What the blog author does not seem to recognize is that first class citizens of the system should not be coupled. Someone who treats their tests like first class citizens will take great pains to ensure that those tests are not strongly coupled to the production code.

Testing is hard for a number of reasons, not least because given five engineers you'll get six definitions of Unit vs. Integration test. I think the term "micro-test" is useful as a contrast; most beginners sit down and write tests for every significant function, be it public or private (i.e. they write micro-tests), and this produces tests that are tightly coupled to the shape of the code at the time of writing.

However if your code is well-encapsulated, and just tested through the public API of your class, then you should be able to make fairly significant changes to the structure of that class without actually changing the tests. (Of course if you change the API then the tests must change; it must always be so).
Most people who are serious about doing the Twitch thing, even if it's just a serious hobby, pretty shamelessly spoof viewers. Even if you don't want to be dishonest about it, it is in some ways unavoidable. Have the stream open while you're on to make sure that everything's working? That's one viewer. We do group streams and people cycle in and out, so we keep a laptop with the stream open outside the recording room; that's another. People open it on a phone to check chat, that's another.
As proven by Ada, Modula-2 and a few other systems languages, you don't need to scatter pointer arithmetic all over your code to achieve the same machine language output.
Yes, it's definitely a clickbait article. Nearly all the links within the article go to other pages on the site and the antiviral drug is never specifically named.

I'm guessing it's acyclovir since there's a link to another page on the site in the "Related Coverage" section.
I've worked with gov.uk. They are essentially a startup inside a huge organization, and their great work reflects that. One of the things they told me that struck me:
most websites have customers, we have users.
What they mean by this is that being a customer implies choice, whereas there is no alternative to .gov.uk, hence users don't have a choice. So it's gov.uk's responsibility to make their website as clear, accessible and useful as possible.
New Report Says Chinese AI Is Rich in Funding but Short on Talents