skysight-inc/HackerNews huggingface dataset:
You can definitely break up a function's contents into logical nested functions... Why are you saying "random points"?

Nested functions can actually allow you to even out your abstraction levels... Just group lower-level operations in more deeply nested functions. It's sort of the functional equivalent of extracting a group of similarly-leveled concepts into a new object in the OO approach.

Not sure if you were talking about C++, where my point probably doesn't apply... (Lack of nested function support, AFAIK)
I'm the 2nd part of this. We're not making any rash decisions and staying is one option.

It's not just brexit: We have an end-to-end encryption product and we're really super unclear on what the new IP bill means. It looks invasive and we're not keen on waiting to find out.
Exactly. Everybody in this industry needs to shift their mindset. You are not a loyal little employee cherished by your boss, you are a contractor with one customer, period. You do not owe anything to anybody, you are free to go with what is best for you as an individual and a professional.
What ever he's trying to do will be terrific!
The New 'Must Haves' for Mobile Apps to Succeed Today
I'm really sorry to say that but I will be able to answer your question a little bit later after discussing it with the real techies. But I'll answer your question, probably tomorrow!
version 8467
They barely were to begin with, and they are highly unlikely to continue in the current atmosphere.
It goes further. Folks who care strongly about the interpretability factor generally only care because it gives them authority and political control -- they definitely don't actually believe it's a superior, nor even cost-effective, way of obtaining prediction accuracy.

Robin Hanson summarized this well in his article "Who about forecast accuracy?" [0]. Here's a nice quote:

> The benefits of creating and monitoring forecast accuracy might be lower than we expect if the function and role of forecasting is less important than we think, relative to the many functions and roles served by our pundits, academics, and managers.

> Consider first the many possible functions and roles of media pundits. Media consumers can be educated and entertained by clever, witty, but accessible commentary, and can coordinate to signal that they are smart and well-read by quoting and discussing the words of the same few focal pundits. Also, impressive pundits with prestigious credentials and clear “philosophical” positions can let readers and viewers gain by affiliation with such impressiveness, credentials, and positions. Being easier to understand and classify helps “hedgehogs” to serve many of these functions.

> Second, consider the many functions and roles of academics. Academics are primarily selected and rewarded for their impressive mastery and application of difficult academic tools and methods. Students, patrons, and media contacts can gain by affiliation with credentialed academic impressiveness. In forecasts, academic are rewarded much more for showing mastery of impressive tools than for accuracy.

> Finally, consider next the many functions and roles of managers, both public and private. By being personally impressive, and by being identified with attractive philosophical positions, leaders can inspire people to work for and affiliate with their organizations. Such support can be threatened by clear tracking of leader forecasts, if that questions leader impressiveness.

FWIW, having worked for a while in quant finance, I can testify that this precisely nails it. Even when it would be cheap, easy, obviously worthwhile, and likely impactful, projects to switch from politically-controlled, simplistic regressions couched in the buzzwords of academic finance and instead embrace principled statistical computing, proper model fitting hygiene, machine learning, etc., such improvements will never be considered. There's too much political gatekeeper rent-seeking at the higher levels of the management who oversee the investment process. Sure, they'll claim plausible deniability by saying something is "a black box" or making a fallacious comparison with an algorithmic trading firm that lost money, but the real reason is to protect their fiefdom, over which they are the lord and master because of their credentialed authority in some "interpretable" buzzword.

[0] < http://www.cato-unbound.org/2011/07/13/robin-hanson/who-care... >
Thank you very much! Hope you'll find it useful when we release it!
My Response to “Better lithium ion batteries, how do they work? Magnets”
The coup was a last chance effort. Now Turkey has become a totalitarian dictatorship, there is no doubt about that. To be more precise, it already lost its status as democracy years ago when Erdogan had hundreds of prosecutors and policemen fired who dared to investigate corruption within his family.

But with the latest purges you've got to wonder where they want to get the replacements from. Any sane person will probably try to leave the country rather than being clubbed to death by AKP fans.

Moral of the story: NEVER trust or vote for a party that has the word "justice" in its name.
It's hard to imagine a description of Kissinger that is more unfounded and, sorry to say, more ill-informed than this one.
To you as well: I'm really sorry to say that but I will be able to answer your question a little bit later after discussing it with the real techies (our engineering team). But I'll answer your question, probably tomorrow!
Show HN: Interactively compare sizes of planets and moons in our solar system
Absolutely. From the comfort of the States, I am glad that the coup did not succeed, but only because Turkey falling into chaos would be beyond terrible. That said, the recent fallout has all the markings of opportunism and expansion of power.
> you don't need this 4 days vacation in a mansion in spain for 1200eu+ if you are under 30 and don't enjoy financial freedom yet.

Why would anyone do that? It sounds awful.
Power failures of short/intermediate duration aren't necessarily an issue: liquid N2 makes a great thermal reservoir.

In biology there's a fairly good track record of keeping samples cold (granted, mostly at the relatively balmy -80) for many years, generally without mishap.

And anyhow, storage device failure is already considered inevitable, it's mitigated by replication.
> Why was everyone screaming democracy when they never had one in the first place?

Political correctness. Turkey is defacto ruled by a brutal dictatorship now, the failed coup was the last chance of restoring actual democracy in Turkey. The Turkish constitution is actually good and acknowledge the danger of an Islamic theocracy. The role of the Turkish army is/was to prevent it.They failed.
> It's starting to seem like they had these lists made up ahead of time and have been waiting for the right time to start cleansing the ranks.

That much is obvious. Erdogan didn't start laying blame for problems on the "parallel structure" only after the coup attempt, he's been doing it for years. The coup attempt provided the political pretext for stronger action against the group (and, potentially, others that the regime can use the pretext of going after the group to deal with at the same time) than the regime thought it could get away with before.

Governments frequently use crises as pretexts for actions which they wanted to do previously but didn't find political support for, both against specific internal or external targets and in terms of general, non-specifically-targeted policy.
The whole thing seemed fishy that night. I was watching Erdogan's plane circle southwest of Istanbul for an hour or so on FlightRadar24. Then suddenly it lands where just a couple of hours earlier coup-controlled tanks were patrolling the runways. Huh? The "coup" had control of fighter jets that were buzzing Istanbul and Ankara (live on TV), yet they let his plane circle, for all to see, just minutes away?
Amazon Launches AWS India Region: What It Means for Enterprise Cloud Costs
> What is Erdogan trying to do

In his convoluted thinking, he's trying to stop the spread of an anti-establishment political organization that has infiltrated all levels of the Turkish military and civil service.

Or, you know, they're reasonable people who are concerned about the dimming of their country's democracy.
> Instead of moving those technologies into our range, I think could focus on moving our technologies to that range and improving/shrinking containment vessels.

Smartphones with liquid nitrogen cooling? :)
Unit tests do not even prove that unit functions correctly either. Code coverage doesn't necessarily mean anything too.
Even the EU seems to think so: http://www.reuters.com/article/us-turkey-security-eu-hahn-id...
"Archer Blood, the State Department’s consul general in Bengal, sent a cable to Washington on March 27. “Here in Decca we are mute and horrified witnesses to a reign of terror by the Pak[istani] military,” Blood wrote. “Evidence continues to mount that the MLA authorities have list of AWAMI League supporters whom they are systematically eliminating by seeking them out in their homes and shooting them down.

“Among those marked for extinction in addition to the A.L. hierarchy are student leaders and university faculty. …

“Moreover, with the support of the Pak[istani] military, non-Bengali Muslims are systematically attacking poor people’s quarters and murdering Bengalis and Hindus.”

He and 20 diplomats later sent a famous protest telegram in which he called what was occurring “genocide.” Kissinger responded to Blood’s complaints by dismissing him from his post. “The use of power against seeming odds pays off,” Kissinger observed regarding the crackdown.

The death toll is commonly estimated between at 200,000 and 3 million. Kissinger’s tacit support for the massacres in Bangladesh is one of many incidents contributing to his poor record on human rights."

"In July 1971, Kissinger had already secretly flown from Pakistan to Beijing for the first diplomatic meeting between the United States and Communist China. “Yahya hasn’t had such fun since the last Hindu massacre!” Kissinger remarked."

Wow. It's hard to believe that this is the same Kissinger that's still held in high regard today.
This seems to be true for a lot of "new" tech.

I honestly think people should learn to build standard apps the standard way - (SQL) database, application layer, html / view layer -then learn to scale the parts as needed. Its well understood. There are good frameworks and tools available and plenty of historical examples of how to do things.

Everyone seems to want to jump on the shiny new way of doing things as soon as they come out. I often ask peoples reason for choosing their architecture - "thats how we do things these days" or "relational databases don't scale" seem to be the standard answers.
Decomposition into functions and routines can make some sort of conceptual sense. This can be like the "chunking" that advanced chess players do, allowing them to remember entire board positions. Often, programs that are a pleasure to read have a structure which makes internal sense or which can be attached to an outside concept. Doing this optimizes for programmer reading time.
There's a greater than zero chance that EU residents will lose the right to legally reside in the UK.

The new PM has threatened it, and when she was called out her response was "What you want to let criminals stay in the country?!". So yeah…
> Also your friends and family will tear into you, lobsters in a bucket style grabbing one trying to escape, unless you do the selfies at the tourist trap thing. "What you relaxed and had fun instead of stood in line for three hours to take a low quality picture? You totally wasted that once in a lifetime vacation."

What a weird problem to have. Are you sure that's actually a thing that happens? It sounds unlikely.
Malaysian Taxi Drivers Confront Uber Rivals
Also difficult to run a modern society when you purge people capable of critical thought.
Reactions like these makes you wonder if the coup attempt was staged.
One of the major challenges for FSO is that it requires direct line of sight (LoS). One reason that electromagnetic radiation in the RF range is more desirable for communications is because it can be non-Los (think about your cell phone, you do not have to see the tower for it to work, you can be indoors for example).

The second issue is the free space pathloss (see https://en.wikipedia.org/wiki/Free-space_path_loss ) you can see by the formula that the loss goes up exponentially by not only the distance but also the frequency, which is why the wireless carriers are so interested in the 600Mhz spectrum, you need to build fewer towers using 600Mhz than say 3.5Ghz.

The sudden interest in mm-wave (e.g. 28Ghz) for 5G is because the spectrum is much wider, that is the channels can be very wide allowing more data to be encoded, the trade off is that you start losing the NLoS capability, or it becomes much more difficult.

With light, all those problems are orders of magnitude more difficult to overcome. Also, there are regulations around the level of emissions of light for safety reasons, if a laser is turned up too high it can harm a persons eyes if they happen to look at it, so although the spectrum itself is not regulated, the amount of power you can emit is. That makes it very difficult to implement an FSO system that can safely transmit more than one or two kilometers, but if you get fog, rain or snow, that distance quickly becomes 100's of meters at best.

They are correct that the best way to overcome this issue is by developing sensors with much better sensitivity, by making them larger you can theoretically collect more photons, like a telescope. Since it is unlikely you can overcome the safety issue of increasing the transmission power level, it is smart to focus on the receive end and improve the sensitivity. But that does not help the LoS problem.

But a very interesting development nevertheless.
It seems more and more (to me at least) that the coup d'état attempt could have been allowed, if not blatantly organized by the ruling elite of Turkey.

There's actually a great scene in the end of the Anthony Bourdain Parts Unknown Istanbul episode where someone close to the ruling class (a business owner), makes the following comment[1]:

> "Fear works. Fear gets votes."

Beyond that, I can't find a clip, but it was the most real-life foreshadowing I have ever seen in my life.

[1] http://www.eater.com/2015/11/8/9684640/parts-unknown-recap-i...
It's possible the coup was staged as an excuse to purge the opposition and seize more power.

Edit: changed "quite likely" to "possible" to address valid criticism.
I've always wanted to do this! Maybe I'll make the rope memory version.

https://en.wikipedia.org/wiki/Core_rope_memory
It means there is now a known route to reach a certain destination.
Once Upon a Time, the Catholic Church Decided Beavers Were Fish
> The rise in government's share of the economy correlates with the rise in the economic ills.

That's pure BS that's never been supported by any evidence.

Every developed country with strong property rights has seen an increase in quality of life and prosperity as the share of government's spending as % of GDP increased.

You won't see it on recent graphs though. If you want to see evidence that this is true, you have to look as far back as the 19th century.

There is plenty of information to suggest that %30-%40 is the optimal level of government's share in spending and the fact that most of the developed world has converged on those numbers over time should dissuade all but the most delusional libertarians that the notion of "minuscule government" is nothing more than a wet dream.
Their hardware was essentially fixed, well defined, and limited in scope.

They reviewed every single piece of code many, many times.

They were draconian about memory handling, loops, preprocessor directives, and recursion.

All functions had to check all return types from other functions.

No more than one level of pointer dereferencing.

All code bodies had to fit on a piece of paper.

/edit should add, they used their tools thoroughly: compilers were run on max warning levels and absolutely no warnings were accepted, ever. They also used several static analysis tools on the code (under-appreciated these days!).
I wonder if we've over-focused on the inlining vs functions-for-modularity thing here. Fundamentally, the primary objective is to express code in a way that is clear to the reader for maintenance. Secondarily, the code must work with the compiler to achieve the desired level of efficiency in speed or resource usage.

I have come to interpret this as: We are language designers. This isn't about functions. This is about building a language for the business case that is comprised of primitive expressions, means of combination, and means of abstraction. If the language is clear to the reader, expressing the problem well, it should be easier to detect problems or extend the existing language and its uses.

We are language designers already: If you build a traditional class with a bunch of methods, that is a language with how to deal with the concept embodied by the class. It must be held to the same standards of any language, DSL, or API design.

I like to remind people that we don't tend to dig into the code behind printf(); we trust what it does. We have years of experience using that primitive. It's a great example of a function that has been through many revisions due to security issues, untrustworthy in its inception. What is key here is trust that a primitive does as advertised so that one does not have to dig into its source code repeatedly. Nested functions are not an issue in the presence of trust.

My "secondarily" clause has a fatal flaw: Many languages are not suited for building languages while simultaneously not trading off speed and resource usage. The ones with pre-runtime macros/templates assist us developers in the building of expressions beyond the limitations of the base language with minimal fuss.
Show HN: New LeadBoxer website (we'd love feedback)
Microsoft REST API Guidelines
does that captcha works without JavaScript?
I always thought it would be cool to make a necklace or something with ferrite cores after they'd been "written" to, so you could keep a secret message with you (albeit a short one) without suspicion.
He was awarded the Nobel for the failed cease-fire negotiation with Vietnam in 1973, that war dragged on for two more bloody years before USA would admit that it had lost. Meanwhile he was illegally carpet bombing Cambodia, as well as kidnapping and murdering his way through latin america.
The old school of algorithm developers used to introduce hard, explicitly verified preconditions and postconditions. Typically this is done in C and C++ using assertions.

In general, any dependence on external mutable state should be asserted or otherwise verified. Those checks can be disabled for performance later. Meshes very well with actual tests too.
If you don't mind I have a few questions about working in tech in Sweden:

- How easy have you found finding tech jobs in Sweden, do you have any advice for good places to look?
- How does the pay compare to other countries/cities you've worked in?
- Do you speak Swedish at work/is it possible to get by without being fluent in Swedish?
That, most definitely, before. Things very different now.
I would think quantitative finance is the one area where models are checked, because there's real money on the line. If you're a sell side strategist it might not matter, but if your bonus is on the line, you'll keep an open mind.
Bad Investments: 9 Mistakes You Must Avoid
I thought natural radioactive decay was sufficient to mangle DNA.
I don't think they failed as much as they were never meant to succeed. There are just so many places where the military could've outright "taken out" Erdogan but didn't (such as when the "coup" had two jets right next to Erdogan's jet... but didn't shoot then completely backed off)

This was completely set-up to round up popular support / not make it look suspicious when Erdogan did exactly this.
This happened before in Iran's revolution, School Deans, and even Hospital Directors were replaced by pro-revolution islamists regardless of education or qualifications. We might see Turkey transform itself into what Iran became. After this they need a War (a la Iraq-Iran war) to keep people distracted and then the changes will be permanent.
It's the house behind the fence. I guess if the whole point is to blend in with the neighborhood, it did its job.
It wasn't any last chance. It was obviously staged.
"Oddly, this does not end up true for dieting, as I've found out."

I don't think yours is a proper analogy for the parents ...

In your case, the analog to income expansion would be exercise and "banked exercise" in the form of muscle added that has a baseline caloric upkeep just to keep it around.

I have no idea if that analogy works ... it's more complicated than his simple income behaviors ... this is just to say that your analogy is probably not a great one.
My takeaway from reading the fastcompany.com article is that it's not process improvement per se that provides quality software, it's money. NASA has invested a great deal more time, and therefore money, into developing software than a typical commercial software company can afford. We will need quite a lot more programmers necessarily getting paid a lot less if we want commercially viable software production within spitting distance of NASA quality expectations.
How to find freelance work
Do these guys understand that rent-to-own financing is already a thing? The concept got a lot of play when the Great Bubble blew up and left a lot of underwater borrowers in foreclosure. This article doesn't address title issues or other problems with rent-to-own. Or even the vagaries of the housing market. What they're describing is a 20-year mortgage on a schedule that pays down 5 percent of the principle each year, with the title presumably held by the seller throughout. A homeowner's equity is the market value of the house less any debt still owed on the house. Market value is subject to volatility, so assigning equity by schedule makes no sense.
The coup was never real to begin with. There have been so many holes in this narrative that it's like swiss cheese. Why did the military not fire on Erdogan when he was in their sights? Why did Erdogan even risk flying into Istanbul when he knew there would've been a significant chance of being shot down? The answer of course is that he knew there was no risk cause it was a fake coup to begin with.
Obama Plans to Expand Solar for Low-Income Homes to One Gigawatt
Sure it helps, but it's certainly not necessary or even sufficient. The industrial landscape is littered with great products poorly marketed that failed, and poor products greatly marketed that succeeded.
minimal shielding and non-radioactive storage elements suffice.
Very often. Vendors such as NXP/Freescale, TI, Intel (and Chinese manufacturers on top of MIPS) all tend to target Linux-first. For some drivers (e.g. wireless), you sometimes need to work directly with that vendor (Qualcomm/Broadcom/...). In my experience, it is almost the default except in cases where you need 1) Hard real-time, 2) Very low power (most battery applications), 3) Very low cost. Those still go to MCUs where life is more difficult for anything complex (e.g. requiring graphics, a network stack).

For most embedded use cases, Android is still not suitable as you have to jump through many hoops to get sufficient control over exactly how the device operates (you can make it work but the further away your device is from a phone/tablet, the harder it gets).

Source: Worked in embedded design services until recently.