skysight-inc/HackerNews huggingface dataset:
The problem with DRY is people will see "Oh, hey, I'm doing the same thing in multiple places. DRY says I should factor that out!" without actually thinking about whether it makes sense for there to be a dependency between those pieces of code. Moving duplicated code into a shared function/method/etc -creates an implicit dependency- between all callers of that function/method/etc. That's exactly what you want in some situations (and is in fact the benefit of DRY, i.e., because when you have to fix that code for one function, you have to fix it for the other(s)), but if you do it blindly you create a dependency between two unrelated bits of code, and that's where complexity comes from, as you start adding conditionals and things to try and make that shared code handle all cases.

I find considering whether the repeated code is innately related, or in the same domain, or not, to be the best metric for determining whether I should refactor it to not repeat. It's adhering to the principle of least astonishment. Sometimes it should all stay separate. Sometimes a few pieces should be refactored to share code, and others left to repeat. Sometimes one set of the repeated code should share a function, and then the other set should share a different function, -even if that different function has the same implementation-, simply because the second set is so unrelated to the first. Sometimes they all should share the same code, because they're all related.

Breaking things into small, reusable pieces helps avoid this because the dependencies you create are on small, easily understood, easily replaced snippets, which tends to have a very clear context/domain. It's easy to prove that the abstracted function is correct, since it's so simple, and it's clear what domain(s) it involves, since again, so simple, and thus the problem with any given bit of functionality is almost assured to be the composition of those functions, i.e., your specific use of it in this one instance. You can still run into issues if you reuse some of those composed functions, however.

In general, the greater the complexity and domain specificity of the code you're trying not to repeat, the greater the danger you're shooting yourself in the foot.

FP is especially beneficial, as such, because the higher order functions that tend to be common are both pretty simple in their function, and pretty universal in their domain.
I agree with you all. All I say is that suggesting delegation in place of inheritance to address contravariance issue seems off the mark.
Do i really _must_ know 1) Big O notation, 2) common algorithms and their time and space complexity, 3) which opcodes exist for a CPU of your choice and 4) a kernels main system calls?

I dont know any of these. I know they exist, i know of the concepts, but no specifics. I would argue that these are good to know, and a must if you are working in a domain where this matters. For design, architecture and implementation in a high level language when the problem do not touch these areas this is not a MUST have.
Ask HN: To Varnish or not to Varnish?
That is the question.
Facebook uses Facebook as a source, which is as reliable as Twitter.
Web-Based Sound Design
ΔΙΑΓΩΝΙΣΜΟΣ FREE FUCK ΣΤΗ ΘΕΣΣΑΛΟΝΙΚΗ 20
I've been playing around with it on[1] and off, mostly on the Raspberry Pi[2]. It's very nice conceptually, almost impossible to use practically except for research purposes.

[1]: http://taoofmac.com/space/blog/2014/05/04/2230
[2]: https://bitbucket.org/infpi/inferno-rpi
I've been an EMT for 15 years, in 3 states. I've reported suspicions, as required. I've also seen CPS take kids. All it takes to get a judge's 'order' is a phone call. cops at least need to present something before getting a warrant.
This is the perfect way to allow viruses to cross species and get to humans.
Salesforce outage root cause analysis
JavaScript Semicolons Are Not Necessary
Congrats, you have dug it down to the core. Google just doesn't need chats that it can't mine for useful data.
Metadata-free chat exists already on the desktop with Ricochet (https://ricochet.im) and it will soon exist on mobile with Briar (https://briarproject.org). Both work through Tor hidden services - Briar also allows to exchange messages over Bluetooth and direct wifi.
3 of the Most Practical and  V-Play Video Tutorials
Voltage drop is one way to look at it, but since efficiency is paramount, it's better to look at losses. Losses in the conductor are I^2 * R, so when there's a current of 3.5A, losses are 6.6W at an input of 3.5*13.4=46.9W. Efficiency is 88% which is very bad. An average inverter that converts the low DC voltage to AC is much more efficient and even with taking into account the wiring loss, there is a net gain. Generally, using a low voltage DC grid isn't a good idea.
It's a good point, and I don't really see an issue.

After all, to this day gaming is distributed already between console/desktop/mobile, with each audience being large enough to ensure good profitability in every environment.
Why does all of that activity have to happen "away from prying eyes"?
I also thought that you were being serious. There is a good reason people use explicit markers for sarcasm like: <sarcasm> </sarcasm>

I encourage you to look up Poe's law
This analysis says that it's impossible:

https://np.reddit.com/r/shittykickstarters/comments/4av9xw/t...

It's been submitted many, many times:

https://hn.algolia.com/?query=breathe%20underwater%20cry&sor...
Henry Rollins: Iron and the Soul
The 'Ubuntu' environment has been around on Windows Insider Preview builds for a while now ;)
"animal"

I'm serious.
You are indeed missing something important. We can choose not to use a particular product. But we cannot choose not to use all the products everyone else is using, because that would make us lonely, antisocial hermits without the slightest chance of ever finding work, friends or lovers.

So even if Googlers may find it "amazing" that privacy advocates don't just shut up and go live behind a rock, that's what you're going to have to live with in a free society.
SaaS Support Best Practices: How to Achieve a Perfect Framework?
Cool idea, but I doubt it will work. To end loneliness and build friendships, why not start with activities?

Organize locals, but for low paid(/volunteer) help with cleaning/cooking/gardening/computer support/driving lessons/etc. For busy/ill/lazy people?

Then, people can be introduced to each others.

If they have some activity/interest to talk about, it is easier to socialize with different types of people. I sincerely believe that every adult person on the planet knows about things I would love to hear about. Be it fishing, farming, literature or house maintenance.

(No, I'm not just trying to find good cleaning help. :-) )
Using a different email address per Git repository
Milestone in solar cell efficiency by UNSW engineers
The Motorola X Style/Pure does this.
> The term "ad hominem" is typically used to describe the fallacy of attacking the person making an argument,

This is a discussion on a book on the C programming language written by someone, and here you are going full throttle on your personal vendetta against the author while saying absolutely nothing regarding the book or the programming language.

> Sure, I'm discussing his character

Precisely.

Go vent your frustrations somewhere else.
It depends on the tts plugin you use.
We have build and tested several tts plugins.
I can recommend Microsoft Bing Voice and the new Google Speech API. Both are very rarely wrong.
1) and 2) are a MUST across the stack I believe. A lot of those crazy snippets from thedailywtf etc. come from the lack of this knowledge and suddenly performace suffers a lot when someone tries some O(n!) for simple stuff. Also, not to put anyone down but... it is kinda embarassing imho to not know how fast can you sort.
Indian ECommerce Industry to Grow $300B by 2030
No it was Dr. Frank E. Stein.
Ask HN: Google IO 2016 – Question on Allo and Duo
Questions:

1. Why two (three?) new Social apps on top of Hangouts and Google+?

2. Why no mention of Google+ and Hangouts in the Keynote?

3. Why not unify Duo and Allo, instead of separate apps?

4. Why not end to end encryption for Allo for all chats and not just private chats?

5. What happens to Hangouts and Google +?

Would love to start a discussion here.
Google patent sticks pedestrians to the car bonnet
That would be awful in many situations, though
Storage Made Easy Presentation at OpenStack Summit in Austin
Not the metal i expected \m/ (>.<) \m/
you could still do it on android. You can't buy an iPhone and then complain that you can't do anything on it.
From Google, authors of V8 and Chrome, if their opinion means anything to you:
https://google.github.io/styleguide/javascriptguide.xml?show...
The data seems to back it up pretty clearly. There is other data out there on overwhelmingly Democrat political donations.

https://www.washingtonpost.com/news/the-fix/wp/2014/05/06/ju...
Doesn't bother me in the slightest - thanks!
My reading of that sentence gives the opposite meaning to your interpretation!

But, it's badly written and perhaps the author meant is different to how it reads.
Local community is a culture that you develop for centuries. If you don't know the Joe from two houses away, you don't know the Joe from two houses away, period.

I lived the last moments of the 'mahalle' culture in Istanbul, Turkey, held its hand while its cerebral activites stopped. Until a couple decades ago streets were full of kids and we didn't have any problem with it. Now we hardly let them out, we fear that they'll be kidnapped, fruited, etc., sometimes also realistically. How we came to this point?

The 'mahalle', that is the neighbourhood, is a culture developed over time and is based on the trust you derive from generations of sharing the same cultural and social sphere. This was disrupted three times in the last century, first by hostility towards the non-Turkish induced by nationalism, and its results, second, by mass migration towards the City caused by industrialisation, and lastly and currently with the 'walled communities' (1) and occidentialisation of work life, i.e. rapidly changing occupations and moving houses often. I guess the case for most of the US is similar (i.e. people don't get to share the same neighbourhood for that long), and under these circumstances a healthy local community is impossible to form, even if all the start-up eyes were turned on the problem, because it has a hard dependency on multigenerational relationships, and time spent together.

(1) a very interesting documentary by AlJazeera Turkey on this phenomenon exists.
What do you mean with "VPNs opnened"?

The article is wrong about Tor being an alternative option to a VPN. If anonymity is your concern, you should use TOR to connect to a VPN (paid with Bitcoins).
They cannot do it. Prior art exists, see "Naked gun 33 1/3".
Yes, my fellow Indians and I are adopting online shopping quite rapidly. My only concern is Amazon taking over the shopping landscape in India. We need stronger competition.
Show HN: BBC Recipe search engine. Open source, super fast
Testing in Kotlin with 51zero
I think google+ will become like reddit for instructables.com essentially the content creators will create a paradigm shift for google+

these content creators will be the early adopters of the new google+ and will have different niches like subreddit

there is no way google will ever back off from social media. they want to acquire some piece of the pie in that market space
That depends on who you ask. I've met people that hold firmly to the belief that humans are not animals. Explanation? God created Adam in his own image, so humans are somehow special and better than animals.

We need to prevent these people from making decisions for society.
Android Instant Apps
Google Instant Apps – run native apps without installing
I recently built a flat roof 35m2 home office/gym at the back of my garden. I'm currently using an electrical convection heater and a 9kw instant water heater for shower/basin.

What would be the most cost effective way to use solar instead for heating/shower? I was thinking about putting a 100-200 litre insulated tank either inside or outside, and heat that with solar to about 70c, to use for both heating in the winter, and showers. I don't need cooling in the summer.

Has anyone done this?
Not to be blindingly trustworthy or anything, but I'm pretty sure none of these devices currently state that they send everything you say 24/7 (or more specifically, the Echo). That would, again, only be if it had been tampered with.
Saving time and hand movement typing "LOL=)" could be quite an appeal, depending on how many times a day you're doing it.
Semicolon presence or absence is usually the least annoying factor to me in how other people write their JavaScript code.
It's sad because it seems to treat the entire future as a kind of lost cause, which to me is primally saddening, like nihilism or solipsism.
Google Allo
The promo video wasn't true real time either though. They just has the translate services running after each speech had concluded. So I think by "real time" they just mean "automatically".
"Everything in the mind is biologically mediated"

Proof of that?
So rich people can still spend huge amounts, while low-income people have even more problems? We are not talking about luxury items or services here, water is a basic need for everyone.
The Man Who Blamed Aging on His Intestines
3 and 4 are only needed in specific domains.

1 and 2 you won't need every day. You can probably even make a career out of software not knowing them. But every software related domain will have times where knowing them will help you, and where not knowing them risks an inefficient and slow implementation and no way for you, individually, to fix it in any sort of reasonable time; you'll either have to learn it then, or you'll be reliant on someone who does know it fixing it for you.

I've had to address performance issues where knowledge of common data structures and algorithms' time and space complexity (and/or being able to look at an algorithm and realize "...this is O(n^2). It only needs to be O(n). WTF", and fixing it) was the key in Javascript, Erlang, Python, and Java. Exactly what 'high level language' do you feel you won't eventually need this stuff in?
This is more or less what I actually mean:

We have a long way to go with all of the above points before we need megaclouds with asic and huge data *to move the state of art forward.

All of the above be solved without creating a new unicorn startup.
Zerohedge: Why I'm Voting to Leave the European Union
On Tuesday the Guardian reported that the BBC (fondly aka Auntie) would be archiving their recipes, so I quickly scraped the site and wrote a search engine for it.

Not sure how the site will evolve, if at all, but it was a fun side project!

Code is here if you want to play: https://github.com/user24/auntiesrecipes
Agreed the USA having 52 separate sets of employment laws does not make sense - really employment law should be done at federal level - think of the saving in reduction in red tape.

Though I suspect HR and Lawyers might lobby against that as a job protection scheme.
> however I do see that this tool is essential to modern software development

If we are talking about the later stages of the life of a software project then I completely agree with you.

But if you just started a new project and you are still in a constant state of change then a large test suite will slow you down because you have to adapt all your tests all the time. In the worst case you might even stop to improve your software just because updating your tests is too much work.
Spire – resilience and chronic disease wearables – is hiring iOS/Android engineers
-D flag in OpenSSH.
I think it could if the AI was done locally, but don't expect Google to do that anytime soon, even if it becomes technically feasible and cheap to do. Didn't Apple already employ some client-side AI for photos and gave the reason that this is for privacy? I don't recall what the feature was exactly though.

As a sign of good faith, Google could also stop data-mining Hangouts now, since they have Allo for that, and make Hangouts end-to-end encrypted by default.
TDD is a kind of semi-formal specific process with a whole legacy of consultant workshops and all of that stuff.

So I think it's great to mostly ignore that, since it's contentious, and focus on that core question: how do I know that the system works correctly?

This also makes it obvious why type systems are a glorious ally, in addition to test suites and proofs.

And it's a core question because if I don't have grounded confidence in the system's correctness, then that's likely to be anxiety-inducing, irresponsible, and sometimes dangerous.
Combined with full disk encryption it ensures nobody can get it.

Or maybe you want to use an open WiFi hotspot without letting anyone get your data. (Https solves this, though.)

Or maybe you don't want Google to have your messages for targeting purposes.
>Why is it a good idea to get off the grid?

It's not necessarily. If you use solar cells in your home, CO2 emission is something like 180g per kWh. In that case you'd be better of getting you power from the grid, if you can buy power from wind farms or nuclear power plant. It's better than coal, but only marginally better than natural gas.

If you happen to live in a country where you'll need heating for large parts of the year, it also pretty hard to beat the efficiency of a large district heating plant.
I haven't poured over the code, but reddit is most definitely more than one server so there's gotta be a sync protocol in there somewhere. So, technically speaking, no restrictions there.

Practically speaking, on the other hand, reddit likely never took user content licensing into account to begin with - they never knew they'd get all of digg a couple years in, and 2006 was a different time besides.

The only way reddit would be able to release the data now would either be a specific clause (added from the start) allowing such in the TOS, or a general-purpose "we can do w/e we want with your data"; nobody thought to add the former (as noted), and of course the latter would have been roasted alive the moment it was noticed.

So, me thinks licensing issues.

Modmailing /r/reddit.com is the canonical way to reach the admins (for any reason), if you'd like more info.
Cool - you might want to look at using levenshtein distance algo to improve the search.
Then why build E2E at all?
>If he'd said that on HN he'd have been (I assume) banned

No he wouldn't.

https://news.ycombinator.com/item?id=5883501

https://news.ycombinator.com/item?id=6098474
UK Ph.Ds are often a joke. Serve the time and irrespective of the results they give you a degree. I feel really sorry for anyone who has a UK degree and who has done the work as your degree has been degraded by all the other time servers.
I don't mind the two being used together. I've been using OTR in Gtalk/Hangouts for a long time, too (yes, I know Google actually keeps those messages anyway).

However, I would like an option to make the Incognito mode the default (always-on), just like Firefox can make Private Mode the default.

If Google wants people to believe it cares about their privacy (which is probably the reason they're even doing this in the first place), then it should not just offer the feature to them in an obscure way, but it should make it easy for them to use it if that's what they want.
Why? Because they work.
Can Android Pay Transform the Coffee Shop Market
> effectively error-free - probably as good as the Linux kernel

I encounter major glaring issues as well as continual regressions in the linux kernel on weekly basis. I don't even know what you mean by as correct as the linux kernel
I went to school and got a new number because a lot of my friends didn't have free province-wide calling and I'm about to move from Canada to Europe. So for me this is a particular concern at the moment.
Class InternalFrameInternalFrameTitlePaneInternal
Unfortunately, it's difficult to pinpoint the time to abandon that initial flexibility and create a test suite.

Moreover, creating that test suite after the project has grown is likely to be tedious, too... and often requiring serious refactoring to accommodate testing practices.

The XP folks were always all about changing requirements and flexible code, and unless they're all deluded, it's not true that testing necessarily hampers a new project.
8 Overrated Productivity Systems to Nix This Year
that's the kind of thinking that is the reason we have such bad medicine.

medicine and all its research needs to be open, people have no privacy anywhere else, and to keep insisting on it for medical data is only allowing governments and huge corporations to take advantage of our lack of knowledge about drug affects etc..

the major reason there is even a debate about vaccines is because of this weird belief that we need to keep medical records siloed from researchers and the public when this information is probably of the highest value to us as a society.

but instead we just post everything else about ourselves on the Internet and those things can actually be used to hurt or segregate us from knowledge that will help us overall.

one of those weird things I've never understood about society's ability to be completely distracted from its own self interest.
To put things in context, they are flying me from Asia to Europe for second interview (in person on university campus) . So i assume they are pretty serious and would be open to salary negotiation.
Learning 3 Lessons from Jason Fried's ReWork (Basecamp)
Automated tests are very important but source control is an order of magnitude more important IMHO.

I hope its omission is because OP thinks it goes without saying. It doesn't though, just the other day I read on HN that people have colleagues who don't use any source control.
>"A former contractor says that while the social media company did not impose political bias upon news ‘curators’, she and other employees were subject to poor management, intimidation and sexism that left them feeling voiceless"

That's quite disturbing
nice idea. Eventually, if I add more recipes, I'll need to move the search serverside too.
Code written by people who don't know 1 and 2 tends to make the mistakes that you learn to avoid by learning 1 and 2. And these are mistakes that you can make anywhere in your code and that can be very costly in performance and correctness.
For an introvert, aloneness does not necessarily imply loneliness. Introverts can be lonely too - but we often need to be alone. Knowing there are specific people out there who will want to spend time with you again when you're ready to engage can be enough to stave off loneliness for an extreme introvert even through very long periods of aloneness.
The heap allocation for the implementation won't be removed by LTO.
Also, IBM Z series provide full backward compatibility [1], so you can have new hardware and still run your COBOL program from 1976 with no issues.

https://en.wikipedia.org/wiki/IBM_System_z#Architecture
And you really should try to use a reputable VPN, like the one they recommend in the article. Plenty of VPN services are in the business of injecting ads and malware, logging your traffic, stealing passwords and credit card numbers, etc.
Ethereum white paper in PDF version
Cortana gets jealous for being out of the party.