skysight-inc/HackerNews huggingface dataset:
I think the point the GP is making is that your calculator might have a function like like

calc_div(num: Number, den: Number) -> (Error | Number):
if den == 0:
return Error("division by zero")
else
return num / den

Now this function pre-validates the data. But it might be used as part of a much larger system. Should that system be programmed to know that `den` should always be non-zero and pre-pre-validate accordingly? Or else should it leave "calc_div" to be the expert on the rules for division?

If you take the latter approach, then the caller has to have a way of accepting the error gracefully, as a normal thing that might happen. And thus we have a div0 that is an error rather than an exception.
Update: Review of Mailbox.org: https://www.ctrl.blog/entry/review-mailboxorg
I feel like if a college student had originally written this, or some more modern equivalent, it would have been shit on as sanctimonious with a needless wistfulness about it that feels like it’s straining to sound grand. I can just so easily see my old rhetoric teacher reading a line like, “jawbones of deacons” or “birds the color of red-flannel petticoats” from a student’s essay and just thinking come on, be a grown up, stop trying to sound like a big grown up writer.

I don’t say this to be critical of this passage at all. It just makes me feel like literary acclaim is just super random fashion signalling. When one person writes foo bar baz, we pay people lots of money to relive it on a stage and revere it as classic. Someone else could have totally thought to write foo bar baz in some other circumstance and be told they’re some simulacrum wanna-be spewing out overwrought drivel. It just seems so random.
Distribution-friendly tactics in the desktop wars (2016)
Super contrarian view - information architecture is the most fundamental aspect of product design. And a database "backend" represents the atomic model for a product's IA (with API being the next layer).

Perhaps the engineer was contributing something crucial to the product design, you just couldn't grok it.

Product design is so much more than UI/UX, fwiw.
Most UX resources seem like a circle jerk imo.

UX simply is the amount of interactions & how fine grained they are (when touch points are small = bad & multiply) to accomplish some goal. I know it's as bad as sloc but it's what I go by.
I'm not sure why people have chosen such small modules. Maybe ease of publishing means you can maintain 15 Node packages easier that 15 Maven artifacts.
Temporary embargo can happen when parts of the thesis were published in a non-open journal that requires an embargo period, or there's an external party involved that needs to clear publication.
Quantum Computing Fundamentals Online Program (MITx Pro)
You're being downvoted because of the unfortunate timing of this post and the potential commercial bias of your answer.

People come to HN to discuss things that hold real intellectual value and not to get subtle ads. Suggesting an e-book that was released yesterday looks like blatant advertising even if that's not your intention.

I really find hard to believe that someone can legitimately recommend and stand behind a book that was released yesterday, just because the author teased his/her Twitter followers with some of the book's potential content. Also, how can you objectively say that this book "Is the best UI actionable advice" when you already accepted that you haven't even read it yet?

Sorry, but the question is "What's the best book on modern UI/UX?". Suggesting something that was released in the last 48 hours feels very disingenuous.
The SR-71 was classified for a while before the public became aware of it. I wouldn't be surprised if some of the tech that is still classified seems impossibly futuristic.
I'm not sure what you're getting at. If you're a soldier, sure it can get you killed, in battle. And if you're a soldier, and your side loses, you may be tried for war crimes. Even if your side wins, you may be tried for war crimes if you follow illegal orders. In modern military, you're trained to refuse illegal orders. But that's an iffy thing, especially in the heat of battle.
I've read on HN that F# doesn't get nearly as much attention and support from Microsoft as C# does, to the point where people expressed concern that F# might be put into maintenance mode.

Does anyone reading this feel that way, or was it just FUD?
This article convinced me that I wish I was using a language like F# with a similar type system

https://fsharpforfunandprofit.com/posts/designing-for-correc...

That article made me feel like I'm kind of wasting some percentage of my life dealing with bugs that would just disappear if I was using a better language. I don't know what the tradeoffs are though but it did convince me I'm probably missing out on being more productive.
Ask HN: What linux desktop tools/apps boosted your productivity?
I have switched to Ubuntu 16.04 from MacOS two years ago. Compiz is one of the things helped me manage my workspace and windows which really boosted my productivity. I wonder what other tools I might be missing out.

Thank you.
Thanks for the edit. It helps.
Consideration from whom?

Some advertisers have bought the right to display their ads to people the platform has probably identified as “women having babies soon”.

Does the OP want consideration from the platform or the advertisers?

I feel the OP is venting the feeling that they’ve had a huge personal tragedy yet the world has just kept on going like nothing happened.
I don't know about an accident, necessarily. It's got two important things going for it.

1. It lets everyone involved cover their ass. "All I'm responsible for is my function. There was a problem with my inputs, so no wonder my outputs suck. Don't blame me, my inputs are all right there in black and white, and you signed off on them."

2. It gives people the comforting feeling that they can predict the future, and then do things like plan budgets or negotiate fixed price sales contracts. Predicting the future is irresistible for people who handle money. As fictional as it might be.

So those two things, I think they have a momentum of their own, and without constant vigilance and effort, for most domains, waterfall development is a sad, inevitable default.
Do you believe Michael Cohen is turning into a Stoic?
Sadly, good domain alone doesn't make it too famous.

I think name change must be done. The name is too weird to go mainstream. Think of international customers too. I don't think I want to introduce it to my non English native parents, maybe they'll think it as some weird game.

"Did you duck it?" sounds like asking if one dodged it.
I immediately thought the same. Then I thought about for a bit longer and quickly came up with an equal number of reasons why participants experiencing more rapid mental decline might stick it out. Really no way to know.
I am clearly not an expert on this, but I suspect the answer is not “don’t do research” it’s “disclose the result”.

As for where the lines are drawn I’d guess there is a whole industry around determining that just like in the States.
Yes, but you don't really get to pick your starting point - in the study, cognitive function at age 11 predicted crossword puzzle use and eventual cognitive decline. So if you're fortunate enough to be sharp at age 11 (thanks to your genes, your parents, and your environment), then you're in great shape. But that's not a solution that can be applied to all of us.
Harvard open-sources teaching modules to embed ethics in CS curricula
Not a watetfall expert, but don't they teach waterfall in many universities? How could they not see it was based on a bad example?
Simple and to the point! My only out right disagreement would be on state management. If you have a GraphQL api, that means you are probably using Apollo. Just use apollo-link-state for your local state!
Have you ever been to the southern parts of the US? A lot of sentences start with ”Hehe, well...” down there.
I suggest:

- AutoKey (key shortcuts)

- Conky (desktop widgets)

- lsyncd (syncing files)
Can you eloborate on what kind of projects you work on which has made the move easy from Python to OCaml. While I love OCaml I have not heard positive things about the library eco-system in terms of variety and maintenance. Perhaps, you could throw some light on that based on your experience, especially after giving up the eco-system Python provides you.

This is a sincere question and would love to find good excuses to adopt OCaml as my primary language of choice.
I think the GP was accusing you of "side tracking" by bringing up std::shared_ptr in the first place.

My post above was about how C++ smart-pointers compare favorably to Rust's oft-considered-"unique" ownership/borrowing system. The particular STL features that cause equivalent "compile-time magic" to happen to what you get from Rust's semantics, are those of std::uniq_ptr and std::move, not those of std::shared_ptr. So the value (or lack thereof) of std::shared_ptr, isn't really a knock against the value of the C++ STL smart-pointers collection as a whole—you can entirely ignore the existence of std::shared_ptr (I do!) and still think C++ STL smart-pointers are the cat's pyjamas.
I agree, memes often don't contribute towards the discussion and add unnecessary noise: they just regurgitate what has already been said (the above meme is an example). I like the culture of Hacker News and its higher quality discussions and I don't want it to turn into Reddit. When I want to look at memes, I go to Reddit and I suggest the same to others.
Fundamentally, that the FBI is run by people who don’t take bribes and who promote people who find corruption in state or local law enforcement or other government offices. In Mexico there are states where the chief of police is owned by the narcos, in the US, a single department being corrupt from top to bottom is probably the biggest scandal since WWII.

https://en.m.wikipedia.org/wiki/Rampart_scandal
(I edited the post title to include “React” before the “Hooks” to disambiguate. Might be worth editing the submission too!)

Hope you’ll enjoy reading it.
Inside Venezuela’s YouTube prank economy
This reminds me of the parable of the 5 monkeys: http://wiki.c2.com/?TheFiveMonkeys
Both pricing and performance. It will scale, but it’s gonna cost a ton, and won’t be faster than running servers (and could be considerably slower for a percentage of requests).
If they need money, they can always have "premium" version with some non critical feature. Its privacy alone is worth paying for but as OP says, its accuracy isn't good enough for me to waste time everyday.
Most people who use bro are being at least a little ironic. It's a weird register to use for a Austrian man born in 1905. Wouldn't be a big deal except that it's literally the Holocaust. Not personally offended, just explaining why most people will probably not take it the way you mean.
What about things like advertising. Ambient marketing based on the known proclivities of those in attendance.
It could also be that factors present earlier in life influence exercise habits and cognitive decline on different time scales. For example, it's not a huge leap to imagine that some inborn deficit in neurotransmitter function could promote both of these outcomes without necessarily leading to any clinical diagnosis.
I'm personally thinking it's time to join the party and try and influence change but that's a whole other level of commitment beyond writing letters.
Exceptions are alright. But templates and most things about containers are clusterfuck.
Sticking with the name DuckDuckGo is a dead end. So they should forget about that domain.
Yes, long sentences can be great, in fiction. They're rather like wandering trains of thought. With sequences of phrases that evoke shifting perspectives, feelings, etc.

But long sentences in scientific and technical writing can be impenetrable. Sort of like stand-alone proofs. Or even code, which must essentially be parsed. That stuff, I'd rather see broken out in a list or outline. And in fact, I sometimes do that.
Yeah, that's the one I use as an app. And that's why I actually see somewhat targeted ads there.

I might actually switch to viewing it in browser more. But I think you lose the messaging. And the ability to post as well, but I don't post as much as I watch.
Slight improvment to the above:

[[12, 19, 6, 14, 4, 9],
[ 8, 17, 1, 24, 22, 16],
[21, 3, 23, 20, 2, 11],
[15, 10, 5, 13, 7, 18]]

Score = 376.6144674353488

Found by increasing number of iterations to 100000

Sim.annealing followed by an exhaustive pair-swap search to find the local minimum would have found this more efficiently. Possibly there are some further refinements left -- I haven't run the exhaustive pair search on the above!
If you think of it more like “how do I want to handle something bad happening?” instead of “what category does this fall under?” then I believe electrograv‘s point of not being clear-cut becomes more clear.

For example in rust most code that can fail will return a Result and thus the compiler forces you to handle that. However, that code can just as easily panic and behave like an uncaught exception would (thread exiting). An example would be the division operator and the array index operator. Both division-by-zero and out-of-bounds errors can certainly be handled by using a Result but in this case the Rust developers made a decision to use panic. Are these both exceptions bc they are handled like a typical uncaught exception or are they errors bc it’s conceivable to handle them just like a failed file open?
To add another one of my favorite: gotop[1] (drop in replacement of htop) is really good.

[1]https://github.com/cjbassi/gotop
Many negative things are symptoms of our successes. For instance, there wouldn't be drunk drivers if cars had never been invented, but that doesn't mean that we shouldn't have cars!
Sagmeister & Walsh's Beauty

https://eyeondesign.aiga.org/in-defense-of-beautiful-design/
Will people start saying, "your product's duckability sucks"?
So, everything in Amazon and AWS is done by two-pizza teams, and those teams have to implement the full stack for the products they develop, including all support. That means many teams are super-narrowly focused, and they have probably developed extensive FAQ processes that cover everything that could possibly go wrong with their code.

So, the support process becomes just a simple matter of searching through your trouble report for certain key words and then giving you the top hit in the database for those key words.

But while all their data is available to all the other teams, it becomes impossible to discover and surface the critical information that is found in those multiple thousands and millions of data lakes, and there’s nothing to synthesize all that information.

And suddenly everything starts looking like a nail for the custom hammer that they have built to solve this one unique problem.

You are lost in a maze of twisty passages, all alike — but also unique.
Exploring Histograms – interactive webpage explanation
It seems that hardly a week goes by without me seeing another 'agile is better than waterfall' post. We are so busy flogging this dead (and possibly mythical) straw man that we are not examining the real problems of current practices.
The brain as a neural network: overfitting and political polarization
Fed Net Worth Turns Negative Following Record $66BN in Paper Losses
Of course, a lot of that money did flow back, since it went to people who paid income taxes.
I like techno, but I’m not afraid of it.

A hit is a hit, and this my friend, is not a hit.
YAGNI (at least until YNI)?
We need to let people know that the pond is closed.
Google would be proud to know by just trying to dodge the impression of monopoly, they also impressed people.
Mkusb for making USB thumb drive bootable ISOs. If you want to try a lot of "flavors" it can definitely save a lot of time configuring ;)
Not saying Carl Sagan came up with this particular diagram while high on weed, but it’s not altogether irrelevant to the conversation to mention that he privately smoked throughout his career, and credited cannabis for providing insights, documented in an essay he wrote anonymously as “Mr X” for a book on marijuana from the 1970s. [1]

Felt it worth mentioning on the day Congress took the small (yet meaningful) step of legalizing industrial hemp production in the US.

1: https://www.leafly.com/news/lifestyle/carl-sagan-cannabis
Blitzscaling

Kubernetes up & Running

Brotophia

Software performance & Scalability

Performance modeling & design of computer systems

The art of capacity planning

Control Theory for Engineers

Traction

Never too late to startup

The lean startup

The mom test

Executive functions

The manager's path

Grit

Power of Habit

The new new thing

Startup - a silicon valley adventure

Deep work

--------------
The Big short

Dark Pools

Flash boys

My life as a Quant

Liar's poker

A random walk down wall street

The Finance ones surprised me, I had no idea about Wall street and the mechanics/engineering behind it. I still don't like em or trust em, but I did gain quite an amount of respect for the engineering they do.
I think it is perfectly fine that destructors can't throw.

For the rare cases that you need finalizers which might throw I would go for something inspired by pythons with statement.

WITH(expr , lambda)

expands to(sketch):

bool _exception_happened=false;
auto __temp = expr;
__temp.enter();
try{
lambda(__temp)
}catch(const std::exception & ex){
exception_happened = true;
__temp.exit(ex);
}
if (not exception_happened){
__temp.exit();
}
Of course, if Michael Cohen were completely like the Socrates of Plato's Apology, he would have spent more time insulting the judges and criticizing democracy. (It's also worth noting that Plato and Epictetus disagreed on a number of issues.)
I've wanted to learn F#. I'm particularly curious about parsing and text processing, and wonder whether the pattern matching feature would work well for that.

It would be great to see an HTML minifier in F#. I've thought about building one as a way of learning the language. An F# based static site generator, similar to Jekyll or Hugo, would also be neat.

Compilation of F# is a confusing story to me. If it's still compiling to an IR, and getting JITted at runtime, that seems kind of inefficient in a world where Go exists. There's the CoreRT project, I think, that allows for precompiled .NET applications, but I'm not sure how F# fits in. I also read that all Windows Store/UWP applications are precompiled on Microsoft's cloud. I'm curious about compile-time flags and optimizations for F#, but they're rarely mentioned.
To turn it around a bit, consider the things that you had growing up that your parent didn't have. Depending on your age - microwaves, television, computers (not the internet, but having these devices that do work for us), telephones.
Fuzzy "logic" is best used when you take out all the references to logic and just think about fuzzy sets -- then it's just fuzzy set theory, which is useful when you need to model partial set membership.

I enjoyed reading Probabilistic Logic Networks (https://www.amazon.com/Probabilistic-Logic-Networks-Comprehe...) as it introduces a possible framework to sanely deal with different kinds of truth values about different things which aren't necessarily a single number.
This is a nice study, and confirms earlier work by Tim Salthouse (University of Virginia [1]), looking at more than a thousand people (cross-sectionally), and evaluating their cognitive function and crossword puzzling activity. At every age, people who did more crossword puzzles had better cognitive activity - but the rate of cognitive decline was identical regardless of crossword puzzle use. This was interpreted (as in the current study) as showing that people who are sharper do more crossword puzzles - but doing crossword puzzles doesn't make a person shaper or change the rate at which a person becomes less sharp.

[1] PDF: https://pdfs.semanticscholar.org/5237/69252dd1d49cbd473844c0...
I’m a relatively happy user of flow. Is your objection to typed JavaScript or to the fact that flow is not Typescript?
I doubt anyone in the business would want to show a name card with a @duck.com address.

At least try @dmail.com.
I use it exclusively.
Were there protests at Obama's residence, like Bush had when president?

https://www.nytimes.com/2005/08/07/politics/mother-takes-pro...

According to wikipedia, there were a couple of anti-war protests after Obama took office, but nothing compared to when Bush was president:

https://en.wikipedia.org/wiki/Protests_against_the_Iraq_War
lsync looks really good. Currently I was using rsync with a custom gulp script to mimic similar functionality.
It's the other way around, actually. Private ISPs cannot survive without statutes that prevent the establishment of municipal ISPs. Like all utilities, Internet traffic has a very low per-unit cost, making it unviable to turn a meaningful profit without engaging in predatory business practices.
Whether something is "in code" or not is orthogonal to the problem of tracking infrastructure changes. E.G. You can commit a change to Terraform, but that doesn't tell someone when "terraform apply" occurred.

What you should use depends on what tools you have available. We currently use Datadog, so we use their API for publishing events. We can then search for them in the event stream or overlay them on dashboards.

You could look at the datastores Grafana supports for annotations and choose whichever of them you're comfortable operating.

http://docs.grafana.org/reference/annotations/
I'm past the edit window, but tiny self-correction: I probably should have said "hardware agnostic APIs" instead than "open APIs". DirectX isn't "open" per se, although it depends on your definition.
Speaking as someone who's been programming for nearly 40 years, C# since it came out in beta, and F# when it first came out ( though I haven't used it consistently since then). I know about all those things, I have done signifiant programming with F# and other functional languages. Like I said, I like F# and I think it is a nicer language and I like it is more functional, but in the broader picture, I don't think the advantages are that significant that you'd bet your products on it. I'd tend to suggest something like Elixir might be a better option. But you may hit a sweet spot where F# is a good choice... cool, but I think the sweet spot is quite small
Tesla patents using AR glasses for manufacturing
Maybe Apple can give serious competition to google maps hopefully soon and DDG can partner with it.
My favourite long sentence, from A. A. Milne, is self-aware:

> In after-years he liked to think that he had been in Very Great Danger during the Terrible Flood, but the only danger he had really been in was in the last half-hour of his imprisonment, when Owl, who had just flown up, sat on a branch of his tree to comfort him, and told him a very long story about an aunt who had once laid a seagull’s egg by mistake, and the story went on and on, rather like this sentence, until Piglet who was listening out of his window without much hope, went to sleep quietly and naturally, slipping slowly out of the window towards the water until he was only hanging on by his toes, at which moment luckily, a sudden loud squawk from Owl, which was really part of the story, being what his aunt said, woke the Piglet up and just gave him time to jerk himself back into safety and say, “How interesting, and did she?” when—well, you can imagine his joy when at last he saw the good ship, The Brain of Pooh (Captain, C. Robin; Ist Mate, P. Bear) coming over the sea to rescue him.

> And as that is really the end of the story, and I am very tired after that last sentence, I think I shall stop there.
I have, and I do.