skysight-inc/HackerNews huggingface dataset:
To me it seems really weird to have the function take a nullable string in the first place (and not obvious that null + 1 == 0), so the right solution is probably to deal with the null values at some earlier stage – but in the interest of further bikeshedding of the implementation, a simple if-expression is pretty clean:

fun parseAndInc(number: String?) =
if (number != null) number.toInt() + 1 else 0
Ok I have overstepped a bit (edited the post), but I will stick to the "did not bother" and "no clue". Documentation for Kotlin is really nice and it is there together with amazing Kotlin Koans online. Do you think that author who so eagerly complains about Kotlin was so eagerly learning it?
The usual basics are hard to beat. Error logs to pinpoint the location of a bug. Info logs too to observe data or possibly timing issues with multiple users or things. And of course source control. After you know where in the code the error is you can use the blame or annotate features to observe changes in that area of code. Branch or tag at release points so you can apply fixes to the production version of the code without pollution of in-dev features.
> "To become a better parent, one must become a better person."

Screw that, isn't there a quick fix?

/s
There's https://standard.tv/ founded by Dave Wiskus (Here's the Bad Version), CGP Grey, and Philipp Dettmer (Kurzgesagt). I think they have an office in NYC.
If you are interested, there is an interview with Chinese people in the street about this system [1].

[1] https://www.youtube.com/watch?v=AAIKh7AnTIk
haa stupid me, I misread google's results

ps: branford
I'm pretty sure I've used to read them "A Foo named bob".. But I've been in TypeScript and golang land for a while now. I can kinda make sense of it because as an interface the types are what matter most, and the signature in something like F# simply be the input/return types..
GE also has a massive finance arm.
It's a lot more noticeable in Queens; trains roughly do show up every two minutes.

The major issue is that all the merging and interlining of services introduces many conflict points; most subway systems try to limit the branching of services on any given track pair, and very few have reverse-branching, the combination of branches into trunks in the outer parts of the system (like the E/F, the 2/5, the A/B/C/D, the B/Q, the D/N, etc.)
I can't comment on uuid as I never used that for ids. But, I can tell you that asking for a next ID from a postresql primary key sequence will make sure it is never used again because it is an atomic operation. Once a next value is requested and you keep it, you can be sure it will not be generated again. I've used this for many things.
It is very much a European thing, not as popular in the US due to easier access to cannabis and it was synthetic Cannabis (Spice) that started the whole craze a couple of years ago, followed by "bath salts" which then extended to the whole RC line of drugs.

Tbh the government reactions to this, banning specific substances cannabinoids in particular, have made this situation just that much worse.

This stuff booming like that should have told them the whole story: That there's a very real demand for legalization.
Instead, they continue prohibition practices even further, forcing manufacturers to use other (much more dangerous) substances, a game they've now played so long that by now most of these synthetic Cannabis variants have nothing at all do anymore with the "natural stuff" and instead have become extremely destructive and addictive substances [0]

By insisting on the prohibition stance the regulators literally made "weed" lethal.

[0] http://www.bbc.com/news/uk-england-birmingham-43600584
>Except for the part where a bunch of the definitions are wrong, misleading, or woefully incomplete.

Examples?
But if I want to use the public forum that has been created, I'm forced to agree to those ToS. Imagine for a second if those ToS included something like banning all people from the state of New York or it banned all socialist. The government, by picking a service with a ToS to host a public forum, is there by enforcing the ToS as a requirement to participate in the public forum. So why can the government enforce a ToS that wouldn't be allowed without the 'private company' loophole?

Now, twitter banning someone from all other parts of its service wouldn't be impacted. But banning someone from participating in the public forum should no longer be allowed unless done for a reason that the government would be allowed to use as well.
The Chinese system seems clearly intended to punish, not to get justice for those owed money.

There are very few types of debts a western country will imprison for: Official fines (for a crime that you were proven guilty of) and child support are pretty much the only two in the US.

From the article:
"it is unclear what offenses those targeted in the travel ban have committed."

"Hou Yunchun, is quoted as saying the system needs to be improved so "discredited people become bankrupt."

Trying to compare those two systems is pretty blind. You can argue the US system isn't perfect, but it's hardly the same.
Of course it is. Nearly every physicist knew this was quackery from day one. It should of course be tested properly, but nobody should be surprised.
Great, thank you for the correction. I only knew of what it looked like from an implementation perspective, had no idea things worked differently at runtime.
IMHO we'll be seeing a switch to pseudonymous/anonymous purchase tracking instead of all these 'loyalty cards'; it's a bit more tricky and a bit less useful, but it can be powerful anyway and get most of the analysis results you'd want.
does that person get a ban?

Sure, they could be blocked for that. The case lists seven individual people who were blocked because they "posted tweets
that criticized the President or his policies". It doesn't mean that every individual person the account has blocked was illegal.
Often comments in code are used to generate documentation, so without those comments your function won't be documented.
Re: "I wanted to believe it could be true"

Indeed. Star Trek dreams shatnered, I mean shattered. Sorry, no visiting green Orion space-babes. Live long and cuss.

And, wouldn't somebody typically check electrical interaction with Earth's magnetic field? It's a factor already known about.
Parents are the bones upon which children sharpen their teeth
You mean the previous version that was working fine? Because the current broken one seems to be written in Electron, doesn't it.
> Having the type first allows you to easily mentally parse it as "A Foo named bob".

See for me it's more natural to think of it as Eric is a Person, rather than Person named Eric.
I still bemoan the death of CodeWarrior as a Mac IDE.
In a multi core future only Java (C#) and C (C++) make sense because they share memory between threads. You can learn to dabble in JavaScript for single threaded web gimmicks. C++ only gives you streams, everything beyond that is over engineered.

So I would say: learn C!

All other languages should be avoided. Let the down voting begin.
A variation on Cincinnatus...
Awesome. Now people have hundreds more semi-anonymous tokens to which they can attach their personal information.
The United States has a "broad ban" in place called the Federal Analogue Act -- https://en.wikipedia.org/wiki/Federal_Analogue_Act

The definition is "not 100% exact" in its nature, but dealers have been prosecuted and sent to prison for violating this.

It's also possible to apply broad bans to Markush structures (https://en.wikipedia.org/wiki/Structural_scheduling_of_synth...), which is how I understand some places attempt to regulate synthetic cannabinoids and other broad classes of chemicals.

(Keep in mind these laws do not apply to fentanyl -- in the United States, fentanyl is schedule II and is available as prescription medicine. Illicit fentanyl is more "illegal drug market" than "research chemicals"; cocaine is in the same boat in the US as well, a schedule II drug that's available on the illicit market. The above might apply to any fentanyl analogues though.)
Unsurprising, but still unfortunate.
> your argument also leads to the same conclusion about tigers, bears and other solitary animals in that they need more than a breeding pair to be viable

No. Those species have specialized adaptations that allow them to live in isolation, which humans lack. And it's not just humans. All simians lack these adaptations. Indeed, the vast majority (perhaps all -- I can't think of a single counterexample) of non-carnivore mammals lack them.
Giving access to versioned scientific data
New planes today cost more than new planes used to cost back in the day (accounting for inflation), which creates more demand for older planes.

Cessna 172 cost under $9000 in 1956 when it was introduced, which is about $80K today when accounted for inflation.

Do you know of any similar new aircraft in the same ballpark? Last time I checked, $50K still gets a Cessna 172 built in the 70's. A new Cessna 172 seems to be north of $250K, depending on configuration.

Cirrus SR22 is north of $550K.

Civil aviation has definitely become a richer man's game over the past 5 decades; the question is why this happened.

To be clear: a middle-class enthusiast really can't afford to buy the best-selling plane of the year new today, while that was a realistic option in the 1950's.

1. Do you not think this is bad?

2. What do you think are the causes of that?
Yes. But hardly the traditional drug dealer biz model. They're the original subscription model.

I don't aee how growth by killing your customers is sustainable.
All true. I didn't say it would be easy. And I never suggested one could just pick a stretch of road and put it there — I think you have to have at least a small city.
Yeah, the $40/month offering is supposed to be comparable to a Cable TV bill.

There's also the $12/month YouTube Premium (separate product, and you can subscribe to both at the same time) which combines music and original content.
He had not been elected yet. The moment he did, things changed.
Easy wasn't the right word. Straightforward would have been better. I understand there is a great deal of effort that goes in to it.
Print it out and make a suit from the listing
I once converted a simulation into cython from plain old python.

Because it fit in the CPU cache the speedup was around 10000x on a single machine (numerical simulations, amirite?).

Because it was so much faster all the code required to split it up between a bunch of servers in a map reduce job could be deleted, since it only needed a couple cores on a single machine for a ms or three.

Because it wasn't a map-reduce job, I could take it out of the worker queue and just handle it on the fly during the web request.

Sometimes it's worth it to just step back and experiment a bit.
I'm sure it's a good series but this is off topic for HN. Please don't submit stories like this.

https://news.ycombinator.com/newsguidelines.html
> If GDPR applies to Bitcoin, _who_ would you demand the purge action from?

Any company that operates under jurisdiction of the GDPR and runs blockchain nodes?

If they are unable to comply then they shouldn't run nodes.

I don't see why they should be allowed to circumvent the law because they have "algorithms" or because untraceable parties or parties in other jurisdictions don't have to comply.

Every few months some clever programmer thinks they can loophole the legal system with "algorithms." It doesn't work that way.
It's still pretty much invective (seriously, hateful?) and an invitation to a dumb programming language poop-flinging fest.

As to the author of the thing, they just wrote about not liking Kotlin, you're the one who is taking this as some sort of personal affront. How do you know how long they spent learning it? You don't.
Weird that the internet opinion is that the Japanese release is the harder one because Americans don't have the patience for super hard games. Examples include Final Fantasy (that simplified the item system) or the "Lost Levels" of Super Mario Brothers.
None the less, it's culling the herd. The historic ref was for those who would too quickly dismiss the possibility.
Campaign events are generally not public forums, even if the candidate happens to also be an incumbent public official. For a federal official (and similar laws exist for state government), if the nexus with official government affairs required to make a public forum existed with a campaign event, that’d probably violate the Hatch Act separately from whether any violation of public forum law occurred.
They try to make the cloud relevant for a lot of things that could easily be accomplished locally... Most of the time, they do that just to get your data.
When did this start in Vancouver?

I am actually surprised that something like this happens in Canada, usually seems that news report these sorts of "epidemics" mostly from the US.
Sony: Next PlayStation is at least three years off
Stating lies as fact isn't spreading ideas.
This isn't about ideas, it is about faking facts. You are telling me you don't care if someone created a video of you viciously murdering someone, and then that video was used to convict you?

Sure, ideas can stand on their own, but we have to have facts that we can know so that we can use those facts to judge the ideas. If we can fake images and videos, we can create fake facts, and that is certainly dangerous.
It is just you. Edit: and some hundred others. (using my karma as stats counter)
The phone has a transformational effect on those activities.

By modifying the pursuit of that activity in a number of ways, the activities become more addictive. It is more frictionless to begin them, reward is provided more instantly, and new ways to gamify the activity increase the dopamine response.

To say it is not the phone is true, in the sense that the phone on its own is not terribly addictive solely as a physical object. But the distinction is somewhat pointless when it has a large "addictiveness coefficient" to other activities.
Man i gotta disagree with almost all points in this article.

Name-Shadowing is confusing? Should be common sense to not have multiple variables with the same name in the same scope.

Optionals are ugly in Java-Interop, so we decided to just use Java instead. Great reasoning.
Oh I'm sure that critical periods are legit, and I don't doubt that infants and very young kids are learning at a faster rate than adults.

There's just a lot more to learn during first language acquisition than during second language acquisition. It's possible for a child to learn faster than an adult in general, and for it to still take longer to learn a language to basic proficiency, because there's a lot more to learn the first time.

The article you linked even acknowledges that and confirms my premise from above: "Certainly, older learners of a second language rarely achieve the native-like fluency that younger learners display, despite often progressing faster than children in the initial stages."

The research support on second language acquisition seems rather mixed here to me. There's certainly some evidence that kids eventually learn more, but this article presents some evidence against, and the evidence here on time to proficiency vs amount of effort isn't exactly what I'd call considerable. Most of the discussion is on whether second language learners achieve perfection, not on how long or how much effort it takes to become a basic speaker.

Very little discussion on the learning environment difference between kids and adults. Kids get full immersion and years of constant feedback. Adults usually get a few classes or books, a few hours of practice a week, and are usually speaking bilingual while learning, etc. I'd like to see studies comparing apples to apples.
there are requirements government officials must honor in the Constitution due to their role, a judge can force them to honor it.

a judge doesn't have the capability, however, to force a private entity unrelated to the government to honor those same requirements.

Yes, it does create a situation where the company can impact a person's capability to see the material, but it doesn't run afoul of anything legal. If anything, it gives a reason why public officials should not use in this capacity platforms they don't control.
Hope:

D. Blockchain - I'd say the blockchain is overhyped by the mainstream but severely underappreciated by Silicon Valley types. It works, it's fundamentally novel. Money is a big deal and this changes money as we know it. A huge challenge to governments and legal systems. It has this 90s Internet feel to it.

H. Detox - Having a safe world where you can trust people is a catalyst for all kinds of progress.

J. Dark data - It works and is underutilized.

Hype:

A. AI - It's great just don't see us hitting the Kurzweilian hypergrowth.

C. IOT - Mostly has to do with improving the legacy-world. Boring.

B. Microservices - whatever.
Seems like a good reference manual to use before attending an interview at Google/Amazon/Facebook etc
Correct me if I am wrong here, but if I recall it correctly, Jon Stewart made that name change himself (as your comment and linked source implies), while in Trump's case, it was not done by himself, it was something that his father had done in his life (or maybe even grandfather?).

That is something fundamentally different, but Last Week Tonight is just some comedy show, so one should not expect too much here.
This is the downside of having global economic integration (buy anything from anywhere for the cost of USPS shipping) without political integration. It's the same type of problem as Greek debtors vs. German creditors except in a different context.

Fentanyl analogues are not a problem in China, hence the relative slowness in cracking down on them.

The supplier is in China, but the buyer is the West. Why does moral culpability only fall on one party?
This article is from 2004:
http://tucson.com/news/local/check-cashing-fees-starting-to-...
-- so it's been going on for awhile.

I remember hearing someone sued BoA(?) for "failure to honor the face value of a check" and lost. After that, fee's started spreading. I can't find an online reference to this story.
the word you are looking for is corrupt. In some cases indirectly. So many Canadians have all their savings tided up in their homes, the government cannot risk taking drastic steps that might crash the housing market
Maybe you're burned out. Maybe you're just bored. Maybe it's time to step up to something bigger than what you're doing. You may need to switch jobs for that, but maybe a first step is to go to your boss/manager/supervisor and say that you feel like you could be doing more than you are, and ask if they've got anything harder for you to work on.
Hmm, could we use interactions with the Earth's magnetic field for thrust when in LEO? With the Sun's magnetic field? It would be slow going.
Just because one cannot explain a phenomenon using known physics doesn't mean they should outright dismiss it. A good many discoveries started with, "Hmmm, that's odd...".

And, science mistakes are good lessons, such as "why didn't we think to check that?"
Sleek virtual credit card solution for businesses
I don't see how the focus on "the way that manifested itself" is at all relevant.

My point is: bad parenting is bad parenting. As far as I know, smartphones haven't created bad parenting, or other social ills. They've just made it less legible, because now both the healthy activities and the unhealthy ones just look like "using your phone" to external observers.

If the point is to figure out whether someone is a good parent, measuring "time spent on smartphone" will give completely useless answers, and so judging a parent for spending a lot of time on their smartphone at home is simply wrongheaded. You have to ignore the phone (the medium), and look at what they're actually doing (the activity.)

Fun fact: some parents do much of their communication with their children through their phone. Non-deaf parents of deaf children will often text more than they sign.
So you can emulate map with language features like that. But what about other combinators? filter, flatMap/andThen, etc? Plus of course combinators have the advantage that once you realize that optionals, lists, futures and so on have a common structure, you only need to learn the interface once.
It’s quite extreme but is it so much different from the US’s system of publicly shaming suspects using their mugshots in sensation pieces?
JSON doesn’t support non-String keys, for one thing.
The biggest red flag IMHO with Kotlin is the teams disinterest in supporting the language server protocol. They are taking a very insular approach to the ecosystem just like Microsoft used to with .Net. The world has moved on a bit from that mindset, but they are completely happy with coupling the experience to their companies IDE...
Sentry 9 Launches
you have to be careful, many experimentally verified observations could have been called quackery, too (an electric current has an effect on a magnet only if it's out of the plane of the magnet? QUACKERY!) If you go to biology and biochemistry, there's plenty of things that still have zero (or very tenuous) basis in underlying theory that are observationally verified (lots of sweet-tasting compounds, basically all anaesthetics, tylenol, e.g.)
> The parent comment was about Twitter banning individuals, not about the ruling:

Right, and it's nonsensical to apply the first amendment to Twitter, because, broadly speaking, users don't have standing to make First Amendment claims against a private entity like Twitter.

If Twitter is banning people in a problematic way, or in problematic numbers, then there might be an argument that the government can't use Twitter to publish breaking news or announce policy changes. There are, in fact, separate lawsuits around this. But still, that's a far cry from saying "Twitter banning people is a violation of the First Amendment".
@PurbleBoxDragon - that seems more of a case that the government is leveraging a platform for purposes they should not. That isn't Twitter's fault.
Nothing sinister about a biz model that kills its customers? This is hardly the (illegal) drug industry's traditional approach. The deviation begs to ask: What's the point then?

Some will not aak. I believe it's a legit query.
You're not in any danger of finishing Final Fantasy in a few hours. The Lost Levels is not really a very good game.
I concur. I subscribe. I think these writers must be young and wanted to accentuate the concealment of gov't deals. I would say this article could have used a few more revisions.
The channel selection is comparable to current cable. I would consider if when it's available in my area: https://tv.youtube.com/welcome/
We still can't bridge classical mechanics and quantum mechanics so obviously we are missing at least one huge piece of the puzzle.
On the other hand, there's not much of anything in the "article" that warrants much of anything different IMO. It's just not serious.
Evidence that designers of Kotlin have no taste
This website seems to go out of its way to have an unfriendly design. The sharp yellows, the highlighting of singular characters in words in a different color.

Snap Design makes simple things complex.
JS does
"You can have a second computer once you've demonstrated you know how to use one".
> It's the new Soviet internal passport system.

China already has that, the Hukou, and has for some time.

https://en.wikipedia.org/wiki/Hukou_system
Most of the shocking, status-quo challenging videos these days are cell-phone videos taken by bystanders. Those videos are how we find out about police brutality and other abuses by authorities.

I don't see how this video signing system will help verify a cell phone video taken by a random bystander.