skysight-inc/HackerNews huggingface dataset:
I would take an existing vanilla JS project if you have one, and convert it. I learned a lot there. You can also learn a lot of the conventions by using/studying TSLint. https://github.com/palantir/tslint
Another way to look at it is that Go expresses additional things that you can't express with Python.
If person B knows that person A was the one to mistakenly misplacing it, as is the case here, I'd say they should try to get it to person A.
Bitcoin may be a finite supply but cryptocurrencies in general are infinite. So can you really say it is a fixed monetary system?
The Undeniable Upsides of Founder-Led Companies
If you are looking through the 'change the world' pink glasses, take a look at gridcoin. With Bitcoin you are only burning electricity.

Also, no need to talk that much down on the rest of us with your last paragraph.

We get what Bitcoin is all to well (heck I even have a research paper published for hashing algorithms). some of us are decently well off to not need to gamble for cash. If Bitcoin hit 10m a piece, I don't think I've lost anything (same if tulips or dogs are sold 10m a piece). I did SETI cpu donating time in the olden days, ran a BBS, and brought email to a small mountain village. I loved internet in the early days and now.

Sometimes, people like me, just want to stop the fools being burned on a pyramidal snake oil, because we are older, and have seen the shit in various forms.

On this forum, I assume the rest are similar to me, but perhaps a bit younger, so the anti Bitcoin sentiment is just a sentiment to maybe save you some of your hard earned money. That is my reason. I won't guess the others.

Tldr, we get it all to well. There is no hate. But do ask yourself why we still maintain our stance/advices.
>Las Vegas' self-driving bus IS HIT BY A HUMAN DRIVER THAT WASN'T LOOKING WHERE HE WAS GOING in first hour of service

ftfy
(Author of the post here)

I think there are 2 differences:

1. It's very very easy to write a GraphQL query, since GraphQL comes with auto-completing tools to do so. Even non-technical staff at our company often use it to get information about customers, etc.
2. The query is written inside the client codebase, which means you don't need to redeploy the server in response to a change in client data requirements. This reduces a significant amount of the friction caused by frontend features needing to wait on backend deploys.

Other than that, you've got it 100%: GraphQL is a technology to make the Backend For Frontend pattern much easier and more flexible.
'auto' makes it difficult to predict what type you actually need for a new method that uses some parameter you get from a 3rd party library. I once had like 12 nested templates revealed to me only during debugging with RTTI as a type of some innocent auto parameter.
He Perfected a Password-Hacking Tool–Then the Russians Came Calling
Google Adds New Features in Chrome to Fight Malvertising
Really interesting write-up and explanation, thanks for posting.
Are you implying that some sexes or races have superior (aka super) capabilities that others don’t have?
This shouldn't even be up to discussion. Auto is better overall

Compilers know types better than humans.

Whoever bans it (whithout a very, very compelling reason like "some of our code has to compile in an old compiler") is being a luddite at best.

This should have been in C++ from its inception to be honest, to avoid blah_type<with_this> something = new blah_type<with_this>() repetition.
Someone care to explain how forks / clone coins are not the same as money printing. The motivation behind them are the same. Greed. I would have imagined the value of Bitcoin would have went down a lot after every copy
This has a bit more impact than the headline suggests - "Chrome will block iframe redirects" means that the usual JS methods of iframe busting (aka prevention of iframe inclusion) will stop working and only X-FRAME-OPTIONS will remain.

I'm looking forward to point #3, blocking misleading UI elements - I know this behaviour mostly from porn and filesharing sites, it's really nasty.
This same question could be asked about many technology startups.

Why should Uber be valued higher than Lyft?

That's a pretty crude comparison, but I'm just pointing out that just cause someone comes along and makes a clone of something doesn't mean it will be worth more than the original even if it is technologically superior.

It's true that forking a cryptocurrency required much less work than starting a company, but I don't think that the value comparison is that different.

If people believe Bitcoin should be valued higher than a clone of Bitcoin even if the clone is better, Bitcoin will be valued higher.
You're not all wrong. I live similarly to the way you describe. I'm certainly not setting him up as a model, or defending the subject of the story.

Do you know Toronto well? It might not be to learn from the lessons he has to offer, but may be something somebody (or many people) in this town need to hear.

Like I said, there are so many would-be anythings that fade into obscurity for one reason or another, for a cause that was their fault or not. Normally you just don't hear from them.

Everybody loves an unlikely success story, but are full of venom when shown the other side. Maybe nobody wants to believe it, and would prefer to believe that everything follows a perfect order and all you have to do is follow a prescribed set of rules and you'll be fine. I think the context is important—the story is a tragedy, not an ode.
Understanding the scope of cyber threats
Interview with Patrik Heuri,former Global Head of Information Risk at HSBC Private Bank. http://bit.ly/2xLjIsm
What do you mean by "pay back its price to Nintendo"? Sending them the money? It'd probably cost more in billable accountant time to process it than the amount being received.
It worked fine in VS2015 and works fine in VS2017. It doesn't work in cases where it cannot work, as in

```
template<typename T>
void f(const T& t)
{
auto val = t.some_method();
}
```

and here it cannot work because T can be an arbitrary type and there's simply not enough info for intellisense to work and suggest members on val.
I'm not sure that it's safe to use an unstable API without being very careful and understanding the breaking changes before updating it.
> That's not really true. If you want an SQL database to back your website, then you'll deal with interface{} with Go's sql package.

True. But for most real world scenarios I only ever use interfaces at the boundaries between APIs and they quickly get asserted into a type after being passed.

Conceptually they're a bit like passing marshalled data between APIs in that sense.
"Just because you do not take an interest in Facebook news, doesn't mean Facebook news won't take an interest in you" - Perecles
So if you’re legitimately based in a country with low or no corporate income tax and you make $1 of profit in the US and $1b overseas, you pay the US tax on your entire income? Who would agree to that? It would also be a flagrant violation of world trade rules.
That's an interesting problem. I've only had to manually fiddle with my lights once or twice so I hadn't really thought about it.

One thing I think they could really improve would be to enable voice commands for these things. It's still no substitute for a physical control when you really need it, but it would help, and it ought to be something they could add in an update without much trouble.
Ajit Pai: Media Ownership Rules Must Adjust to the Digital Era
There are so many places to go online for social validation of low effort one-liners. I appreciate humor and even some snark in comments, but come on.

I come here for signal, it's one of the few places I know that still has a high signal/noise ratio. It's decreasing to be sure, but it'd be nice to keep it as high as possible for as long as possible.
If the environments I code for only use VS(Xbox One/PS4) then I think it's fair to code for that IDE. We use Visual Assist at work and auto + hugely templated classes are a complete fail, it just gets no predictive text at all.
> We can safely alter fields in the backend, and be notified at compile-time if client-side code is about to break as a result of those changes.

I think that's an immensely useful thing to do - that's why I've been doing it for years by using Thrift instead of REST :). Is there still a value proposition for GraphQL if I'm already using strongly typed interfaces?
And what about the "TypeScript Design Patterns" book, you guys have read it ? Is it good ? Is it worth the investment ? http://amzn.to/2ym40AW And what about Online Courses on Udemy?
This doesn't sound like a case where auto is the one making things harder...
Time Warner Cable sells ISP services. It was sold from TimeWarner in 2009, and then purchased by Charter (Spectrum) last year.

The TimeWarner that AT&T is attempting to buy is only television stations and equity in Hulu. No infrastructure.

Time Warner Cable IS NOT Time Warner.
Rather they would use a crypto currency with actual anonymity don't you think?

I'm not going to mention it by name lest someone thinks I'm here to "shill" it (which btw I'm not, I only hold BTC and ETH currently).
Cogmind: How Josh Ge bootstrapped an indie game to $2,500/mo
'auto' is a terrible choice of the keyword. 'var', like in C#, would be much, much better. But no, the C/C++ people have been bitten by this weird keyword overload bug - the same one that caused 'static' to also mean "local"...
> The problem is that it has potential to change world for the worse, not the better.

Points at Facebook/Twitter and Trump+Russia abuse of this tech
Note that since smart pointers showed up about the same time as the revamped “auto”, you should use std::unique_ptr<>, etc. with “new” and not need “auto” there either.
> My problem with auto is that Visual Studio loses all ability to predict code when you use it.

That sounds more like your problem with Visual Studio.
The key part is the statement that "it cannot be valued". Saved you a click.
Right but is there a market for single malts that taste weird? Really asking, I don’t know.
But why?

Duck typing works fine.
For a website? PHP or Ruby. If you feel you have low level needs move to rust. If you want microservices use node. Go is a compromise of everything.
I don't know where you get the idea I'm a small time seller from my post. I move about $20,000 in product a year.

Well I used to. I pretty much quit about six months ago.
Now you can have the real functional Overwatch Tracers Gun of Your Dreams
I was referring to the move towards tile-based operation, and towards more paralellism in the front-end (e.g. for a long time even the most powerful GPUs had a bottleneck of processing one triangle at a time at a certain point in the pipeline, and recently increased it to... two).
https://www.wikihow.com/Turn-Off-Caps-Lock
Excellent comment. I remember psychologists talking about the addictiveness of certain games (most notably MMOs) and identifying similar design elements.
It may be easy to dislike, but the law updates to make these banks the only game in town.
The UK is a western European country, and still part of the EU (and therefore bound to its regulations).
The better word would be submissiveness-related scenario. Politeness should not require you to accept abuse.
The issue is that 'var' would make old code not compile anymore, while 'auto' was already a keyword with pretty much no use.
Bitcoin's Enormous Energy Costs May Prove to Be Its Biggest Risk
> the same BTC might buy 10 phones in a few weeks.

Which is kind of crazy and defies all logic - cryptocurrencies can be manufactured without any limit, even Bitcoin can be cloned and rebooted, creating a new currency space/ledger that's fresh.
>Assuming a fully tested codebase, there is an overhead in writing and maintaining unit tests that has to be considered as well, and using a static type system obviates a whole category of them.

I've not found this to be true, and tests that do type checking are a waste of time in any language.

Bugs that are caught by static type systems are almost always caught by a combination of behavior tests and a sprinkling of sanity/type checks on border code (e.g. a module's publicly facing API).

>you'll find out at compile time what you did wrong

In a fully tested code base that is regularly tested the distinction between compile time and runtime does not matter a lot.

By contrast n code bases in dire need of tests (which is more common than generally assumed), the distinction is absolutely vital.
I have written some Kotlin, and perhaps it's me, but I don't see.

"nullable types are smoother than Options - null checks are relatively painless"

Might be the case, but Options are more expressive in that I can combine them and restrict them with other type classes to express larger constraints. Reusabilty is higher e.g. with Monad transformers like OptionT.

So nullable types are less code, but also less expressive as building blocks of larger constructs.

They might be also less expressive because they conflate two concepts: Not initialized and not-there, whereas Option expresses not-there and _ (in Scala) expresses not-initialized.

"named parameters and optional parameters"

Not sure how this more expressive?
It's getting harder and harder to "just don't use" social media.

I don't know about the business perspective, but why is it hard not to use facebook for people? It's a serious question. Everybody I know (me included) who is not on facebook has no problem with it, and it certainly isn't getting harder.
Any reasoning for this rule? I don't code C++, but in the languages I do use with inference, I just use the maximum allowed inference within a function, and rely on simplicity and good naming to get by.
(Author of the post here)

> GraphQL is above all, just an optimization. It optimizes the amount of bytes sent over the network.

This was a common thought when GraphQL was first announced, but working with organizations that are adopting it we've found just the opposite: It's actually the tooling and development velocity benefits that people get the most value of.

It's kind of like if you could design your API to be super orthogonal and fine-grained, while still getting the optimized network transport of hand-coded endpoints for each view.

> The whole "just cache it on the client" is a big joke and many people seem to underestimate getting caching right.

The post goes over a new architecture specifically for server-side caching. Caching on the client is definitely not sufficient! And Relay isn't the way most people are doing GraphQL today. Also, clients are about to start supporting cache control and TTLs, making life a lot easier. I'm curious what the comparison here is, since people using technologies like Redux with REST APIs are also usually caching responses forever.

This is really useful feedback for those of us that think GraphQL is going to be a super important technology going forward, and I hope you give it another shot in a year or two! It's still pretty fresh, especially compared to REST, but I think it will improve quickly :]
And make use of std::make_unique<>.

auto foo = std::make_unique<Foo>(25.3, true);
link?
that’s an interesting point about probabilistic models and obscure failure modes, but what does that have to do with moral thought experiments?
MVP probably refers to most valuable player here, not minimum viable product.

He has a solid set of valuation videos on YouTube and offers a large library of finance teaching materials that most business students are sure to encounter during their studies.
Ah, the age old argument for personal responsibility...

"Oh, is the river polluted? Then don't go in the damn river! Use your head! Don't expect someone, or god forbid the government, to force someone to clean it up just so you can go fishing in the river!"

It doesn't matter if you or I choose not to use Facebook. The rest of the planet is glued to their smartphones and phubbing us every time we leave the house and that affects us regardless of our choices.
Actually performance problems are way more probable when not using auto. Example:

std::function<void()> = [] { ... };

Vs:

auto = [] { ... }

In the first case you are doing type erasure, which adds quite few penalties. Even in other cases, the type you typed might be convertible from the actual thing that is returned, causing extra conversions. If you always use "auto" the chances you use the right type and do less conversions is way higher.
> Yuichi: We have a huge variation of employees and the dedication to create an experience that surpasses reality. That’s why our motto is “more than real.” We had a case recently where a dying man wanted to see his grandchild, but it would not have been born in time. His daughter was able to rent an infant for the day.

This whole interview was way more gripping than I expected it to be.
Paleotronic Retro-Technology Magazine Kickstarter Campaign Is Almost Funded
Ask HN: Round or square for pictures?
When you look at your own pictures on you favorite social media site do you like see them in a square/rectangle framing or a circle?
Ask HN: How Do I Resolve Apple App Store Rejection?
Just some background:

I'm helping a government client submit a searchable acronyms/dictionary app to the Apple App Store. The App has very limited but explicitly clear requirements. It's not in anyone's interest to increase the requirements beyond what's needed just to get through a subjective Apple App Store approval process.

Now this is my problem:

I've been trying to submit the app and it is being rejected because of:

"Guideline 4.2 - Design - Minimum Functionality Your app is primarily a book and is therefore not appropriate for the App Store."

The Government client really needs this app on the Apple App Store. So, I've started adding UI elements that are unique to iOS (and not available for books) and in-line with the iOS design guidelines.

I added the following to "enhance" the functionality:
(1) tab bar for search and browsing so that the user can maintain their searching and browsing state
(2) segmented buttons so that users can easily filter the list

It's still getting rejected for the same reason.

My next step is to start adding a drill down tableview but I have a feeling that it's going to get rejected anyway.

My Question(s) is/are the following:
(1) What practical options do I have to get the App approved without reducing the functionality and making it a book?
(2) Does anyone know of anyone at Apple or in the App Store approval chain that can help me to resolve this app store rejection issue?
It's the same opportunity cost whether you spend from your BTC account or your USD account! You're choosing between "should I buy a phone or 0.1 bitcoin with these dollars?"

I think the presence in the market of an asset that many people believe is continually underpriced would have a general effect on spending, not just on the utility of that asset as a medium of exchange...
The first thing that comes to mind is a gaming app where your main browser is the lobby but the windows are actual game instances. There's a site called global poker that does this for poker instances and it's clean / useful for this kind of use case.
We've got one here you can try out, and I hope people build more!

https://www.apollographql.com/engine/

(Disclaimer: I work on Engine)
There's no reason why implementing a language in itself would be special, it's not dealing with fringe situations in any sense of the word. It is traditional to write compilers in the very language they compile, except for slow interpreted languages, and a compiler is a very well-studied type of program that includes a variety of different types of code such as straight text processing, error reporting, and recursive data structures. Compilers are often used as test beds for new language features, famously, Niklaus Wirth would measure language improvements based on how much they would improve the language's compiler.

Think about it this way: a TypeScript compiler takes a bunch of text as input, and produces a bunch of text as output. That's not really special or weird, is it?

(The only hard part is the “bootstrapping problem” which is what happens when you want to write a compiler for language X using language X, but you can’t compile it because you don’t have a compiler yet.)
"tax away most of the excess profits"

How do you define 'excess profits'.

And BTW - yes - I really do believe 'nobody can compete with Microsoft'.

Do you realize how sophisticated those products are?

And for every MS product, there are tons of competitors.

MS doesn't just make a 'widget' - they depend upon the talent (and ability to evolve that), deep value chain integration, R&D - it's a constantly moving team.
Don’t Be a Grammar Vigilante
Top 5 AngularJS Interview Questions
Improbable. Even in a mostly-normal office building, the monthly generator test consisted essentially of "cut the mains power and see that no impact is perceived as UPS, batteries, and autostarted generators bear the load, in their turn for ~2 hrs total."
Are you saying our fiat systems of transfers and settlements use no energy?
I basically only use it for non-scalar variable assignments where the type is obvious, or iterating over collections. I never use it for function return types or parameters; that's just tedious to grok.
I think if you're replacing "Google" with "those Bell Labs guys", you're closer to the truth. A lot of the design decisions are quite familiar if you look at the past work of e.g. Rob Pike.

It's not necessarily all about peak efficiency for specific enterprise applications.
This might sound crazy, i'm already sorry. Though given that the current theory seems to be that the fungus controls the ant like an exoskeleton propelling it up a tree without sensory data, maybe not so much, but there's something you will inevitably encounter when studying the implications of meditation and the traditions that engaged in it. In that living beings are supposed to have more than "one brain", in the case of a human being along the spinal column, several on the sympathetic nervous system and several on the parasympathetic nervous system.

Headbrain: associates, upper spinal column: movement, coccyx: instinct, solar plexus/heart: emotion, sexual region: drive. Each is supposed to function self-sufficiently, contemplates & reacts to the environment, at a certain velocity. For instance if one accidentally touches a hot-stove, all react without ones explicit decision or will: instinct -> emotion -> movement -> thought. The act they once called "mindfulness" or "self-observation" takes these impulses into account.
"Effective Modern C++" (Scott Meyer) has a chapter on how to tease deduced types out of compilers. You can argue "it's silly that I even have to do that", and yes I'd argue that too, but sometimes you just need auto inside templates. Before I started using it, I thought it'd be a train wreck, but now I quite like it - when used judiciously.

I do find myself writing code with auto, then when I revisit it at some point, replace it with the explicit type for readability. But that's only for a small percentage of the cases where I use auto, so overall it's a net plus.
I do not argue that Kotlin is a nicer and a language with more features that are useful.

What of these would you call "more expressive"? I'd agree with sealed classes, they express a limited set of possible classes. Perhaps tail recursion as I can express problems in way of recursion without stack overflows. I don't think coroutines are more expressive than Futures/get, only a runtime optimization for many concurrent executions.
What would the code look like to use this approach for Redux.

Could Redux boilerplate be reduced?