skysight-inc/HackerNews huggingface dataset:
Tyler Cowen interviews Sujatha Gidla on his podcast, Conversations with Tyler [0]. Not having heard of her, and not having any exposure to caste societies, I was struck by the sharpness of her insight and the strength of her conviction. I highly recommend listening.

[0] - https://medium.com/conversations-with-tyler/sujatha-gidla-an...
I believe this strategy is called "get to no asap". If you need to validate the data coming into a method, do it first and throw the error/return as soon as you can so the rest of the method is doing the work intended.
> Back in the days of USENET, any code that was posted to groups like comp.lang.c was considered 'open source'

If this were true, you should be able to find many Usenet postings that use this term to describe the software. We have the archives. The article indeed attempts this search and doesn't find it.

There is an unrelated older meaning of "open source" from "open source intelligence", but the idea that the meaning of "open source" as "source visible" was widespread before 1998 seems false. Perhaps some people had heard of it, but it was not widely understood.

Indeed, in the article, two of the Usenet hits for "open source" are "open source material", which can be disregarded as the older meaning of "open source intelligence", which means to collect data from people from things like phone books. The other hit is of dubious meaning.
Getting started with Blazor – my red pill moment
Who are "they" in your sentence ? If "they" are Facebook, then it's not the point. If "they" are the user, then I doubt that the current outrage is anything more than the scandal "du jour". I spent 10 years talking about this with people around me. Very little cared enough to even start thinking about it for a minute. Not to mention taking life decision with it in mind.
I'm in the market for this. There are few usable password managers that reliably work on linux, windows, macos equally good. I'm currently moderately happy with pass, but the colleagues I need to share passwords with are not CLI-fans as I am. 1Password doesn't support linux except in the webbased versions and I don't want that. Every time I need to touch Keepass I'd like to burn it. Haven't tried Bitwarden yet.

I'd love an open-source password manager with a modern ui and local storage.
That might be the case, but the constant reminder of race is very weird to me. As in, it's very common to denote someone to be "black" or "white" or "hispanic" and so on. I can understand this to some extent when it comes to describing how someone looks (eg police warrant) but in most other contexts... it's just feels very strange with the obsession of what color/origin someone has/is.
FB can't collect call and SMS data from my browser ;)

It was so patently obvious that they would do this with any app that I am surprised there's a stink being made about it now.

I don't understand why people fall prey to the "install our privacy invading app" when the service works just fine via a browser.
7 Levels of Decision Making to Match Business Needs
It’s honestly not much effort – I was compiling a new version of my app when I wrote it, and the last change I had done was the size of a button, because people complained about it. So I happened to have all the documents open by luck :)
FIFA18: quick analysis of its dataset
In Freudian terms: when under threat, people develop a highly anal response. When at peace, they develop an oral response.
I always tell my team that deleted code is the best code. Obviously less code is often more maintainable but there is also the element of being willing to throw away stuff you did earlier and not being attached to it.
I'm still in the early stages with this one in Rust. I spent a lot of time this weekend on it and I'm finding no exaggeration in those stories of fighting the borrow checker! It's been a pig, honestly. I am OK with the point of it all, if anything it's made me more aware of limitations of not taking this strict approach in other languages. I can see all sorts of possible bugs that can't happen in Rust. Doesn't make writing it any easier.

I'm starting to think that Rust is really just a clever set of constraints that forces good behavior on the programmer.

Happy to throw the Python stuff over the wall at you although it isn't especially pretty (it was my 'learn Python' project). I'll put it up on Github this week & ping you back here.
Why are you being down-voted? What's going on? This case has been going on for years; he has been through hell. How is this a proper reimbursement?

Edit: Forgot it's yet another echo chamber community.
Restaurants make big bucks off people who aren’t eating a thing
I don't really understand why the use of goto is to blame there. If it was not a double goto but a double return, that'd still lead to this bug, no?
ClojureScript 1.10
Guard clauses aren't only for errors. They do however usually involve certain kinds of asymmetry. Typically: The early return case does fewer things (or nothing) than the major case. Or the early return case is normal, but has a 'negative' sense (which again does less work) like not finding a key in a dictionary.
It’s not healthy people paying for your treatment - it’s the underwriter. There don’t need to be any other people with different health outcomes involved. The only thing happening here is you’re outsourcing some risk to someone who has a lot more capital and therefore a more linear risk curve.
Sometimes things should be commented. Like, for example, every time I have to do pointer arithmetic, I make a comment explaining why, because pointer arithmetic is opaque and error prone.
that is actually a different screen then when they first rolled it out. You had to dig into another screen to opt out.
I would go as far to say that 99% of downloaded movies or games would not get bought if the person had to buy it.

Their numbers are pure fiction.
Experienced programmer should not be giving these kinds of vague general advice that really only apply to certain cases. Writing a sorting algorithm and a node.js routing callback requires demands different styles. And if code already exists, just follow the same principles as what's already there. It's far more important to keep code formatting consistent than less indented...

I am not advocating for the opposite but having return statements in the middle of the code does have its drawbacks. In many instances it makes the code less easy to read.
For instance when I write:

If (x) {
Return y;
}
Return z;

I don't see that return y and return z are on the same conceptual level cause their indentation is different. The "else" is implicit, and so as a reader I have to make the effort of thinking "oh that part has already exited, so I'm in the case when 'not x'".

Anyways. All in all, just optimize your code for what makes sense and avoid general advice on code formatting.
Why optimize for the lowest common denominator?

I've seen both, and the reduction in vertical whitespace matters more to me than the readability to an untrained individual.
I don't think that works. Only the very rich can take large sums of money and lock it up like that.
How Wearable Technology Can Benefit Your Health
So, a chicken soup delivery service?
Luckly as you get older your judgment improves.

Note. It doesn't mean older people have better judgment. It only means you have better judgment than your younger self.
I am on board with returning at the beginning while checking arguments. But I hate it when code returns somewhere in the middle for some reason. I have spent countless hours debugging a problem with unexpected behavior only to find a return statement in the middle of a huge block to code.
One nice thing about a single exit point is it's easier to add logging, particularly for logging a return value. Only one call is needed, instead of tracking down every exit point in the function.
There is a general doctrine of substance over form. If the substance of the transaction is that "coin A became renamed to coin B with no other changes", that is likely to eventually be judged by the tax court to be a non-taxable event. An individual tax filer can take a position that has a reasonable justification without penalty.

You're citing existing precedents/case law that has been decided. The cryptocurrency cases have not yet been adjudicated by the tax court, so as an individual filer, I would be comfortable taking any reasonably justifiable position and defending it in audit if needed.
> Facebook knows many drug purchases are coordinated openly on college groups

How does Facebook know this, if they still have to search them out?

> ...once this law is naturally expanded upon.

Yeah, I can see that. Slippery slope and all that. On the other hand, I feel like e.g. Facebook needs to have an incentive to police their community. I, at least, don't see a clear path to prevent Cambridge Analytica-style abuses, not through legislative changes, not in this political environment...
RIGHT?

And upon reading it, what a delightful surprise instead!
It matters, to me, if its for commercial gain and if it's done with respect for PII.

So "I called $phoneNumber" is OK but "I'll sell you details of $person's phone calls" is not.
Reverse Retrospective: Addressing the Elephant in the Room
That's one of the reasons I love RAII; all resources, memory and otherwise, are treated the same.
I had a early Mac in 1984 (still have the damn thing - sentimentality). Showing people Hypercard was often the thing that convinced them to purchase a Mac.
NZ cops do carry guns, just typically not on their person. They're locked in the boot of their vehicles. I have seen an NZ officer with their firearm on them and it's weird enough that everyone takes notice; like seeing litter in a mall in Singapore.
Learning Matters for Schools, Too Content
It's kind of sad to realise reading a comment like this now makes me instantly suspicious about whether or not this is "true" enthusiasm or something motivated by profit. It's a fundamentally hard problem to solve, but IMO it is one of the bigger hurdles facing places like this now.
Facebook is in denial
If anybody is interested in the lives of the people who scour landfills for recyclable/resaleable materual, there was a Brazilian documentary about such folks in Rio - Waste Land. It was very moving.

https://m.imdb.com/title/tt1268204/
And Many people who used Megaupload for legit data storage lost all of it after the US raids. Customer data still hasn't been recovered.
Show HN: Automatically block people in images using a pretrained neural network
Did this get flagged or something? Interesting the way it disappeared from the story index.
Yeah, that's a living wage for a writer.
The child of "college teachers" and a former "researcher in applied physics" at IIT is now a train conductor with the New York subway?

This is a good thing?
Your example is an example of taking advantage of personal hospitality, the Google drive users are taking advantage of an advertised product offering. Those are totally different things.

No one's an asshole for using a product they were offered to the fullest. If Google didn't want them to do that, they shouldn't have offered an "unlimited" product in the first place.
And for Washington, DC: April 8-12

https://cherryblossomwatch.com/peak-bloom-forecast/
It's weird that people can get so upset about these limited excesses of surveillance by companies they've given explicit conset to when more and more of the governments of the world are literally recording everything forever and sharing it with a rapidly expanding set of organizations made up of the same kind of people.
Yup saw that few days ago. But I wanted to build this for a long time.
Only if it includes his illegal and disgusting previous activities, see https://en.wikipedia.org/wiki/Kim_Dotcom#Legal_investigation... and https://de.wikipedia.org/wiki/Kim_Dotcom#Werdegang
It depends entirely on the details that affect the GC. The biggest factors are the size and structure of your heap data. If the game uses a lot of memory, the GC will try to collect more often. If the heap data is large and graph-like (lots of refs to refs), it takes longer to walk.
See my response to the sister comment
Nobody should; this is one of the basic tenets of highway codes everywhere.
I don't have any papers on this hard drive but databases, grammar formalisms and generally many data structures (you might know about monads, comonads, arrows, zippers, etc.) If you start digging on hackage, you'll find many interesting data structures, many of which were derived categorically or at least algebraically (they often cite the papers that inspired their implementation.)

Obviously all the work can be done without category theory but since the mid-2000's I gather that many insights have been gained by exporing various categories and their relations.

Edit: I think one of the main benefits is efficiency. Even if one doesn't start from categorical formalisms, you can later use them to pare things down to what's absolutely necessary.
China offers to buy more U.S. semiconductors as it mulls stabbing Qualcomm
Whatabout a semi-private German entity?
it's not just about in app resources. This could also affect external resources.. like not cleaning up temporary files because a future maintainer returned early and left some critical data behind.
As a Canadian observer I don't understand why Democrats don't go after the small business angle of single payer much, much harder. Don't get me wrong; the lack of health care for poor and at risk populations in the US is a complete disaster, but that argument hasn't swayed the debate for decades now, so it's time for a new approach.

Health care being tied to employment is anti-startup and anti-small business, full stop. In countries with single payer (or similar) systems you can change jobs without any impact to your coverage, you can start a business knowing your family's health and financial future won't be affected.
You had just said it: they oppose the institute of marriage, which is not only a traditional way of announcing the union of two people (let's for a moment accept the fact that maybe marriage is only a Christian creation), but is also a legal way of exposing it.

Now please tell me how opposing the gay marriage is not in any way a sign of hate towards gay people that bars them from certain legal liberties? You could try to sell this point of view as a "kind" point of view, but your conginitively dissonant ignorance still makes you hate people as a result; even if you are not conscious about it.
This reeks of naturalistic fallacy. Humans are bad because we exploit animals. Yet, humans are animals, and this is what animals do given the chance. We don't need an excuse.

Just because we can introspect and consider the ethical state of things doesn't mean we have to abandon all progress and be an agrarian society.

Can we improve? Sure. I don't like to see anything needlessly suffer, but a few bears being killed in the name of science is a drop in the bucket to other concerns.
I wonder how many animals are exposed to intense lights and sounds and radio signals that humans don't detect.

Perhaps this is the reason for butterflies and bees to decline.
People paid for their service too. So they are making money directly off of users’ illegal actions like how

1) airbnb users illegally converting rooms into short term rentals
2) amazon helping people avoid sales tax
3) uber lyft allowing drivers to drive taxis without a taxi license
The 429 is to inform clients they should do something else ("it's your fault"). A 503 would indicate it was the server's problem and maybe they should retry. A server at capacity does not want the client to retry directly to it, it wants the client to look elsewhere (even if that means retrying against the load balancer). It's a small semantic difference, but since netflix controls all the clients and servers, it's kind of a preference thing.
Zuck apologizes for Cambridge Analytica scandal with full-page print ad
ASTs with Fix and Free
As someone raised Southern Baptist but not currently identifying as so, I can attest that when I once peacefully opposed homosexuality, it was 100% out of a trust that God knew what he was doing and that I should trust him, despite my own personal ignorance.

The belief that others can only oppose groups of people out of "hate" stems from a strong lack of empathy and understanding for people on the other side of the issue.

> If you oppose something that does not directly affect you, the reason is most probably hate.

Either that, or you are serving something percieved as greater than yourself.
whoops, you're right! I mixed up my rovers, I was thinking about opportunity
The records exist in all these cases. I operate under the assumption that the IRS is better at noticing these discrepancies than I am and that the cost of reworking it with my accountant is less than the cost of getting audited by an agency that gets off on this.
Here's an extreme, yet very real example: mandatory Doxygen comments on accessors:

/**
* Get the foo
*
* @return the foo
*/
int getFoo();

/**
* Get the bar
*
* @return the bar
*/
float getBar();

/**
* Set the foo
*
* @param foo the foo
*/
void setFoo(int foo);

/**
* Set the bar
*
* @param bar the bar
*/
void setBar(float bar);

Compare with what any sane project would do:

int getFoo();
float getBar();

void setFoo(int foo);
void setBar(float bar);

Multiply that by a dozen such attributes, and what should fit on a single screen spans now hundreds of lines. What you could see at a glance, you have to search for. There's simply no way those utterly redundant comments increase readability. (Yes, the real comments in the real code were just as redundant.)

LOC is more valid as a metric than most care to admit.
Spotify told Wall Street it is going to have a very good year in 2018
Nice to see I'm not the only one who's tired of seeing this guy.

No, he wasn't technically responsible. Sure, his site complied with takedown requests to the extent they were required to and literally not one damn quarter inch further. Technically, technically, technically.

He also profited directly off of and made no secret about enabling people to skirt copyright laws. I agree they need a lot of work, but you don't get to break the law simply because you disagree with it.
In Poland it's the same - downloading pretty much anything for personal use is perfectly legal, only sharing isn't(so using Kim's service would have been 100% fine).
> Unless all of the communication between the frontend part and the native tooling is done via sockets.

Admittedly I have not developed any Electron apps, but I have developed serious web apps and worked a little bit with NodeJS also.

Why don’t people do exactly that when they write their code — make all communication happen over regular HTTP and websockets?
You might want to get in touch with notebookcheck.net, they have the exact data you would need for that. I don't think they'll give it to you, but who knows, if you impress them enough with the phone chooser you might be able to strike a collaboration.
As someone who started out with C# and learned Java later, let me tell you: This is nonsense. You can get used to both easily, but only one of them saves space.
> There is the obvious problem that there is nowhere near that level of precision in anticipating the given level of risk for any individual getting a certain disease

This doesn’t matter at all, on account of the way variances from independent RVs add up. Look up the Bates distribution as an example. Variance over mean goes down as the square root of the number of independent RVs (insurees). That’s like half the point of insurance.

> was through the patchwork system of employee health plans,

These were the result of highly nonlinear tax policy during WWII, not the reasons you’re claiming.
Do they? All the Python folks I've ever seen express an opinion on style have said "follow PEP 8".

Unsurprisingly, PEP 8 does have a rule for tabs vs. spaces: https://www.python.org/dev/peps/pep-0008/#tabs-or-spaces (spaces, of course)
As someone with depression, I would have no interest in this.
You can get the URL data (and parse out the domains yourself) at http://index.commoncrawl.org/
Be aware that commoncrawl, while huge, only crawls a fraction of the web, and so you won't get all of the "existing domains" (i.e. all domains that exist) if that is what you are after.
I would think pretty fast since you don't seem to be attempting to make a point or argument of any kind.
The issue with simulations is they're only as good as our models and evolution has not laid out a simple system. The same chemicals are used in very different ways throughout the body.
Show HN: An Intelligent News Aggregator for Indian News
Oh common. This might be true for a very specific type of codebase, but it isn't true for programming in general. If I'm coding a library of standard statistical functions I'm exiting early. If I'm coding a Rails webapp I'm exiting early. If I'm coding a shell script, even one used on tens of thousands of servers, I'm exiting early.

The resource almost all programmers are managing is the resource of human time. Human time to code the project, human time to review the code, human time to alter the code after the fact, human time to port the code to different environments. If you're writing code to run AI at Google then fine, you're managing resources at a level where performance starts to hit limits that warrant a style change, but generally speaking you know that ahead of time and you choose tools to handle a project of the right scope, but generally speaking exiting early isn't impacting your code performance. Big O mistakes are.
I’ve this comment written a lot here. And while I get it and even agree partially, there is a problem of scope and precedent.

It’s easy for us to say “stupid user, wtf did you think fb was doing?” But, the truth is we don’t actually know.

As tech people we are even just guessing at the real scope of FB’s collection and how they use that data. It’s not like this is something a typical user could really know because there hasn’t been a Facebook before.
Elon Musk’s next Boring Co. merch will be big Lego bricks made from tunnel rock
In last 20+ years I've changed the coding style many times, usually to fit the current team style. And in my experience it takes a few weeks for the brain to rewire to the new style. First you hate it, and then you get used to it, and then you're like: wow it's great. Then you switch the standards for a new project and again, the same steps. It's just a matter of habit...
The constant posting of people salivating for regulations like yourself is also hijacking my attention and warping my perception of how misguided society at large really is. You are insidiously manipulating my lizard brain to want to destroy you, while I should be productively working. Please stop your egotistical wish marketing and regulate yourself so I can not be distracted.
A very important thing you forgot and that a lot of people tend to not think about until it bites them in the ass are the available bands. Some of those Xiaomi phones for instance are amazing and cheap and intuitive, but that's not going to help you if it only works with a small subset of the bands used in your country and therefore you get a garbage signal everywhere.
Node.js vs. Ruby on Rails
DevDocs.io turns 5 and joins the freeCodeCamp.org community
The Hollywood Hit Movie That Urged FDR to Become a Fascist
Facebook's statements and conduct on the Cambridge Analytica data breaches
RAII can handle such resources, and good use of RAII does handle such resources. Languages without time-deterministic GC even tend to add extra language constructs to aid this, such as `using` in C# and Java (7?) with its new `try` block.
America is always winning the craziness award in these threads, due to being ultra capitalistic with no regard to common sense.