skysight-inc/HackerNews huggingface dataset:
It's hard to tell whether you didn't read the article, or you read it but were so preoccupied with an existing train of thought that you essentially responded to an imagined version of it. I would generally agree with your point if it was about one of the many articles that do try and make this point but I don't see where this one does.
Wikipedia was unaware of YouTube’s conspiracy video plan
Putting aside the specifics of the system in China, the underlying issues are a problem all countries need to explore. On many near capacity public systems it only takes a few bad actors to completely foul things up for entire sections, eg delaying a subway line.
Traditional social pressure seems not to work anymore, for instance with this case on a train in the UK: https://youtu.be/2mpKu_x2s3w
In that case the train was delayed until eventually the guard said they had to allow the smoker to stay on the train or it would affect the line! Part of their argument was there were no signs saying you couldn't smoke on the train (smoking is illegal inside in any public spaces!)
I am not sure that one massacre, no matter how bad it is, defines a whole war. The Vietnam war was meant to block the expansion of communism which at that time had a fair amount of blood on its hand.
The problem balancing implementation vs ontological inheritance while providing strong type safety is that your language needs to either support defining contravariant types (and you still likely end in a mess, see Scala's eternal discussion about "total" type safety), or you disallow ontological inheritance completely (like Golang, and therefore cannot support many modern programming features, for the better or worse, doesn't matter). Not sure if there is a language that truly does the opposite by design, though (being strongly typed and disallowing implementation inheritance, while providing ontological inheritance). Such a language might be the DDD modeller's heaven? :-)
In June 2018 Google to ban cryptocurrency ads from Google Adwords
It takes a constant space since it is not even recursive. The decorator makes it a non-recursive function with a loop.

It'll effectively side-steps the recursion limit in Python. For runs under the limit anyway, it'd be interesting to see whether it's any faster. It trades function call overhead for exception handling overhead.

By the way, the first example where it has `return 1` is wrong. It shoudl `return accumulator`. Clicking the GitHub link someone suggested this in December.
Is the real world "subtypeable", in your opinion?
I'd also like to recommend the Ken Burns "The Vietnam War," which can be found on PBS. It is amazingly well done and the depth of it is beyond most documentaries. For example, there is one episode (1.5+ hours) that covers a six month period from 1967 to '68.

I was a small child during the war (10 in '68) and (to be truthful) only somewhat remember watching the coverage on TV. My mother said I used to ask her if I was going to have to go fight there and that I didn't want to. Thankfully, I didn't. The war ended in '75. I had just turned 17.

Strangely, the My Lai massacre is not covered until a later episode. They slotted it in the time line where it was first reported --not when it actually happened. But be patient, they do get to it eventually.

The sobering part about the series is that it absolutely captures the stupidity, futility, and mismanagement of the war over such a long period of time. The huge waste on both sides. The scale of it was staggering.

Myself, I am always drawn to the jungle patrols and the combat portions, which are fierce, terrifying and totally engulfing. I can see why certain people are drawn to war. It's the ultimate video game. Everything is on the line. You have no idea what the enemy will do and (really, in the end) no idea what you will do when faced with that visceral terror and excitement. What a rush it must be! And how horrible too. I am in inveterate coward. I don't believe I would have gone if called, but my 17 year old self is someone I don't really know anymore.

Anyway, the series is great and I highly recommend it.
"solitary confinement" which is properly recognized as a form of torture. So you CAN opt to be tortured instead. Clearly optional
I don't think you and parent disagree. Facebook will do a good job of 'protecting' your personal data because that allows them —exclusively— to benefit from it. Though the definition of 'protecting' might differ, Facebook's might sacrifice that protection to benefit at any point. As a user, you're not in control of that transaction and will never benefit.
I think the savage is in the human nature. Maybe in the future wars can be fought virtually. With the advance of VR we fight it out in "Quake" rather in real life.
Right, but not hundreds of thousands killed by US troops. Hundreds of thousands killed by Iraqi (or other non US parties) in a civil/ethnic war.

We can go into the debate of whether Iraq would have been better off left under Saddam Hussein, and that may be the case, but it is not comparable to US troops deliberately killing civilians.
Not sure, I've wondered this myself. At a certain level, there's the fact that the US is simply a very patriotic place. Similarly, in Russia it's also not socially accepted to publicly criticize military service members. That said, there are many other "patriotic" countries in the world, and not all of them impose this social reverence on the military, so some other factor is at play.

Common knowledge says that the US was probably not always like this. I'm not old enough to remember the Vietnam era, but the stereotype goes that returning soldiers / military were treated with disdain by the civilian population. I have to admit I've wondered at how widespread this mistreatment was, but it is probably safe to say that the military of the time didn't enjoy all the unequivocal support, standing ovations and endless TYFYS that permeate American culture these days.

I do know that after 9/11 and at the outset of the GWOT it was universally taboo to do anything but loudly praise the military. Where this sentiment came from, how it was disseminated, why it persists to this day : all are frankly mysteries to me. It didn't make sense then, and it doesn't make sense now.
The article only talks about quantity, not quality and that is the main problem with javascript.

Not so long ago I had to work with graphs in javascript and none of the graph libraries I found explained the implementation details or the complexities of the algorithms.

It turned out that the implementations were ad-hoc and the time complexities were bad so I had to implement my own because they did not work for real life usage, only the example projects.

I'd rather have 1-2 options for solving a problem which are well documented and implemented properly instead of having zounds of crappy libs which don't worth a penny.
> Shitty animation no one notices is nothing to worry about.

Jobs would've had a seizure at this statement.
I used to feel like this before writing big and complex programs. But in term of practicality, it's a whole lot easier to just write the expansion of "rectangle" to "square" than re-writing "square" from scratch, essentially copying the majority of "rectangle" properties and functionality.
Link: https://twitter.com/NYDailyNews/status/974073948299284481

Weird to say but now you know why people in China treasures peace a little bit more than freedom.

Massacres are common during Japanese invasion[0], and nobody stood up for civilians. The result of that was people got murdered village after village and then burned or lefted there for animals.

That collective experience in some degree shaped the political landscape of China today.

[0] https://en.wikipedia.org/wiki/Three_Alls_Policy
At least it's not bad as Perl, where the same code can be parsed as division or a regex depending on the 'type signature' of a function it names:

https://www.perlmonks.org/?node_id=663393
More State Machine Love: From Reflection to Statecharts
Edward C++ Hands (2013)
https://arstechnica.com/gaming/2018/03/how-a-norwegian-comme...
In the US, support for soldiers is often completely orthogonal to support for the government or war plans. Soldiers are effectively considered brave men and women selflessly serving their country, even if they're fighting an unjust war. The rationalization is usually that politicians and other elites are to blame for the wars, while the soldiers are mere pawns who bear no culpability (or at least that's the perception for the ones who aren't torturing people or committing Abu Ghraib-like atrocities; those individuals are seen as a tiny minority of soldiers). They're "just following orders".

As for the actual justification behind that, it's highly up for debate. But regardless, you'll generally find the vast majority of the US left in the somewhat paradoxical position of unilateral praise for soldiers with simultaneous hatred towards the government's military decisions and actions.
People can select an institution to do community service. Call in sick. Opt to change their mind and do said service at a different place. Although they owe x number of hours of service their labor is their own and cannot be sold by a third party nor are they held against their will.
Indian origin here, from a young age my parents would with me sit on the floor even though we had chairs, cross legged. I found a lot of my English mates struggle to cross their legs, even as an adult I can do it but goto classes where I see them struggle. We used to squat to eat as most Ayurvedic principles say this is the best way to both eat and poo, it keeps your colon straight whilst sitting on a seat forces your poo out at an angle and increases wear and tear. Anyhow, the reason why everyone cant do the Asian squat IMO is arrogance/ego more than anything, I think a lot of Western people stick their nose up at it thinking its something poor people do. When infact its how your body was designed, but years of not doing it deactivates your knees and makes your legs less supple, which in turn causes knee and back problems.
The Decorator pattern is your friend.
MangaFox.me – 1,311,610 breached accounts
Yes, learning how to deal with uncertainty is necessary. I think the analogy though is something like this: Your mind was running on hardware, now its running inside a container inside a container. Do you have a reasonable chance of figuring out how things work, also will it even be relevant? Inside the filter bubble / matrix everything seems consistent.
"Nothing is to be had for gold but mediocrity."
-Arthur Schopenhauer
Xkcd: Robot Future
We don’t use inheritance anymore. If something needs to be shared it gets its own service class.

Every time we’ve used inheritance it’s ended up being more of a hassle to keep track of as functionality changed. I know we could utilize it better than we have, but that’s part of development management as I see it, if I know my crew won’t utilize something to good effect, then it’s often better to adapt our practices rather than fail at change management after a long period of trying. Especially because a lot of new hires are really bad at OO principles beyond the fundamentals.
This is obviously wrong. No sane person would argue that climate change in Roman times was man-made, therefore there was no possible action Rome could have taken to mitigate it.
Sounds ridiculous actually. We are Rome indeed but the similarities are not exactly climate and disease...
GP is implying they started using multiple threads exclusively for UI instead of a single one.
Yeah, the Iraqis were just sittin' around, doing nothin', having a Bud.

Does anyone remember Kuwait?
> So, Twitter has to ask if its easier to put up with 9,500 not-so-active bots, or to potentially make 500 people very upset.

The latter wouldn't be such a problem if they had an established, WORKING process for appeals. Or to get in contact with a human at all.

As for the spambots: ignore them, they don't do much besides luring morons to porn sites. The Nazis and other similar trolls are vastly more dangerous for Twitter and for societies.
Code snippets you won't see if you have JS disabled:

https://gist.github.com/ChrisPenner/c0b3f4feb054daa2f6370d2e...

https://gist.github.com/ChrisPenner/c958afbf6e7a763c188d8b83...
Well, all spending carries inflation risk - what really matters is what aggregate demand is like and how much spending and taxing alters that. Certainly QE could be inflationary, but as it was it was mostly just buying back securities it was mostly asset neutral so shouldn’t have done much (just like issuing Government securities to match deficit spending (just in reverse) - it doesn’t actually alter whether deficit spending is inflationary or not since there is a quite liquid market for those assets so they’re very similar to cash).

It is considered to have inflated prices of certain financial assets though (shares etc.)
Especially there is no reason, if I type news.ycombinator.com in my address bar to expand with http:// instead of https://
Let's be clear what we mean by "the police and army vanishing". This is not common thugs committing crimes. Saddam Hussein was keeping a lead through tyranny (and massacres in the past) on the shia-sunni-kurd ethnic tensions which blew out when Saddam felt. Add to that mix a rise of islamism and you get a murderous civil war. None of these ingredients are really the making of the US. The US certainly ignited the war by removing the tyranny but do we really want to go the route "these guys deserve a good dictator to keep them from killing each others"?
Two reasons: they chose to take the job (which can result in your own death and being ordered to do very difficult things in service to your country) and they are our children, brothers and sisters. Once they chose to serve, they are subject to the orders of our civilian government and so we separate the decision to go to war made by politicians from the decision to potentially die in service to our country made by soldiers, sailors, marines and airmen.

Finally, most wars the US gets involved with are sold to the people as defense. We we sold that Iraq was behind the attack on the World Trade center and the removal of Sadam Hussein would make our country safe.
Sure it can just filter out anything that obviously comes from China or seems similar to content coming from that direction. Oh you meant in China? Have fun with that.
"Developed" is a multifaceted concept. I'm currently in one of the larger cities in China, and everyone here has cellphones and wifi; there is an extensive subway; many people own cars or e-bikes; there are many shopping malls, restaurants, supermarkets, convenience stores etc -- but the vast majority of bathrooms feature squatting toilets. There are some cracks in the facade -- sewage flowing openly down one alley into a drain, unfinished vacant buildings here and there, dubiously sanitary handling of raw meat, placebo recycling, the infamous haze, and the grotesquely popular practice of hocking loogies onto the sidewalk, to name a few -- but China manages to feel quite developed and almost comfortable.
>why do you think parts of our business community are so concerned about the overheads of trade with the EU post-Brexit if we wind up outside the SM/CU?

Because you loose the systems of the CU that make it so easy! It is easy to import into the customs union because

1) It is worthwhile to other countries to make specific agreements with the EU, because you make them once and they are valid for the EU28. Many countries have these deals with the EU.

2) As another poster mentioned, once goods are cleared for the EU they can shop to any EU country.

3) The common commodity code system means that once you have established what code your goods fall under you can send them to all 28 countries.

4) Outside of the CU we would have to have our own customs agreement with every country in the world. Develop our own systems, commodity codes, standards, IT etc.

5) Outside of the CU we would have to agree Tariffs with every country in the world rather than CCT

6) Outside of the CU our goods will have to clear customs into and out of the EU. Most UK goods currently ship to Calais which is not a customs port and has no facilities for this. I don't see the incentive for France to build them either.

7) Outside of the CU goods attract VAT when they clear customs. Whilst you can claim it back, there is a catastrophic cash-flow impact for importers.

8) None of this is agreed yet with 1 year to go!

9) UK has land border with Ireland that is totally open and must be so under the Good Friday Agreement (for those that don't know this is a fundamental treaty of the peace process in Northern Ireland), of which the USA and EU are co-guarantors. The Customs Union is what allows this to work. Without it you have to have customs because goods in Ireland are now free to move across the EU. The UK government has already agreed to keep 'regulatory alignment' (a customs union) with NI to allow this to happen in the November deal (which it seems to be pretending didn't happen right now). Under the agreement between the Conservative party and the DUP whatever agreements are made must cover the whole UK or they withdraw co-operation and the government falls.

Interesting how this plays out....I suspect we will have a CU with a different name as a fudge.

RE: Services I would be more concerned than goods. Professional qualifications are currently good for the whole of Europe. Chartered Accountant or Engineer you can practice in all 28 states. Not so after Brexit. If you are selling to consumers then you will have to abide by all of the the same standards and rules as the EU sets, but not get any say in them any more.

So yes it is much simpler to be in the Customs Union.
Brute forcing short URLs and targeting organisations to find highly confidential
At the time, the Iraq war enjoyed broad public support particularly on the right. That support persisted for over a decade, and to this day you'll still find people justifying the whole mess, arguing for the existence of "WMDs", contrasting Saddams atrocities and of course roundly blaming Obama for creating ISIS by disengaging.
Show HN: Makesite – A static site generator in 125 lines of Python
Freediving with Sharks
This is a good summary, but it's even more nuanced than that.

For example, while China did lose the Sino-Vietnamese War, they did achieve two important objectives.

First, they proved to be a trustworthy ally to Cambodia. This is why those other SEA countries like Cambodia, Laos, and others that were bullied by Vietnam are much more pro-China right now.

Secondly, they showed that while the USSR was a Vietnamese ally, it would not interfere with China.
Years ago I read a book which suggested that this was specific to the U.S.: sitting cross-legged doesn't carry any particular gender / sexuality coding elsewhere.
If a V-2 without explosives counts then so does the "B53 Thermonuclear Bomb on display at the National Museum of the U.S. Air Force" - http://www.nationalmuseum.af.mil/Visit/Museum-Exhibits/Fact-...

Yield of 9 megatons.
Project money or product focus?
I am employed as a part time sysadmin. I also work two days a week for myself. My own business is a subscription based website for schools.

Growth of the website has been pretty static for the last few years. I have been kept busy however with some fairly significant side projects.

Should I focus on growing the website subscription or just take any project money which comes?
I'm pretty sure that iOS renders UI on a single thread? You can't even create UIImageViews off the main thread without risking severe breakage. Fortunately, modern Xcode has an Analyze option that will flag attempts to access UI off the main thread.

GCD is a nice API for scheduling async tasks but that doesn't mean those async tasks can access UIKit or OpenGL contexts safely?
The US left is generally anti-Assad, both due to his atrocities and the perception that the Russian government is propping him up. There is a wing of the left who support him due to a belief that the US are trying to destabilize his regime and install a puppet by funding violent rebel groups. They're not exactly wrong, but they're blinded by ideology and in some cases conspiracy theory thinking like the chemical attacks being fake or his atrocities all being US propaganda. I would say this is only a small minority on the left, though. Most of the left hates Assad and his regime. The right at the moment seem to be more sympathetic to him.
Even if the animation is intentional, the second line of text should still be clipped to the bounds of the notification.
Actually, I think they are kind of duals to each other. With pattern matching it is easy to write new functions but hard to add a new case (you need to edit every previous pattern match you wrote). On the other band with classes it is easy to add a new class but hard to add a new method (you need to edit every single class you previously wrote that implements that interface)

Functional programmers call this the "expression problem"
Learning about the great filter can cause depression, reader beware.
People in China talk about it all the time. But you do have to speak Mandarin or the local dialect to hear it. Many don't want to talk about it in English because it gets annoying to hear expats and tourists preaching to them.
>Japan has a pretty long history of autocratic rulership..

What does any of that have to do with Japan as of 2018? Unless you are arguing that their clean streets and robust infrastructure was some sort of lingering effect of an emperor from 2000 years ago, and not due to post WW2 liberal democratic reforms, this has nothing to do with anything.
I think inheritance make code more coupled, which make it hard to delete or refactor. Most of the cases it's better to just copy and paste. You can still share methods. But the moment you need to modify a shared method just so it can be reused: Make a new function instead. One popular solution is to only let functions do one thing but that leads to even more coupling and less reuse.
There's a fine balance between reuse and coupling. Where reuse is good and coupling is bad. A general rule for when to reuse/share/modularize is when the method/function can be reused in other code base. eg. when it can be/is decoupled.
Simple Steps to Protect Your DevOps Tools from Crypto Miners
Didn't read the article but it sounds stupid. Comments will always be chaos.
Hostile workplace culture is a thing everywhere. You don't have to and you shouldn't have to be friends with all your colleagues. Loneliness is not a problem that can or should be solved at work. You should make sure nobody is marginallized but trying to make people feel at home while they're not is deceptive, it really complicates simple things, and it's not good for anyone.

The article says we should deceive employees into thinking we're all a family so we can make more money out of them. As far as I know there's a lot of effort in that direction by the american industry (ie forcing wallmart employees to do a humiliating group dance/song at the start of their shifts).

However there's one thing the author forgets: If you actually create strong relationships in your office, you run into the danger of them unionizing! Uh-oh! Time to do a U-turn. What if your workers demand higher wages collectively? What if they protest the firing of one of their friends? So I guess now their goal becomes "how to make people think they're in good company while making sure they're not". Fortunately it's rather hard to trick people into this.
Learn Go by Writing Tests – Arrays and Slices
How we failed our Product Hunt launch and how PH really works
You mean like back in the days when Apple Maps was released? Or when we had Antennagate?
McCabe Statement
And it's not only that they can do this at all as if this wan't already bad enough; on top of that neither the media, nor anyone else for that matter, can discuss/critizice this in public other than to admire it.

Harmony.