skysight-inc/HackerNews huggingface dataset:
I think their point is basically "It doesn't matter" - any client that sends a request which then gets rejected automatically retries and is bound to get a server that is up and has capacity. The retry happens so fast that even with just a naive retry implementation, the end-user won't even notice the interruption.

From https://medium.com/@NetflixTechBlog/performance-under-load-3...

> The discovered limit and number of concurrent requests can therefore vary from server to server, especially in a multi-tenant cloud environment. This can result in shedding by one server when there was enough capacity elsewhere. With that said, using client side load balancing a single client retry is nearly 100% successful at reaching an instance with available capacity. Better yet, there’s no longer a concern about retries causing DDOS and retry storms as services are able to shed traffic quickly in sub millisecond time with minimum impact to performance.

Edit: In terms of how they decide what to reject, from reading the blog post, there is a queue and there is a limit to how big the queue can be. Requests that come in while the queue is "full" get rejected immediately. They don't wait in the queue and timeout.
When a domain expires it shows in the whois for a few weeks before any one else can register it. There are places where you can browse lists of these expiring domains and if the domain is worth anything people will race to register it first. To win these races people use a register that does backordering to register it within seconds(not 48 hours) of the domain being available.

If the domain is worth registering it will be available and registered by someone else before your system even knows it was free.

Your pricing is also way off. Godaddy will poll at least every minute until they get the domain for a flat $20. You are charing $200 to poll once ever 12 hours for a year, doesn't even include the cost of the domain. If the domain is worth $200 some one else will have it sitting on backorder and you will never get it.

iirc sedo was the fastest at backordering but more expensive that godaddy, I guess you could charge $200 a year and if its a godaddy domain use godaddys backorder pocked the $180 extra if its not backorder on sedo and provide a better service for the same price.
They could obscure cell numbers too - they chose not to
"Annoying your visitors may be dumb"

By what metric is it dumb? We've found that our chat widget dramatically increased contacts, conversions, and is often used for support.

Personally I am not a fan of annoying chat widgets, but they do seem to work well.
IME it's the "completely brilliant" code that your future self will hate you for, and needs the most comments.

Moreover, when the weight of those comments trends towards 50% being justifications for why you did it that way, it's an excellent sign that your code has gone from "brilliant" to "super-genius", as in "Wile E. Coyote, Super-Genius".

"Completely dumb" code can be read by your future self without comments. Even, sometimes, by other people!
That's an amazing resource, thanks for sharing. Using autosuggestions might actually be really useful.
You can check the answer of this question in here: https://stackoverflow.com/questions/29979360/purpose-of-decl...
The whole "return in one place and it must be the last line" thing in our coding standards here is just semantic noise - because you still have to set the "gotta return" flag and repeatedly bypass the subsequent attempts to do stuff. So it still returns up front, even if it doesn't "return" up front. It just has to spend the remaining lines of the method tiptoeing around the fact.
The simple cases do come up though. I've written plenty of functions which amount to little more than a single if-statement and I have had people ask me to make changes like

foo(things) {
stuff = do_work(things);

if (stuff) {
return a;
} else {
return b;
}
}

into

foo(things) {
stuff = do_work(things);

if (stuff) {
return a;
}

return b;
}

in code reviews.
I assume you're laughing because the sum was so small. It should have been at least 100x larger, in the millions.
But sometimes you do want to drive into a wall. If a child runs out into the road too close to brake and you're traveling 35MPH, the result of driving into a wall is liable to be whiplash for you and a bad scare for the kid. The result of not swerving into the wall could be a criminal investigation for you (plus a civil suit) and death for the toddler. Aviation tends to have fewer trolley problems than driving does.
> Comments are not documentation.

Probably overly generalized to be pithy, but no.

Comments are by very definition documentation, which can and should cover of all of the what/why/who/how/where.

Documentation that occasionally explains how to use code can actually be useful!

Unless you actually get around to writing a user manual (which gets out of date), please do consider documenting how something should be used, particularly in libraries.
You're a brave person to say this in public. :D
I disagree. Consider the absurd example where every single statement is crammed into a single line. Not exactly readable to me?

Sometimes more verbose code is more readable, and sometimes it is the presentation, and sometimes this is "superfluous lines", that increase LOC.
I would strongly recommend Gary Bernhardt's Destroy All Software[0] screencasts. They're usually done in Ruby but independent from language, and more about concisely explaining general programming concepts.

Everything is crisp, and distilled down as far as possible. I've learned a lot just from the thoughts it has given names to and elaborated on.

If you're skeptical, there's even free trial episodes that you could give a shot first. (I would recommend "Functional core, imperative shell")

[0]: https://www.destroyallsoftware.com/screencasts
The problem with this is maintaining comments. If you are using a compiled language or even linting, code that is part of the codebased is checked by a machine at least in a cursory way and the code that is there is what runs. The comments are not guaranteed in any way to pertain to the code that is in the repo and there is not a way for a computer to check the meaning of the comment to make sure that it was updated to match the code. Comments can get out of date, which may make them do the opposite of what they are intended for.
I suspect they use the same logic that police media relations tend to use in reporting "street value", etc. Something like assume the highest possible revenue outcome, then round up. If it doesn't immediately fail the giggle test, that's your number.

We saw the same thing with music downloads, the assumption that every one represented the loss of a full priced album purchase or whatever.
Ok if we're using this bizarre analogy, it's as if you never even could tell if there was a giraffe in the movie theater or not, but if there was, you want it gone.

When a gay couple gets married on the other side of the country, do you notice? Does your life change? If it's the mere idea of it you're opposed to, then that's bigotry, not some practical concern like a giraffe blocking your view of the screen.
https://en.wikipedia.org/wiki/Fethullah_G%C3%BClen#Extraditi...

https://en.wikipedia.org/wiki/Extradition_law_in_the_United_...

Here you go, my friend. I welcome you to find the part of this where it says that someone being extradited has to be found guilty of violating US law or that they have to be convicted before being extradited. As you can see here, the requirements actually have to do with what treaties say and whether there is probable cause (a much lower standard than a conviction).
Note to Readers (by Ric Ford, MacInTouch)
Yes g is abstract, but it is more a summary of all the different factors that go into intelligence. It explains the otherwise very puzzling fact that if you measure one aspect of intelligence (say speed at which someone can do simple arithmetic) you can predict well how well they will do on something totally different (say identifying grammatical errors in a text).
But we see that the general public's relationship with privacy is a lax one at best and at a time when AI solutions are the breakthroughs and revenue generators of the future, that Apple is restricted to an uncertain trajectory. Are you sure that the market value of data and their derived innovations aren't worth more in dollar terms than the privacy market?

Not only that, but having taken this stance so strongly, it makes any future relaxations of their self-imposed rule an even riskier move as it exposes them to hypocrisy. So it's clearly a double edged sword. And while it's certain Google depends on data now, nothing stops them from making excellent phones with excellent hardware with privacy to boot to compete with Apple on their turf.
We must have started from the same source. I've since added displaying message bodies by default, but similar otherwise:

lg = log --graph --date=relative --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset%n%w(0,4,4)%-b%n%n%-N'
The earlier version is clearly better and more clear, but presumes a language where if is an expression (and the actual return keyword isn't required, though “return if ...” is nearly as good.)

But if you are using a more imperative language where “if” is a statement, I think the merits of early return vs. use of an else clause are more balanced in this case.
First of all, when I said concrete things I did not mean for example theoretical physics concepts. I mean things like economics[0] or philosophy[1].

I am saying that mathematical abstraction is not the right tool to get a better understanding for a lot of subjects. My questions was asking if this is an instance of someone with a categorical hammer and seeing categorical nails everywhere, or that it is a super natural fit.

Most mathematicians (I know) do mathematics for the mathematics. It is in itself a goal that does not need an external use. So yes, mathematics for a lot of mathematicians is just mental gymnastics that turned out to be very useful.
Probably the reasons for some people's love for math and the usefulness are related.

[0] https://www.quora.com/Are-there-applications-of-group-theory...

[1] https://en.wikipedia.org/wiki/Alain_Badiou#Mathematics_as_on...
Not op, but I do agree there is something hilariously ironic about that verdict, given the circumstances. In a “haha serves you right” kind of way.
Pretty much what undai says. It then comes down to building a dictionary of search queries and a 'blacklist'. The regex itself is relatively simple.
Facebook and Google Face Emboldened Antagonists: Big Advertisers
I should have specified that I was talking about C. You usually don’t need this pattern when you have garbage collection or C++ RAII.
An astronomers' meeting turns into a haiku competition
"The only good diff is a red diff"
My guess is they use a 0 / small queue in front of the request pool. If queue is full (indicating the server is at its concurrency limit), it returns a 429 (which is sort of weird - return a 503 instead). I don't think that is part of the library though - the library just provides the low level bricks.
Framework that works on top of Rails and simplifies frontback(end) communicat
There is a lot of misinformation in this thread about Android's roll in all this. Clearly - they need better, more fine grained permissions - but they have been working towards that goal for years now.

There also seems a lot of pro-Apple bias that seems unwarranted/
Because if you don't have resource cleanup to do in the method, the GOTO boilerplate is just making things unnecessarily more complicated than a simple return.
1) you could also try to use word embeddings for distance. Afaik they work better than bag of words when few words are present in one observation.
Integrated platform for CRUDing and organizing every type of document
> Isn't that a false dichotomy?

It is, and it's been pointed out from the dawn of computer piracy. But the world runs on greed, not on logic.
Rob Reid did a funny 5min TED Talk on this called the 8 Billion dollar iPod: https://www.youtube.com/watch?v=GZadCj8O1-0

He used the same premise when he wrote the comedy sci-fi book Year Zero, the story of naive aliens accidentally pirating all of Earths music and the legal consequences thereof, i.e. owning the citizens of Earth literally all the money in the universe leading to the ruination of their delightfully hedonistic utopia. A quick and hilarious read.
There is a ton of code that only exists because of issues elsewhere in the code. This is the opposite of brilliant code: these are the dirty patchworks, the hacks glueing the whole thing together. Yet often these hacks are necessary, at least until some bug is fixed elsewhere.

Clear, self-documenting code is great but it can't capture that holistic insight into what the whole program is doing. It can't capture context, because the whole point of clean refactored code is to be as context-free as possible.
While I hear generally about garbage collection causing dropped frames. I've had this happen to me in HTML5 land. I haven't heard about it as much with Unity, that C# was fast enough, and the under the hood pieces are C++ anyways. Perhaps I'm reading the wrong channels :). I'm curious if your game project is 3D, and what sort of intensity you tend to have with it.
I moved to Hyperloop on my personal projects. Give it a shot, I think you might like it.

http://ruby-hyperloop.org/

The guys in Gitter chat are quite helpful if you get stuck.
Things people say as a 19 year old kid is hardly the best way to judge them.

And he wasn’t even wrong.
As a Perl developer i mean this literally and transfer it to other languages as well. POD (or a block comment above a function) describes the API and use cases of the function. Inline comments inside the function exist only to provide explanation for the next maintainer when they see a strange construct. Any other type of comment needs to be refactored.

Also, i never said documentation isn't useful. HOW and WHY are useful. WHAT in documentation and comments isn't because it should be in the variable/function/method/class/instance name.

(Who/Where/When are covered by the source repository and the blame function.)
Agreed. The time he’s lost through this attrition is criminal. International Government seizure is ridiculous.
> But it's still very much what almost every company will do

But it didn't used to be like that – not even that long ago, either. In 1970 Friedman released his essay "The Social Responsibility of Business is to Increase its Profits". Look at the corporate behavior he was criticizing:

> The businessmen believe that they are defending free enterprise when they declaim that business is not concerned "merely" with profit but also with promoting desirable "social" ends; that business has a "social conscience" and takes seriously its responsibilities for providing employment, eliminating discrimination, avoiding pollution and whatever else may be the catchwords of the contemporary crop of reformers.

In other words, companies at that time WERE concerned about social responsibility, and not purely focused on profit. Friedman didn't like this; he called it "pure and unadulterated socialism".

Since that time this parasitic mentality was spread to and propagated by top schools like Harvard, dominating the world view of that next generation of businessmen/women. But it was never "a defacto" thing, and many are starting to catch on to the damage it has caused.
Definitely. But in that case, abstraction is my friend...
One of the experiments in the post mentions that in order to claim the prize, you could either count the number of photographs or easily discover the message "you can stop counting, there are 43 photographs on here." What I wonder is if there are negative correlations here as well - for example if lucky people are better at (and more open to) discovering things, does that also mean they're more likely to blindly follow directions and lack critical thinking? The first thing I thought when I saw that was "what if they're lying or they made a mistake and there weren't exactly 43 photographs?"
Facebook's Zuckerberg says sorry in full-page newspaper ads
"this... to reduce LOC ? Doesn't feel like a valid reason in any language using braces..."

It's not really a valid reason. Unfortunately, there are still a lot of people who think LOC is a valid metric.
Reminds me of Tom Duff's Essay 'Reading code from top to bottom': http://www.iq0.com/notes/deep.nesting.html
A better way to allegorize the Indian caste system would be the racism in USA. No one in urban centers or in the new generations is racist against black people. Go to the folks from the older generations and in the hinterlands and you will find that racism still exists somewhat.

A similar trend is present in India. The new kids in urban centers don't care about caste. The old people in the villages and hinterlands? They do somewhat.

And then you always have the politicians on every side of the spectrum who artificially inflate caste and race issues for their own gains.
Trademarks are domain-specific. Multiple unrelated organisations can and do have the same names in different industries.

If you see 'apple.co.uk' do you think of iPhones and Macbooks, or do you think of "Hey Jude" and "Instant Karma"?

Why one and not the other?
> If you want instantaneous gratification without sweat, do heroin or play video games.

I'm not sure heroin offers a sweat-free experience ….
This conversation should be followed by a fair comparison of how other webservers perform under this type of attack, then a preview of the types of tools that should be used to mitigate this kind of attack. Nginx's max body size is a good start. I believe there is also an nginx module to complete the request's upload before sending it upstream.
There used to be these things called search engines, and we would be able to type the name of the school and the year we graduated, and the site would be one of the first results.

The domain was named to indicate it was reunion related.

If you couldn't find somebody's email address, you emailed their friend, or called them, and asked, "Do you know how I can get int touch with so and so...?"

YOU WOULD NEED TO COMMUNICATE WITH ANOTHER HUMAN TO OBTAIN INFORMATION.

But now, if it takes any effort to communicate with somebody, it doesn't happen.

Only the easy communication...and there is not much substance to it (bullshit small-talk or just posting links).
Zerotier process could not be killed
I install zerotier on my Mac, the zerotier one process could not be killed and always start by itself and I saw lots of network activities.

Any one has similar experience and how to delete it ?
Because based on median salaries, unemployment/underemployment statistics, general culture and level of urbanization, NC is much like a developing country.

If NC's economy is similar to Thailand, then Charlotte is Bangkok, Raleigh is Chiang Mai, and Asheville is Chiang Rai. The Outer Banks are like Krabi.

The number of corporations with large offices in NC is almost certainly comparable to Thailand.

By the same model, I'm willing to bet that life in Mississippi or Louisiana is similar to life in Albania.
Good point. Good example. I imagine it works well in my cases but I haven't come across cases like your example where it breaks down.
This is like the 10 commandments. Good ideas mixed with stuff that is a matter of taste :)

If it was this simple we wouldn't be still arguing about coding styles decades after they were invented. I know few old programmers that I respect very much, and they don't agree about the perfect coding style, not even simple stuff, like braces in separate lines or not.
I can always tell who doesn't understand software total cost of ownership. They always think the great cost is in creation. Long term maintainers are much harder to come by than short term job hoppers. As Linus said, BSD is great for code you don't care about.
Omidyar Invests in Markov, a Startup Building an AI to Change Cooking
I agree with this. When dealing with a modern programming language, it's just easier to name your functions and variables in such as way that they're readable. It makes sense to document public functions using the language's documentation syntax, if you're writing an API.

I look back at a lot of my old code and even without comments, it's easy to follow the logic because I used sensible names and constructs.
Comments that answer "what" are redundant. Choose your identifiers better.

Write good commit messages and comments that answer "why" are redundant too. Commit messages by their nature refer to the exact code that they refered to when they were written. Comments answering "why" after a few years are misleading anyway, because code changed around them.

Commenting public api etc is obvious, and most people do it.
Are you being sarcastic? I can't tell.

He's right, gun free zones don't work. Every school shooting in this country was in a gun free zone.
How in the world do you have "petabytes" of RNA data?
> The problem with this is maintaining comments.

That's like saying "the problem with healthcare is that it costs money". Of course comments can get out of date. The solution isn't to throw them out!
In the UK, and the rest of the EU, there are only two packaged goods that do not need an expiration date: water, and table salt without iodine. The other exception is fresh fruits and vegetables.

The legality and morality of donating food past its expiration date is somewhat murky and different depending on jurisdiction. I know France passed a law specifically allowing the practice, and its at least tolerated in Germany.
Agreed, but I will admit I chuckled when I read "loss of dignity" and "injury to feelings". They could at least call it emotional damages. I don't think he was laughing at the amount or at Kim but at the legal title of the relief.
Ownership transfer contracts are one such example. We assume here that the
signatures under a contract cannot be forged and the contract itself cannot be
modified without the consent of the involved parties, but digital signatures
used in (on top of) blockchain satisfy this requirement.
The reverse network effect is also real. People who leave for whatever reason reduce the value of the service to others. Services quickly goes from the first place to keep in contact to yet another place to post event announcements and not much else.
Completely agreed. Put another way: the sentiment that code documents itself is only possible in purely logical systems with no edge cases or surprising consequences.

As an example, our code base has a comment which refers to our internal issue tracker which itself refers to this HN comment: https://news.ycombinator.com/item?id=9048947
I used to prefer keeping a single return point in my methods, but over time this changed. Now I find myself returning as early as possible when there's an error or some other failed condition from which the method can't/shouldn't continue. For my hobby project I'm using Go and have found that it especially promotes this practice - it encourages me to handle errors early and often; if I nested all of the error-related conditions my methods would get very messy very fast.
5 UX Vendor Platform Values That Determine the Future of Banking Digitalisation
No, I'm asking for proof that it works over alternative baselines. If people already decided to purchase a product offered, the ad sets up a costly, unnecessary channel.

As was stated by another in this thread, prisoner's dilemma leads to unintuitive economic outcomes.
Good advice except for the last example which is brittle and unnecessary. If handleError() is ever changed this method could start returning values unexpectedly. Totally unnecessary and not a worthwhile "optimization" to save lines of code.
That’s correct: there is no SSH daemon by default. You can optionally include https://github.com/gokrazy/breakglass, though, which is an SSH daemon that can be started on demand to facilitate interactive debugging.