Recent submissions

Comment · 9 years ago
The US hardly lacks collectivism, it is merely on an incomprehensibly grand scale. Pay your taxes and the state will help you, evade them and the state will punish you.

Certain African countries are strongly individualistic. The state is too weak to help or punish anybody. Infrastructure crumbles, crime and slavery abounds.

You seriously don't want to visit let alone live in a country that lacks collectivism.

Comment · 9 years ago
Except for Vietnam!
Comment · 9 years ago
> Linked lists are a very convenient and surprisingly universal data structure, but they really shine wherever you have a recursive algorithm. Which is, in the languages mentioned, almost all the time.

Linked lists were way ahead of their time. Nowadays everything is so fast that we can probably use them without guilt, but there is still a sense of disgust associated them.

Comment · 9 years ago
!! is an extremely common idiom, across multiple different programming languages.

Code should be written so that it is understandable by other professional programmers, not people who started programming two weeks ago.

Comment · 9 years ago
C++ is somewhat of a low bar, because of the state of the art in package management in C++ land is "download a header-only library". C++ does have sum types in the form of boost::variant, but boost is an abomination.

The danger to Rust is that for many projects it wins by default because the alternative languages are immature, rather than because its performance/security capabilities are actually worth the productivity trade-off compared to other languages.

Once Swift matures a bit, it will take a lot of the lustre from Rust.

Comment · 9 years ago
People who change their religion are often disowned by their family, their spouse might divorce them, etc. It can in no way be considered a choice.
Comment · 9 years ago
Software is written better.

In the past, computational complexity was lowered by arbitrary size limits. e.g. if you had a O(n^2) algorithm you might cap n at 10 and now you have a O(1) algorithm. Job done.

Now, computational complexity is lowered by aggressive use of indexing, so you might lower your O(n^2) algorithm by putting a hash table in somewhere, and now you have an O(n) algorithm. Job also done.

The practice of putting arbitrary size limits on everything has almost died out as a result.

Comment · 9 years ago
Nope. Fruit juice is mostly water. Even raw sugar is only 380 kcal/g, just a bit more than French fries (310 kcal/g).

If you're underweight, you should eat food.

Comment · 9 years ago
Apple is $750b company built on one product (iPhone). Their business hangs on a thread. What happens if they have a big recall like Samsung had?
Comment · 9 years ago
It is written by PR people, wire services and politicos. The journalist simply assembles the ready-made components into the lowest energy configuration.
Comment · 9 years ago
Small claims court?
Comment · 9 years ago
Chilies are popular around the world for exactly this reason, that you can take cheap ingredients and, with some chilies, create an appetising meal.

Because Britain lacks a (good) cuisine of its own, we tend to eat exclusively the food of other countries, and those dishes are often spicy.

Comment · 9 years ago
"good" and "bad" are comparisons, not quantifications. The correct question is something like: all else being equal, what is the difference in expected lifespan between a juice drinker and a juice abstainer?

I'm pretty sure that HN has consumed more of my lifespan than any diet could compensate for.

Comment · 9 years ago
Comment · 9 years ago
I don't know about in the US, but in the UK when the Green party attempted to propose UBI they were ridiculed because it would be so expensive. Apparently even the average person can see there are orders of magnitude between the cost of bureaucracy and the cost of UBI.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton