skysight-inc/HackerNews huggingface dataset:
> Real world software, as you say, with money, clients and deadlines, is written in JavaScript all the time.

That says a lot about the lack of alternatives for code that must run in a browser and next to nothing about the merits of prototypes.

I have the fortune to work with a bunch of people that worked on Self, or worked with people that did. Many of them told me that after all of that experience, the conclusion they came to was that prototypes don't really work well in practice, even when you have multiple parents like Self. (JS lacks that, which makes it even more painfully limited.)

Meanwhile, many JS luminaries, people who understand every corner of the language, are working hard to add class syntax to ES6 (, or defining transpilers that support it (Erik Arvidsson with Traceur, Jeremy Ashkenas with CoffeeScript).

I find prototypes interesting. I've implemented my own prototype-based language from scratch to understand them better. As soon as I had it working and started writing code in the language, the first thing I found myself wanting was to add classes to it.
Coursera, no doubt. I took 2 courses with Tim Roughgarden; they were awesome. And I just finished 2 more with Sedgewick. If you can find the Sedgewick courses, I recommend picking up his book (actually, I recommend it anyway) - Algorithms, Sedgewick & Wayne, 3rd ed.
Lame article and post. If you want to find cheap housing, you can. And it's unwise to overlook that Bay Area residents may actually prefer the current situation over unchecked sprawl.
Yes. I've been asked that elsewhere. See my reply here: http://www.java-gaming.org/index.php/topic,29466
Yes, the question did not account for unknown specifics. There is also a 3rd answer which in which the answer accounts for the person making the cuts having to answer the phone half way through the job.
My personal saying is "It's very expensive to be poor".
I'm not in love with the personally tailored search experience as it stands.

I'm totally OK with searching "#{my_city} taxi" instead of "taxi" if it means when I search "abortion" I get a sampling of search results that has the greatest co-citation... instead of something that myopically focuses on Google's perception of my preferences.

At the least, I'd like to be able to switch off the personalization. But anyway... Beating a dead horse here in this community, I'm sure.
I almost never search for very specific terms, most of my searches are also approximate. In this case it's very helpful that the search results are also approximate.

So I consider this a feature not a bug...
No, no force was used right here, but the USA routinely uses force where it's politically handy, like chasing Osama into Iraq.

So it's more like me having extracted your friend's wallet and turning to you with bloody knuckles and asking politely for your wallet. No violence. To you. Because you're not going to say no.
I think it ultimately comes from three things:

(1) Boston has an undeserved liberal reputation. Boston is extremely conservative, but in its own way. It's NPR-liberal, not fun loving socially open liberal, and definitely not San Francisco liberal. It's ideologically liberal but not culturally so.

It took me a year or two to wrap my mind around it as it's a sort of conservatism you just don't find elsewhere in the U.S. much. It took me aback. I had no conceptual framework to place it in. Eventually I realized it was an upper-crust blue blooded Ivy League thing, a bizarre hybrid where people are intellectually open minded but socially unbelievably reserved.

(2) Boston is a huge college town, and thus has a very transient population. People move there for school or work for a while, but they often do not settle there. Why make lasting friendships when everyone's just going to leave? Also: the social scene tends to revolve around the schools to a great extent. If you're a student you have those social networks, but there is less of a social scene for non-students.

(3) It's expensive and inconvenient to drive in Boston, and the public transit is unfriendly to socialization. The T stops running at 12:30AM, and cabs are insanely expensive-- far more costly than New York. So people don't want to go out further than they can walk or commute in a short cab ride. Go out to some place like North Cambridge or Quincy and you're looking at a $40+ cab ride home. I think this is a huge reason there is no quality club/music scene to speak of outside a few tiny islands here and there.

All that being said, people are very polite and friendly. It's not that people are hostile or mean, just that they don't socialize much and keep to themselves. I think it's a vicious cycle too-- it drives people away who would otherwise really like to live there. Boston is a wonderful city in many, many ways.
Don't memorize, memoize.
Killed the back button of my browser.
Except that Hofstadter, other than writing about his ideas and theories, has accomplished jack shit.

Pragmatically speaking, Kurzweil is miles ahead of Hofstadter in terms of putting his theories and ideas to practice.

It's very easy to criticize visionaries, until they achieve something. Then nobody holds the critics accountable for their negative attitudes towards the visions, and the critics probably would claim that the progress was obvious (in hindsight everything is obvious).
Thank you both. I had no idea that HTML5 included this.
> So prototype-based OO fails to deliver both in terms of expressiveness and maintainability. It is just a worse technique, when considering the facts. Trying to pretend it's good at things it clearly isn't good at doesn't make much sense to me.

You are focusing too much on prototype OO.

The models offered by Smalltalk, Beta, CLOS, Haskell and quite a few others are different approaches to the classical model known to the average developer.

This is the main problem in the "offshore everything model" that looks for cheap dumb developers able to work like cogs and not required to think.

> And there's no "language war". C and C++ do the vast bulk of real work today. No other languages today can compare to them, and the ones that try still depend very heavily on one or both.

When I started developing (1986), C was just another language that most people did not care about. In fact I only cared to write some C code around 1993.

The current situation came to be due to UNIX's influence in the enterprise and the fact that any developer worth his salary isn't not going to rewrite the full stack from zero.

It has nothing to do with their suitability for OO development.
I don't think it's the responsibility of the police to protect you anywhere. By responsibility I mean, if you are not protected you can hold the police legally responsible.
> The proper layer for caching is HTTP, do we really want to end up with duplicated overlapping functionality between the layers?

HTTP caching doesn't work well with compound documents that represent a graph of objects. The kind of caching described in JSON API allows an application to group together requests for documents while avoiding making requests for documents it already has. The only way HTTP caching works is if every request for a document is 1:1 with an HTTP request, which doesn't map onto my experience (and our experience with Ember Data) at all.

> I see you have an application specific need for a certain thing but I don't think it generalises enough.

This functionality was extracted out of a general purpose framework used by a number of applications that made heavy use of it. The ability to send a normalized graph of objects in a single payload, and then make a small number of additional requests, only for the documents that the client doesn't already have, is a huge win for clients working with a non-trivial number of related objects.

The rest of your concerns are very valid. FWIW, I envision future extensions being added to the `meta` section, which is already reserved. ID, URL, and rel are the building blocks of the graph, while other kinds of extensions (like pagination, etc.) are optional metadata. But you raise a good point and I will give it some thought :)
It has probably been tuned to the "average" person who is looking for entertainment- or shopping-oriented results.
This question is easy in hindsight. The fact that it's been prefaced as something "simple" makes you scrutinize it much more closely than if you were someone grading a series of questions en masse...because you've been warned that it's not so simple.

That said, this gave me a little glimmer of hope about the state of logic education, at least among our third grade students.
I'm very bad at calculus , but I can work out Big O intuitively quite easily.
Some other resources besides CLRS...

Free interactive Python textbook on Algorithms & Data Structures:
http://interactivepython.org/courselib/static/pythonds/index...

Robert Sedgewick and Kevin Wayne of Princeton have a great textbook (code samples in basic Java):
http://www.amazon.com/Algorithms-4th-Edition-Robert-Sedgewic...

They also teach a two-part Algorithms course on Coursera:
https://www.coursera.org/courses?orderby=upcoming&search...

Thomas Cormen (the C in CLRS) also has a new book called Algorithms Unlocked which introduces some popular algorithms in pseudocode.
http://www.amazon.com/Algorithms-Unlocked-Thomas-H-Cormen/dp...
Bullets shouldn't be sufficient to produce even rapid, much less explosive decompression.

https://en.wikipedia.org/wiki/Uncontrolled_decompression

The pilots should have time to don oxygen masks unless pressure is lost very rapidly at very high altitude. I'm doubtful that just shooting the plane is an effective way to accomplish this.
The Bay Area is unchecked sprawl. What people are fighting for the the ability to avoid the sprawl by building up.
MPAA Lawyer’s Computer Account Used in Pirate Bay Founder Hacking Case
First, there is no AI ranking algorithm on HN. People vote.

Second, there does not have to be anything "newsworthy about it to hear every day from it", there just to be something newsworthy in it's POSTS.

That said, what's special about Medium is that it's a high quality, err, medium, with interesting posts that often relate to business and tech. Which makes it unavoidable to be submitted to HN.

Especially since it's a new-ish service that has started to caught on, and thus a lot of HN users are following it.
I'd love to hear some science behind your thinking. It's not obvious to me why this is a scam.
I'm not sure Amazon cares about selling hardware -- they have reading apps for Android, iOS, OS X, and the web, probably Windows too.

I think it's more a desire to lock you in to their platform and maybe to make buying as low friction as possible.
It actually is a pretty big difference. I had a really bad first impression of Android from using early HTC stuff, but my current job is Android development so I figured I should check out the alternatives--and I still had my iPhone, so I could swap the SIM. The AT&T store sold me a Motorola Atrix HD, running either 4.0 or 4.1, and it was awful. It was ugly, Motoblur stuck a bunch of crap I didn't want everywhere...just bad. I took it back the day I got it and bought a Galaxy Nexus online, with 4.1 on it, and it was remarkably impressive; I've been using Android ever since.

I've seriously considered a Galaxy Note 2, but TouchWiz's existence offends me. :) If there was a decent stock-ish build that supported the pen I'd be all over that.
This is great, in around 15 minutes I have some excellent desktop wallpapers for work! The exported image is 2400x3200 and scales nicely.
Thanks for the feedback :)

Standardized paging seems to come up a lot, so it seems like a good thing to add once the core spec stabilizes. Optional sideloading also has come up a few times, and seems easy to add as a MAY in the spec. I need to flesh out the meta stuff in general, and the ability to have "meta anywhere" as well as top-level metas is coming.
http://en.wikipedia.org/wiki/Literate_programming
Why? Any objective reason?
Book titles are not a quotation and therefore generally aren't put in quotation marks. Instead they are written in title case and underlined or italicised.
> ? should never be part of a rest-like url

Why would you say something like that? There's no basis for that at all. From a REST POV, URIs are just opaque identifiers, the characters they're made up from don't matter a bit.
CLRS? Why you young whippersnapper! Back in my day it was called CLR, and those three letters were good enough for us! Kids these days...

mmanfrin, it's this book: http://en.wikipedia.org/wiki/Introduction_to_Algorithms
Yes. This is the '10 posts, nine spaces' problem.

Here is another version:

A fence is made using 15 posts spaced equally along a straight line. There are 3m between each post. What is the distance between the first and last post?

When I'm teaching this kind of thing, we go out and walk around the building site opposite with a few 15m measuring tapes. The physical walking out and measuring helps.
I'm pretty sure that more than just a couple people work on search at Google. ;)
The problem is that their development is almost stalled.

I hardly see any difference since 2004, the last time I used WindowMaker as my desktop.

As for GNUStep the web site wiki is very confusing, as it is not easy to find out how close they are for Objective-C language version and NeXTSTEP/Cocoa libraries.

Again, many of the pages look the same as back in 2004.
A Blog Comment System That Steals Comments From Facebook
Steve Case on risk taking,or lack thereof in business
Sorry, but you you've got the concept of "rent seeking" completely wrong.

"In public choice theory, rent-seeking is an attempt to obtain economic rent by manipulating the social or political environment in which economic activities occur, rather than by creating new wealth. One example is spending money on political lobbying in order to be given a share of wealth that has already been created."

http://en.wikipedia.org/wiki/Rent-seeking

A black market - almost by definition - is one in which the players are cut off from the channels of official lobbying or patronage that make rent-seeking a viable economic strategy.

That's not to say that a dark symbiosis can't develop between black marketeers and legitimate authorities. For instance, the police, by enforcing laws against drug trafficking, increase the risks of trafficking. This increases prices and profits alike. High profits attract a constant supply of traffickers, who also tend to be far more ruthless than the average businessman, which brings additional layers of criminality to the trade, thereby ensuring continued employment for the police - to say nothing of an unsettling expansion of their powers.

But at no point do the traffickers and the police feel a mutual need to formalize this relationship, since public opinion remains, on balance, opposed to the narcotics trade. That is to say, the police can rely on the ballot box to stay employed, stripping them of any incentive to do business (at least on an open, institutional level) with traffickers. Meanwhile, the traffickers can count on public opinion to keep police on the beat, and need not go to any further expense to keep their racket going.

Contrast all this with the retroactive extension of copyright terms which has got to be the canonical example of true rent seeking, illuminating the practice in its most naked and unproductive form.

EDIT: An more germane example is the lobbying done by pharmaceutical companies with an interest in keeping the law and public opinion in opposition to illegal substances that may have pharmacological properties. Because these substances are too well known to be patented, their legalization could lead to patent-free formulations that reduce demand for patentable substitutes that pharmaceutical companies have created, or ones they could develop in future. Blocking the legal use of one widely and cheaply available substance to create a market for a more expensive but conceivably inferior alternate is a text-book case of rent seeking.
"When grading things, ppl usually face hundreds of copies at a time and it's very tedious."

Oh, yes, been there and I have the video. Don't you work from pre-written and checked marking schemes?
I was asked the O() of binary search. I said "log n". They asked "what base?"

... obviously they wanted 2, but O() doesn't work that way - changing base is a constant factor. Sometimes there's a tension between figuring out someone's understanding of the algorithm and someone's understanding of the notation (and math behind it). Of course, I gave them both answers...
That's not accurate. People are encouraged to use PGP for addresses and other sensitive communication there, but it is not enforced or directly supported by the system. There are still vendors who can't be bothered to figure PGP out (often relying upon dubious alternatives like privnote), and there will always be customers who don't care one way or the other.

Silk Road itself doesn't even have a discrete place for users to enter their public key; it is only by convention that most vendors put it at the end of their profile text.
As it turns out, our friend Danielle had written about something similar two years ago. http://www.daniellemorrill.com/2010/06/how-i-built-a-multi-u...

Great minds :D
Even average case complexity?
Medium provides good quality articles, many of which fit in with what much of HN is looking to read about. What's the problem with multiple highly ranked posts coming from one domain?
That looks cool and all, but what does one do with a rack these things? How does it compare with a cluster of x86 CPUs on a processing/watt basis?
The book along was a little terse for me. The videos from OCW however are priceless, even entertaining sometimes.[1]

[1] http://ocw.mit.edu/courses/electrical-engineering-and-comput...
It's called grading on a curve, and it's (imo, unfortunately) very common in undergraduate courses in the US :)
150 million dollars wasn't going to make of break Apple at the time. Amelio and Andersen floated a bond issue of many times that amount the past year to resolve cash flow concerns and 1997 was when Apple regained profitability. It was mostly a move to settle investor confidence by signifying Microsoft's bet on Apple's future success.
Also, there's a book site for the Sedgwick & Wayne book:

http://algs4.cs.princeton.edu/home/

There's a lot of good stuff.
I felt a great disturbance in the math as if a million minds applied themselves to a problem and were suddenly silenced. I fear something terrible has happened.
Though with a gap buffer, you can have O(1) to insert/delete at some other point. Costs O(n) to move that point, though.
They're parroting an observation from a special about the book; it's a bit misleading taken out of context. The original observation was making a comment about Harper Lee's reclusive and private nature, not suggesting that Lee modeled Boo Radley directly on herself...though I'm sure many of the characters in the book contain bits of the author.
That's because programmers still write code with off-by-one errors!
More than a couple work at Apple too. But the 50 billion app downloads came from an ecosystem of millions of developers around the world.
Venn Diagram
I wonder if they sing it for a fee, too...
1. All media types are 'document centric.' And real REST APIs serve up documents. So seems fine to me. Also, IANA does not have a 'api+json' type registered (until I did so last night), so the name isn't taken.

2. If you're transitioning _to_ this kind from some sort of older kind. Remember, this is extracted from real, working software; it's not some sort of thing we imagined up. Not everyone is super on the hypermedia bandwagon yet, and some will need to transition kind of slowly.

3. I filed for 'appplication/vnd.api+json' yesterday, and so we'll be changing the document as soon as the IANA gets back to me.

4. You could, in theory. Allowing PUT seems fine, it just doesn't often seem to be the case, so we didn't include it. I wouldn't mind having that in there.

5. You should be, this is an oversight.

6. That's very possible.
I'm I missing what stands in the way of anyone currently setting up their own security agency? Especially in states with open carry. Unless it's not about freedom and more about channeling their feelings on the government.
Yes, I want to reduce some of the MUSTs, or at least justify them more strongly. Right now they're based on what our running code absolutely needs.
I was hoping to see some data on how limited funds forced people to buy inefficiently...that is, buying cheaper quantities that are per-item more expensive than bulk buying because they can't afford the up front cost of buying bulk. My roommate will do this when buying dish soap for the household, always getting the smallest bottle than just paying for the large one at a 30% discount per ounce.

Also, some cheap items are disproportionately bad for one's health...if I were poor, it'd be hard to justify buying two apples over a Big Mac, given the calorie per dollar ratios.
> Over the years, the Postal Service has become the world leader in optical character recognition

I found it surprising that they are the leader, but they certainly have a vast amount of varied test data so makes sense I guess!
That is simply not true. Can you provide me with some sort of citation on this? Fielding doesn't talk about URL construction in his thesis, and, in fact, specifically mentions things like collections and multiple entities residing in one resource.

Also, ? is not a 'hack', I don't know where you're getting that from either.
You can lead a horse to water, but you can't make them think.
> I'm not sure about the name

Good feedback. Many people have said this, and I'm thinking about an alternative.

> Or phrased differently, why would I ever not want to use the "URL Template Shorthands" approach mentioned later?

You can think of the ID-based approach as just coming with a set of default URL templates in a top-level rel. The primary reason I included it (and I considered not including it), is that it may be easier for servers, when getting started, to adhere to both strict URL naming and skip generating URLs in the JSON serialization layer of their application. I'm working on some tooling for Rails that will pretty much eliminate these considerations, but I weighed ease of server-implementation when I built this. Again, don't think of the ID form as being URL-less, think of it as coming with a default, easy to implement URL template.

> Why use application/json and not something more specific? I can see some reasons, but would be interested in yours.

Two reasons: (1) Many existing clients and servers already support easy generation of JSON requests and JSON responses. (2) I haven't yet registered an alternative MIME type.

> On creation, if I accept the pain of generating an ID on the client and can construct the URI using the template, why can't I use PUT instead of POST?

Good point. That seems fine.

> If I use a POST to create something, why don't I get a 201 Created with a Location header?

Also good point, and an embarrassing oversight on my part. That should be how it works.

> I'd suggest to upgrade the "MAY" for caching to a "SHOULD".

Hmm. You think a server SHOULD use HTTP caching? RFC terminology is pretty dodgy, but caching really seems more like an optional feature ("One vendor may choose to include the item because a particular marketplace requires it or because the vendor feels that it enhances the product while another vendor may omit the same item") than a strong recommendation ("This word, or the adjective "RECOMMENDED", mean that there may exist valid reasons in particular circumstances to ignore a particular item, but the full implications must be understood and carefully weighed before choosing a different course").

Thanks for all the feedback. It was really valuable.
In the very same paragraph he talks about the government stealing money from you in form of taxes, so I guess he would rather not pay any taxes at all and just choose who protects him himself, getting rid of the state-run police force. I can't even begin to describe how many things are wrong with that approach.