skysight-inc/HackerNews huggingface dataset:
Exactly, you are paying already for the data plan, but because this is getting them less revenue compared to what they'd get if you didn't have a data plan, they want to balance out by charging for the use of messaging apps. Crazy BS!
AI Downs Experienced Fighter Pilot Repeatedly in Simulator
The "feel" of London sounds so vague. What do you mean by it?
There's a helper page for this: https://starters.servo.org/
Heads up for anyone on limited bandwidth: The page loads over 25Mb of javascript in order to display anything.
This isn't even factoring in the potential weight/cost savings and g-force advantages of a computer vs a human being.
This article is a good start, but I found it much too light on detail. Each section ended just when I was ready for it to dive into details! For example, in the final section "Make it easy to digest":

> Using prefixes in names is a great way to add meaning to them. It’s a practice that used to be popular, and I think misuse is the reason it hasn’t kept up. Prefix systems like hungarian notation were initially meant to add meaning, but with time they ended up being used in less contextual ways, such as just to add type information.

OK, great, I agree -- but what are some suggestions/examples of good prefixes? What are some examples of bad prefixes that we should avoid?

To illustrate the sort of detail I'd like to read, here is an example of my own of good/bad method names that would be greatly improved by judicious use of prefixes.

My standard go-to example for ambiguous naming is the std::vector in the C++ STL. There is a member function `vec.empty()`: Does this function empty the vector [Y/N]? Answer: No, it doesn't. To do that, you instead use the member function `vec.clear()`. There is no logic a priori to know the difference between `empty` & `clear`, nor what operation either performs if you see it in isolation. You must simply memorize the meanings, or consult the docs every time.

In the C++ style guides I've written, I've always encouraged the prefixing of member function names with a verb. Boolean accessors should be prefixed with `is-`. The only exception should be non-boolean accessors such as `size` (which has its own problems as a name). Forcing non-boolean accessors to be preceded by a verb invariably results in names like `getSize()`, where `get-` adds no useful information, clashes with the standard C++ naming style for accessors, and really just clutters the code with visual noise.

Using these prefixes: (depending upon your project's preference for underscores or CamelCase)

.empty -> .isEmpty() or .is_empty()
.clear -> .makeEmpty() or .make_empty()

As an additional benefit, the use of disambiguating prefixes also enables the interface designer to standardize upon a single term "empty" to describe the state of containing no elements in the vector, rather than playing the synonym game ("empty", "clear", etc.). The programmer should not need to wonder whether "clear" empties a vector in a different way.
Show HN: Must-read for Slack: Build controllable must-read lists for your team
ExploitDB collection download link
The article seems to be mostly just comments from shovel salesmen.
You gotta love how incredibly anti-Brexit the media are. They have to construct all kinds of imaginary scenarios (that haven't happened and probably will never happen) to bash the democratic decision of the British people.
>GP was on HN long before you were

So what? That doesn't make his comments about "lining executives up against the wall", below, any less ridiculous.
Just yesterday somebody warned that Facebook does location-based friends suggestion (was suggested to friend a taxi driver) and promptly accused to be tin foil hatter.

That's just how it goes every time.
Straw man city on hn
Same, it took me just a few minutes. The human writers all have a point, whereas the machine writers (although they sometimes do have some beautiful imagery) obviously lack a plot or overall structure. It's just words without purpose.
> We are talking about the value of different kinds of type systems and using them.

Exactly. And you're apparently suggesting that there may not be a single case where you may want static constraints. Kinda very strong position, needs very strong proofs indeed.

> gradual typing

Gradual typing IS a static typing, period.

> you cannot take a language that is not statically typed and add a type system seems misguided.

What?!?

You cannot build a gradual typing system on top of a dynamic one.

> this is not at all what reality looks like.

I can only conclude that you do not know much about the reality if you think so.
Cached version: http://webcache.googleusercontent.com/search?q=cache:XDtepkB...
As the other guy said i wouldnt trust Windows that it does what i ask it to when i edit the hostfile. Next to that microsoft has probably a unlimited amount of burner domains.

Honestly if that bothers you, just don't use Windows.
Not really. I think a key distinction is summed up in this quote:

"Angular 2 continues to put “JS” into HTML. React puts “HTML” into JS."

See: https://medium.freecodecamp.com/angular-2-versus-react-there...

This influences to some extent what you can do with the frameworks and how your code is organized. I like the fact that since my rendering is essentially JS in React, then I can structure my code better with OO to solve problems (inheritance where appropriate, helper classes, patterns etc). In Angular, its just a awful mess of ng-* statements for flow of control. All you can really do to tame it is to use composition or to mix-in behavior via directives.
I'm starting to think that the book Manufacturing Consent should be part of our school curriculum. I'd suggest seeing through media spin is a very useful life skill.

https://en.m.wikipedia.org/wiki/Manufacturing_Consent
How awkward would it be when the FBI agents parked in the van outside your house keep popping up on your suggested friends list?
Education?
That's kind of like Godwin's law. It's worth comparing things to the Nazis to reveal how little we despise other bad actions. But we have unreasonably strong negative feelings about both Nazis and terrorism, so it's not really helpful.
OP is talking about that sinking feeling one feels when over half your paycheque is spent on rent.
This is a nice post on the subject of readability, though I mostly like that the title does not use the often misused word "readability" at all. I now prefer to talk about understandability instead, which usually boils down to cognitive load.

This is one of the things that Go has got very right in its design, though it is often badly misunderstood. Advocates of languages like Ruby often refer to the "beauty" of the code while ignoring the fact that many of the techniques employed to achieve that obscure the meaning of the code.

The main problem I have with the term "readability" is that it encourages writing of code that reads like English, even if it obscures the details of what the code does. In the worst cases, the same set of statements can do different things in different contexts but that context may not be at all obvious to the reader.

One of the first books I read when I was learning C years ago talked about avoiding "cutesy code". That was particularly in reference to macro abuse, but it's always stuck with me as a good general principle. It applies equally to excessive overloading via inheritance and many other things that make it hard to tell what a given statement actually does, without digging around in sources outside of the fragment of code you are reading.

In many ways the art of good programming is, aside from choosing good names for things, maintaining the proper balance between KISS and DRY.
Strong property rights that can be counted on to be respected over long timescales, and an efficient futures market. But step number one is accepting that for sufficient interest rates and sufficiently long times, the efficient outcome is not necessarily conservation.
No, you're spot on. I picked up running a few years ago, although i've slipped back to not doing it as much (really, I need to take time to go get some new shoes!) But I aim for at least a 5k per week, more if possible. While that'a a pretty low bar compared to a lot of runners, it's far more than I did years ago (nothing), and is something. I have to keep reminding myself that yes, 'something' is better than nothing.

I hadn't seen Orman recommend the 8 months, but it's definitely understandable. Whenever that runway goes down for any reason, I get a bit nervous. Thinking this way has pushed me to reduce the monthly outgoings where possible; reduce cell phone plan, cut satellite at home, etc. None of these are necessarily life altering, but saving say, $200/month means that an extra few $k savings adds more months to the runway.
In the United States, we've had the National Helium Reserve since the 1960's. Unfortunately, the decision was made in 1996 to privatize the reserves, starting in the mid-2000's. That's much of the reason for the scarcity we face now.
> Boris Johnson said that British people would continue to be able to live, work and study in the EU, while at the same time the UK would be able to introduce a points-based system to control migration.

I can hardly understand how can so many people believe such an obvious liar.
WordPress Plugin Directory Redesign Vorschau
Frankfurt and Berlin feel like Germany and Barcelona feels like Spain. London feels more like an international melding pot detached from any one nation in the world.
I dont think selling is their priority Nr.1. (While it is a reasonable thought tho, and most likely also does happen to some degree). But it seems most data they collect can be used to understand their customers better, which would theoretically lead to a better system.

That said that means that there is some most likely american server containing more of your private data than you could ever think of, openly accessible for any goverment that asks nice.
Why doesn't the entropy portion of thermodynamics have anything to say about time reversal symmetry? Or does it say that but we're not smart enough to see it yet?
>I'm gonna assume the downvoting is because

You're getting down-voted because you're asking for company executives, who are human beings, to be killed for something that hasn't quite proven out to be a "crime" yet.

Most reasonable people find that repulsive.

While we're at it, why don't we kill everyone who every bought a VW? Surely they are partly culpable.
> React has been around for a while, but it is still only a library.

You probably knew this already, but worth to point out that React never intended to be a framework.

This is a really interesting talk: http://2014.jsconf.eu/speakers/sebastian-markbage-minimal-ap...
Any tutorial on how to build a .Net core web application specifically on Linux. There seems to be a lot to wade through docs wise with a lot of it still talking Windows.
Stupidity is supposedly infinite, because intelligence is a very small needle in the search space of good decision making and understanding, the rest of that space is made of stupidity.
How to Sell Online on Top Marketplace
they are tracking our every single movement, and aspire to track our every single thought

we have a duty to resist this totalitarianism by any means possible or necessary; fascism is here, and free men can't delude themselves with hoping for gradual change to the contrary any further.
OK, interesting point of view.

Can you justify it with examples?
The Westside Story
I've found the Rust IRC channel to be awesome too!
Listen to Elon.
> Exactly. And you're apparently suggesting that there may not be a single case where you may want static constraints.

No, I have consistently asked for objective proof that static typing is a net win over dynamic typing, something you have yet to even address. I don't know if you're intentionally misrepresenting my argument or if you're simply misunderstanding it, but I think you should re-read this whole thread.

As I've said previously, I prefer static strong typing, but I'm also in touch with reality and to present my opinion and speculation as some kind of fact isn't something I'm interested in.

> I can only conclude that you do not know much about the reality if you think so.

If we're jumping to conclusions I'd like to conclude that you think all PL theory is type theory and that you're ignorant of every other bit of it (and also that you're the type of person to think your every opinion is fact. I think both of these have been on display in this thread, so I actually think that's a stronger conclusion than the one you've drawn).
I don't think Swiss people are inherently more responsible or morally on a higher level than other Europeans. How could they be? Switzerland is in the middle of Europe and through the ages many waves of immigration have occurred from all the neighboring countries. Even today almost 25% of Swiss people are immigrants!

Why people in Switzerland seem to vote more responsibly than in other countries is exactly because they are getting more chances to vote. Give a person responsibility, and he will tend to act responsible. Treat a person like a child, and he will start to behave like one. This is IMO what is happening in the UK and in other countries. Many people voted against the 'sensible choice', against the intellectual elite as a protest, because they wanted to be heard.
The answer is not to take away voting opportunities from people, but to give them more.
I happen to find the principle of single level of abstraction does more to reduce cognitive load than all these tips put together.
Think on another level of abstraction. Mere humans are already perfectly capable of operating more than one remotely-controlled drone at a time.
I started off with an Access database. Then we split the JET DB backend out from the front end and put that on a shared drive. Then we replaced the backend with SQL Server (without changing the front end.) Then eventually it all got migrated to an ASP.Net backend + single page application. It's still running 8 years later. Access is an incredibly flexible tool.
I suppose it all depends on perspective. I just don't think the ever closer EU integration is driven by pragmatism. I think it is driven by grand visions for a superstate because they have this rosy idea of how nice it would be for all Europeans to share one country holding hands and singing happy songs.

They don't seem to take any practical considerations to things like there are countries like Greece which simply hasn't solved the problem of collecting taxes and spending within means. 100 German economist signed a petition against Greece joining the Euro, because they said exactly what happened would happen. Instead the pragmatists were overruled by the dreamers.

The ones who have suffered the most due to these dreamers are the Greeks themselves. Real love is setting proper boundaries and not just give into anybody's indulgences.
I find the binary-tree benchmark specially disturbing, it looks like the .NET Core GC/escape-analysis has some catching up to do.
I actually used that version in my recent book. You can see it in this section [0] of the first chapter (which is free to read, with no sign-up) that tries to explain the confusing naming.

[0] https://www.packtpub.com/packtlib/book/Application%20Develop...
Doctors issue warning about effects of LED streetlights on health
I really like Berlin's laid back, alternative attitude where it's not all about the money. I can't imaging you have that in an expensive city like London, but I'm afraid how long it might last in Berlin too.
The USG would call it terrorism.
The year is 2800; An alien spacecraft lands to survey the blasted and ashen ruin that was once home to over 7 billion sentient beings. The mission commander, with infinite sadness, reports their findings to his superiors: "They let the market decide".
Worked for me in Scotland, which has a very similar climate.
As a junior dev I can confirm the advice about junior devs is very accurate. An anecdote: I recently started working with a team on their half completed web app. They had so many dependencies, and tools for managing dependencies, it took me far longer than it should have to become productive. It's obviously not my place to question which technologies they use, but it can be frustrating.
This would be the perfect product for a chat bot. Nobody is going to download AND use this app. But some people might would be willing to send a chatbot within their favorite platform a pic.
Here's the thing with ad blockers: I will skip your article.
That's exactly the issue. You are thinking in terms of pi, so it might be hard to see from a different perspective.

It's like using a slightly off abstraction for a concept. At first you have to make a small effort to hold it in your head, then at some point it's committed and you can manipulate the concept directly.
Leave says that the EU in undemocratic. But the EU is a democracy. It is certainly much more democratic than the British first-past-the-post and the house of Lords. Saying that the EU in undemocratic is just a meme.

Then there is the question about the UK contributions. The UK does get its money worth, by the profit made trading in one of the biggest markets in the world (and with the countries that have trade deals with that market). By the investment that flows to UK (the FDI). By being part of continent that is much more prosperous then it would be otherwise.

The UK needs the EU more than the EU needs the UK.

Leave says that the UK has too many migrants, but it has fewer migrants than Ireland, Austria, Norway, Switzerland. Roughly the same number as France and Germany.

The Leave camp doesn't have a plan and is awfully misinformed as to how the world works. It is a populist movement and that is all there is to it.

Though to be fair, I would like to see a bit of compromise from the EU side of table. They are simply too intransigent.

In theory everyone in Spain can move to Malta. Of course this would never happen in practice. But if the people in Malta are worried. The EU should consider providing them the legal means to deal with that hypothetical scenario. Instead of saying, its free movement, and that's it.
May correlate with cost of living, maybe?
I usually find similar cities and compare them to each other. London is 2-3x better salary wise than Berlin. If you compare other parts of the UK with other parts of Germany, that gap might get smaller but I would argue that in my experience, the gap will most often be around 2x
Mathematically, tau is clearly superior, since it represents a full circle. The question is whether the gain is big enough compared to the trouble of introducing a new constant. It's not like pi is going to disappear any time soon.
They use the 'lighter' value for font weight in the CSS, which is just absurd for body text.
Given a few years, I don't think this will matter. I hope they always are programmed to save the greatest number of lives, and that we figure out how to make roads safe for pedestrians regardless of how the cars are programmed.

But things like overall increased safety, no more drunk driving, being able to live 4-5 hours from work and having your sleep time being your commute time - not to mention communal cars, ordered when you want them, always at the ready - will overcome most of this. It is amazing what we blindly use in the name of convenience and easier lives.
Can anyone recommend ways of finding out about low cost / direct impact things like this? I'd much prefer to fund a specific laptop than throwing money into the void of big charities.
Sounds like it isn't so much scarce as we use so little of it compared to what has been historically available that no one has bothered to seriously spend time exploring for it until now.
That was a reflection on how according to roel_v HN was a place of intelligent discussion when he joined.

The comment below is stupid (hopefully meant in a proverbial way) but since this is in another subthread my comment had no bearing on it.
> Facebook uses location to suggest new friends–which could be a privacy disaster

No, the privacy disaster happened when Facebook was allowed to collect all that data in the first place.
> Now, a research group [...] has developed a brand new exploration approach. The first use of this method has resulted in the discovery of a world-class helium gas field in Tanzania.

Hm... One try, one hit. Maybe it's not that rare after all?
I really appreciate the sentiment here but why not just point him to duolingo English for French speakers? As a foreign language nerd, I feel the whole audio book read along thing is more of an advanced level learning tool, or perhaps something you would do when there are no normal course materials in the target language.
You're phrasing was clear. The person making the analogy was comparing the drivers to the hosts.
We can always find some more near the top of our atmosphere :)
OpenSource, web, two panel file manager with support SSH, FTP, WebDav
Anti-anxiety medication limits empathetic behavior in rats
Often it is. It's a perfectly good answer to, for example, "why do we drive on the side of the road that we do?"
Thinking that such a level of market efficiency is attainable is utopian thinking. There will always be enough short-sighted people to thwart this.

Also, why should we accept that?
I've gone back and forth on this one over the years. My current advice would be that if you can find something that is naturally a sub-function, factor it out as one. Keep it private initially, but do not do this if that private function makes absolutely no sense on its own and your public code isn't calling it from more than one site.

If you factor things out into sub-functions that have no semantic meaning on their own then all you are doing is making the code harder to understand. You're also making it harder to maintain because of all the extra state that will need to be passed around between the sub-functions, which may change later.

For large complex functions that cannot be broken up sensibly, the paragraph splitting method is exactly what I use. Such large functions are a code smell and you should think carefully about whether it really does need to be so large, but there are indeed cases where it is the best option. Nobody should get too attached to dogmatic rules like "no function may exceed 25 lines".

The style that I prefer is slightly different to the GP though. I usually put about a paragraph of comments at the top explaining why the function is so long, giving an overview of the algorithm and other information that is inappropriate for a JavaDoc-style comment (since those are for the function consumer rather than a maintainer). I then give each "paragraph" of code a section heading and sometimes number these (especially if I have written out the algorithm in line-numbered pseudocode in the explanatory comment).
Yea I know that feeling. It is the same feeling I got when I first saw that my tax rate in Berlin was @ 42% and then realized that whatever remains has to go into paying for the rent anyway.
Not long ago you could buy SIM cards from kioskos, corner stores, etc. This is becoming increasingly rare, even in places with otherwise poor infrastructure. The shift was rapid but noticeable.
Ultron just isn't as sophisticated as e.g. Project 2501, is he?
Ugly points in the USA's history: Trail of Tears. Slavery. Battle of Blair Mountain. Japanese Internment. Kent State. Jim Crowe. Abu Gahrib. Guantanamo. Drone Strikes. Global Surveillance.

History is written, there's just more eye-catchy things to get distracted over.

Game of Thrones. Brexit. Reality TV. Concerts. Drugs. Sex. Food. Cars. Video Games.
(ZeroMQ successor) NanoMsg 1.0
Yes, you can develop in rust on Windows. There's even a Visual Studio extension for rust: https://github.com/PistonDevelopers/VisualRust
Yeah, this advice isn't good for my 147-pound, six-feet frame ;)
But because of the helium, they presumably say it in a very high pitched voice.
I am betting on the GBP. The more the media is against it the better it is for my investment portfolio!