skysight-inc/HackerNews huggingface dataset:
Development aid also undermines democracy in developing countries because the elites focus on pleasing foreign donor organisations, rather than being accountable to their own population.

There is also a tendency of aid to destroy local economic structure, as the local producers can often not compete on price with free aid.

If you look at countries that managed to develop (e.g. South Korea or China in recent years), then they all did it without substantial involvement of foreign aid.

It is interesting to reflect on	why development	aid is so popular in the developed countries despite its obvious failures. Here are some reasons.

- Development organisations serve as levers of soft power. (If you
give us XYZ, we'll fund your railway/sewage treatment plant/school).

- On-the-ground	workers	of development organisations are convenient
sources of information and can often be used to supply false IDs	for
spies, military operatives and the like.

- Multi-national companies regularly support development aid, because it's
good and cheap PR.

- Aid organisations are	lucrative sources of income for their senior
staff in the developed world, and they well-oiled PR machines to
keep the funds flowing, and mute criticisms.
I guess that might be a trend in some inhouse development.

In our consulting projects there is always a minimal level of documentation specified by the customer as delivery artifacts.

They want to be sure the next set of guys are able to carry on when there is budget available again.
I'd expect diffusion of responsibility or just plain laziness to happen with a human in the loop.
(Side note: This thread is talking about 'broken window' policy.)
And worse, when you actually need to talk about someone screwing up and encrypting passwords (see http://www.xkcd.com/1286/ ), this mis-education of your readers will have to be carefully undone first.
It's ultimately subjective, but I think that code is readable: the variables are well-named and each line says exactly what it does. Abstraction makes it easier for you to think you understand what the code is doing, but if you want to really understand what's going on, you also have to understand how the abstraction is implemented. Straightforward code like this can be understood directly, without having to dig through layers of function calls.
This is going to be buried, because I'm way late to the party here...but interestingly, Uber automatically sets your tip level at 20% for Uber TAXI in your settings, which you can change down to 0% and up to 30%.
Compass Earns $1B Valuation as New Unicorns Become Rarer
Curl author creates project for QUIC open source library
While I thoroughly enjoyed the piece, I am not sure how much an untrained mind would appreciate the whole idea.

I can't really judge without going through the material that accompanies the slides, but I am really skeptical about what a normal child takes away from this.
Many do. There are several reasons they're not very competitive. They were late to that market, just following Uber's coattails. Their advertising is not as slick and the apps often have poor UI, so it's not as enjoyable and effortless to use. And significantly, they actually follow the law, which results in higher costs to the end-user than law breakers like Uber.
One thing to note is that no allocation mechanism for more than 2 parties cannot satisfy all 3 of these criteria for general preferences

a) Efficient - guarantees an allocation where making at least one party better off without making anyone else worse off is possible

b) Balanced budget - guarantees all prices sum to a fixed number eg the total rent share

c) Incentive compatibility - it always a Nash equilibrium for every party to report their true preferences for each good.

There is only one allocation mechanism (Vickery-Clarke-Groves) that satisfies the 1st and 3rd criteria and this will generally not also satisfy the 2nd.

Reference:

https://en.wikipedia.org/wiki/Vickrey%E2%80%93Clarke%E2%80%9...

Thus, Su and Spliddit's algorithms by definition must be vulnerable to strategic reporting.

Example: V=[v1,v2,v3] = preferences for rooms 1,2,3. total rent = 1000

VA = [1000,0,0]
VB = [0,1000,0]
VC = [0,0,1000]

Truth Telling Spliddit Allocation A->1,B->2,C->3 prices = [333,333,333]

If C reports [500,500,0] and A,B report truth

A->1,B->2,C->3 prices = [500,500,0]

TLDR - fair and efficient allocation mechanisms can never avoid vulnerability to gaming for some preferences.
ok thats why I just got a dropbox pop up to change my password :P
Most companies in US don't offer pensions anymore. They will match about 50% up to about 3% to your 401k which is a a tax deferred retirement account. I would say dump as much as you can into 401k especially up to the match. I wouldn't risk more than 10-20% total on anything speculative(Single stocks, real estate, businesses) And most of the time you will wish you just left it in your 401k.
I've edited my post to do that. Thanks
It's ridiculous because they were making them thinner too.
If your problem is unique, there won't be a framework for it.

That doesn't always stop the pressure to force-fit your problem into a "preferred" framework. In a large organization, both the people defining the problem and the people enforcing the constraints on the solution can be different from the people who have to implement the solution, and may not be aware of or able to understand the mis-match.
The doc-string state pre- and post-conditions of a function and what it does in abstract terms. It should not say anything implementation specific.

For example, the doc string of "search" tells you the returned list is sorted afterwards. It should maybe tell you the complexity of its algorithm like O(n log(n)). It should NOT state which algorithm (QuickSort, TimSort, etc) it uses. Comments in the source code can explain the choice of algorithm.
halfway is very optimistic interpretation :)
I've always used spaces instead of tabs.

My rationale:

The number of readers of any document will normally be greater than the number of authors. We should give a slight preference for readability and ease of comprehension over writeability, and should certainly not require that our readers adjust their editor settings for each document that they peruse.

In addition, it is useful to use vertical alignment to group related content that spans multiple lines. Although this at least partly an aesthetic choice, and not without drawbacks, I believe that the benefits outweigh the costs.

I believe that it looks neater, improves readability and also makes some errors "pop" out in a way that they don't in unaligned content. I find the ability to visually group related terms and expressions particularly useful.

The downside is that you have to "tidy up" after using refactoring tools or after doing a search-and-replace operation.

However, I believe that this downside is mitigated due to the fact that the very tidying up that is required is a good way of eyeballing the changes and checking to make sure that they are OK.

http://williamtpayne.blogspot.co.uk/2012/04/spaces-over-tabs...
Spares, by Michael Marshall Smith?
At most 1 year later, firefox will support drool.
Firefox does not support drool because it does not support async generator function.
Completely disagree. I'm not going to summon up simple scarecrow arguments, but for software that makes money, I do not want your clever pattern with comments that saves a microsecond behind a 60 millisecond latency api. I want a simple for each loop. Where I want comments is where code gets hairy for a reason. For example, extra crafty SQL on some summary metrics page, sure, go ahead and comment that. But I don't want to see comments on more than 5% of a code base whose primary purpose is to make money.

And I'm not saying this because I've always had this view, I used to be too clever. I wrote a automatic caching and automatic windowing API client library. The thing was impossible for anyone else to alter because the mental model was too complex. Now I try to keep complexity only where it is needed and I try to keep the complexity quarantined from the interface as much as possible.

Huge projects like Rails can be clever while still making my life easier because they have an army of smart people finding the edge cases, but for most stuff that isn't the case.
A summary of the most important Computer Science algorithms (WIP)
> It's an artificial problem, that gets solved when you start consistently stripping trailing whitespaces on save and not realigning everything all the time.

This is mostly solved via coding standards. If there are no coding standards people will "refactor" the coding style when they touch various pieces of code. If people were following a consistent style, then the alignment wouldn't be changing all of the time.

Although I strongly agree with the trailing whitespace sentiment. The most egregious offender that I've found is Eclipse putting trailing spaces on blank lines to bring them to the indent level of the non-blank lines. Ugh.
You can't assure rapists don't get 4 years (or less):

> The convictions carried a potential sentence of 14 years in prison. Prosecutors recommended six years in prison while probation officials recommended a "moderate" county jail sentence.[19] On June 2, 2016, Santa Clara County Superior Court Judge Aaron Persky sentenced Turner to six months confinement in the Santa Clara County jail to be followed by three years of probation.

https://en.m.wikipedia.org/wiki/People_v._Turner
Just because it smells good and triggers nostalgia does not mean that it isn't terribly bad for your body.
Even if it was "harmful" it wouldn't be such a big deal because I for one have never seen an actual program written in literate programming style.
You don't, you use tabs for indentation and spaces for alignment.
Well, I'm not sure I'd go so far as to say it's the entire point, but it is definitely a compelling reason.
Things that are supposed to be lined up stay lined up even if they aren't at the start of a line - even if you:

* Use different tools - IDE, command line, version control tool, code review tool, e-mail client.

* Have code that follows with different conventions - because you participate in several projects, or because you've imported third party code that follows a different convention, or because the code is written in different languages.

* Have co-workers with different opinions about what tab width should be set to.

Personally I don't think there's that much value in vertically aligning things, except in lookup tables. Usually it's a sign you've adopted line-length rules that don't reflect modern monitor sizes, or that your methods have too many parameters. But some people seem to think it's valuable.
The preceding comment suggested that using a website without understanding authentication is like buying a car that has no airbags. That's unhinged. You know those "IQ tests" where they go "the foot is to the leg like the hand is to the..." type analogies? This person would fail hard.
Why no Objective-C? I'd bet it'd be either heavy on the space side or such a horrible mix of both that the analysis program would become self-aware and kill itself.
Interesting. I've been considering doing this but, frankly, have been too lazy to implement it. But if you are using a password manager anyway, what's one more field?
> You can land on a planet or moon with no atmosphere.

IE: Mars, the ultimate SpaceX goal, which has just enough atmosphere to be annoying but not nearly enough to make parachutes work, so they had to find another way to land a big enough payload to transport 100 tons of stuff there
​Starting with Linux in the early days
How can you be 100% sure it's the sugar? Perhaps it's a new set of chemicals and bacteria in the water supply of her new home? Perhaps it's the tea itself, the temperature of the drink, the cream, new molds or pollen in the air where she now lives? Or the stress of moving?
Wrong link :)

https://youtu.be/SsoOG6ZeyUI
The link content is "a link to @@./demo.webp".
"@@./demo.webp" is a picture.
Is drool not minimal enough?
Cigarette smoke causes many people respiratory distress. Your anecdote is not data.
I've had a similar experience getting shit to work on multiple platforms. I decided not to use cmake for mobile targets. While the NDK in general sucks to build, if you follow certain patterns you can get a system that works and is fairly straightforward. The path to get there is not easy though, I'll give you that.
If the waveguide boils at a certain rate at certain power levels, then it should be possible to estimate how much force this would produce. If that force is on the same order, then it's likely the reason for what we're seeing.
There are more consequences than just hell and jail - and a faith or belief system purely motivated on hell and/or jail is an immature one.

My argument boils down to Natural Law, and it sounds to me like yours does too.
When you say "I don't have any reasons to value my enjoyment over theirs" - I would totally agree, but I still don't understand how you arrive at that without a belief in Natural Law.

An argument that doesn't rely on Natural Law goes something like this: We have evolved into highly social beings, so our internal physiology naturally rewards us for socially constructive behavior, so we choose to not be a dick because being a dick feels bad.
It's a purely selfish motivation because that is what is purely rational.

My limited understanding of Natural Law comes from CS Lewis and Thomas Aquinas, but I did a quick search before writing this reply and I see that it has some backing in atheistic thought. Is that where your coming from?
Don't store passwords at all if you can avoid it. Then, bend over backwards to avoid it.

Do all login through OAuth or the related proprietary "login with" mechanisms Facebook and Twitter have. Offer your users a choice of mechanism, in the signup flow, and don't require that they first set up a password that they then replace with login-with-(whatever).

If you can't imagine what this looks like, open an incognito browser and go through the signup-for-an-account flow at stackoverflow.com. That should be what you're aiming for.
Honestly I don't care either way just a long as the file doesn't mix tabs with spaces.

I hate when the code looks perfectly aligned in my editor but is completely messed up in git because git renders tabs a different with.

I personally prefer spaces on my own projects because in the early days a tab used to be fixed at 8 spaces and I though that was a bit too much.

It's adjustable now but I don't think it was then or at least I wasn't aware it was.
Literate DevOps (with Emacs, Org-Mode, Tramp) - https://www.youtube.com/watch?v=dljNabciEGg
No. Adding a utf8 bom is just my hobby.
>The trend in programming lately seems to be less to no comments and less to no documentation

Hasn't this always been the case for young programmers? Seems you don't comment until you have to go back to code you wrote yourself a year later and make major changes....you then realize you should have documented it, either inline step-by-step or as a proper doxygen/javadoc style.

I can thank Dr. Leitner (CS 50/51) for enforcing comments in assignments. Took programming courses as an undergrad (I wasn't a CS major, but a Bio/Int'l studies one) in C, no documentation required...code was checked for correctness only. Leitner had his TA's go through and take off points for code that wasn't documented...which needless to say got me in the habit of documenting.

>It really comes down to laziness.

Not so sure. Laziness or lack of good habits? Perhaps a mixture of both.
It also conforms to Sturgeon's Law.
Forget Software–Now Hackers Are Exploiting Physics
All the extra weight from the Shuttle's aerodynamic surfaces would really cut into SpaceX's cargo capability too much. And remember that the part that landed was only a small fraction of whole launch system's bulk. SpaceX is hoping to eventually get a quick turnaround which means not throwing away lots of parts. And in the short term they can make incremental progress because what they're using to land isn't much more than what they needed to get to space in the first place.
I thought many countries had already basic income for people not working? In France we have RSA what would be the difference here?
> Many editors, however, consider all spacing at the start of the line to be indentation.

What? If your editor can't tell the difference between you hitting the tab key versus the spacebar, it's a bug in your editor.

Smart tabs - the idea you're talking about - is well-supported in just about every major editor.
I think this definitely applies to xcode, I use tabs everywhere but for xcode it just prints a lot of spaces and I am used to it.
California’s Recycling Industry Is in Rapid Decline
I find so much of this article simply appalling. I'm not sure how the movie theater is actually responsible for the shooting. The shooting was a horrible and tragic event, yes. Could safety be improved? In general terms, probably. Would these general safety things helped this incident? Almost certainly not.

Is expecting a movie theater to provide this level of security reasonable? Probably not - and the truth is that most reasonable folks wouldn't want this level of security at a movie theater. It is probably best left to law enforcement.

I understand these folks' lives have changed for the worst. I truly think they are entitled to have their medical bills and therapy and things covered. If they cannot work, I do think they are entitled to having income at their previous levels. But not by the theater.

And all along, this lawsuit had many failings. I find it amazing that a lawyer would take the case. I find it amazing that said lawyer, if he was not paid upfront, is not partially responsible for the other side's fees. (being paid upfront changes things, as he'd not really profit from the winnings). I find it weird that the case was allowed through and not thrown out earlier. I find it appalling that these folks aren't taken care of as I mentioned before - because I truly believe this stuff would lessen such lawsuits.

Such an odd world we live in.
> Alcohol is unquestionably the more destructive of substances

Because it is the most popular one. The "harm to others" part of the score is not per user. At the margin, one typical heroin or crack consumer creates more costs to society than one typical alcohol consumer.
The email Dropbox sent me was talking about a preventive measure. Did they lie?
> Surprised to find out Google even employ a designer at all.

Oh definitely and it seems they've taken over the wheel [1] and went into rage mode with Material design.

[1] http://www.theverge.com/2013/1/24/3904134/google-redesign-ho...
I notice you have "versioning" on your todo list.

I would personally implement that similar to how GitHub handles Gists: make each snippet a DVCS repo with 1 or more files in it.

That provides both the versioning functionality, and opens up the possibility for client-side editing using a well-known model (clone repo, make changes, commit, push).
Several markets have this (several also have taxis IN uber app). They often fall back to cash payments.
Parent, you are the devil incarnate. Grandparent, you have bigger issues to resolve.
We've been experimenting with Elixir at work, and it's been really cool to drop down into the Erlang ecosystem and see how people think when they're designing OTP programs, especially when it comes to things like Riak and Mnesia and those sorts of things. My only complaints about this ecosystem is that everything feels scattered in specific places (I've had to read a lot of books, versus being able to read tutorials) and that it's very hard to tell an abandoned project from a feature complete project on GitHub. You can generally look at downloads in the Hex package manager for a rough idea of popularity, but then again build servers can inflate unpopular packages. Someone in the Elixir slack joked to me "75 stars? That's super popular for Erlang!". I can deal with it, but I wish it weren't so.

All that said, I think I'm going to stick around with these languages. Everything feels very well designed and battle ready, in stark contrast to using JS. Elixir also seems to remove a lot of the cruft and awkward syntax of Erlang, and having Lisp-style macros makes the GenServer boilerplate go away entirely.
I just recently switched from tabs to spaces. I always used spaces for alignment and tabs for indentation. It was working very well within my company as all my colleagues were using 2sp tabs and I was on 4 space tabs. But now, we've decided to upgrade our codebase and make it PSR compliant (PHP).. which meant switching from tabs to spaces.

To be honest.. it's no biggie after a few weeks you get used to it.
This file is a mess because there is a table in the file.
When making table in a drool file, I recommand you set tab-size to 25ch.
> > As for Dropbox, they seem to have handled this really well.

> I'm biased, but I can't agree with this. From what I can tell, there are two communications from Dropbox -- one in 2012 [1] and one last week [2].

Especially given that 2012 they assured me that no credentials were lost and this time they didn't even inform me since my account was deleted in the mean time. So it's more or less luck that I know that my old password was compromised.
So was the original comment about bringing C++ programmers halfway to Lisp :)
Of course, Dijkstra wasn't really clickbaiting, as clicks hadn't been invented yet.
We can certainly do without passwords for every stupid little website. Unless you're rightfully a central force in the user's life - say, their main bank - you really should have users log in through Google, or Facebook, or Twitter, or someone else who almost certainly can guard their passwords better than you can.

It's shameful that it's so much easier to find tutorials on how to store passwords "securely" (including several tutorials that tell you crazy insecure things, like storing with unsalted commodity hashes) than it is to find tutorials on how to integrate your brand new battling-fairies website game with OAuth for authentication.
More people see Google ads than any other form of interaction with Google, by a long shot.

If you want to talk about Google search, it's obvious, as a user, that when you click a link in the results you're going to be going to the URL that the link points to (even if Google changes the URL when you click it for tracking purposes, there shouldn't be much room for confusion).
Before posting details of your company's security infrastructure here, ask your security team. Even if your infrastructure is technically perfect, there may be good reasons not to publicize its details.
Booking.com Is Looking for Machine Learning Data Scientists
If it meets the guidelines and intent, this might make a good 'Show HN'.

Show HN guidelines: https://news.ycombinator.com/showhn.html
I think the only reason it would make sense to do (3) before (4) is that the government paid for your development and wants to be the first to use it. Because they're more typically unique government payloads are typically much more expensive to lose in the case of a failure than another couple of commsats going into a constellation.
Right. But the idea does take advantage of the fact that some kinds of patterns are more obvious to humans and some to machines. Most people's threat model is a massive data breach rather than a determined single attacker focused on them who actually uses a smart human brain to analyze the passwords.