Recent submissions

Comment · 7 years ago
Comment · 8 years ago
Comment · 12 years ago
median = size % 2 == 0 ? (homework[mid] + homework[mid-1]) / 2 : homework[mid];

In my opinion the ternary operator is misused here when an if/else would have been clearer.

Comment · 12 years ago
Though I also recommend this book, their example code teaches bad habits (such as assignment within conditionals and horrendous compound statements) which should be avoided in any sort of production code.
Comment · 13 years ago
Embedded/RTOS
Comment · 15 years ago
The Playbook is more business orientated (secure QNX OS) but is also on sale to consumers. The kindle is purely a consumer product.
Comment · 15 years ago
Spotify is 100% licensed. AFAIK, Grooveshark is more like Napster in that it's a free-for-all with user uploaded content, though they have worked out deals with some of the record companies.
Comment · 16 years ago
Does the app produce a unique coded signal of flashing screen colours for each user? Otherwise, what's to stop someone from loading an image of their own face with someone else's barcode onto their smartphone and stealing sandwiches?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton