News for hackers. Stuff that matters.

srssays

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.

Except for Vietnam!
Re:Lispers on Sunday August 20, 2017 @01:18PM (#15059228)
> 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.

Re:Why I'm not a React Native developer on Saturday August 19, 2017 @04:34PM (#15055442)
!! 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.

Re:Try Out Rust IDE Support in Visual Studio Code on Friday August 18, 2017 @08:03PM (#15050702)
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.

Re:Why We Terminated Daily Stormer on Thursday August 17, 2017 @09:43AM (#15036674)
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.
Re:When did software go off the rails? on Thursday August 17, 2017 @08:01AM (#15035897)
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.

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.

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?
Re:How Web Forums Make Neuroticism Viral on Saturday April 29, 2017 @10:58PM (#14229960)
It is written by PR people, wire services and politicos. The journalist simply assembles the ready-made components into the lowest energy configuration.
Small claims court?
Re:Why do we love chilli? on Friday April 28, 2017 @08:31PM (#14224275)
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.

Re:Why Juicero’s Press Is So Expensive on Monday April 24, 2017 @08:33PM (#14189786)
"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.

Re:APFS filesystem format on Saturday April 22, 2017 @09:45PM (#14175972)
Perhaps the exception that proves the rule, but TextEdit is open source!

https://developer.apple.com/library/content/samplecode/TextE...

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.
Societal collapse doesn't have to mean going back to the stone age, it could mean e.g. the Iranian revolution. Or for a contemporary example: the Syrian civil war.

Even Spain was a dictatorship until 1975. Everybody should consider the possibility that their society will collapse, even if they choose to do nothing about it.

How do you pay for tickets in Vienna then?

I kind of like the barriers, if you are on the station platform, then you have definitely paid. For me, the stations that don't have barriers are more stressful, as you run the risk of forgetting to tap your card (or the tap not registering) and incurring a maximum fare.

Re:Apple's Achilles Heel on Monday April 17, 2017 @07:47PM (#14135432)
Laptops won over tablets. The whole post-PC era just isn't happening. That is Apple's problem, they're stuck in the year of 2010 and can't escape.

Nowadays, people want to have a phone and a laptop. Tablets are dumbed-down computing devices, for kids, the elderly, or as toys for the rich.

Re:2017 Camera News on Sunday April 16, 2017 @07:23PM (#14128163)
The physical resolution of the screen is 2880x1800.

The scaled resolution modes work by rendering at 2x then downsampling. So in the mode you quote it is actually rendering at 3840x2400 (!!) then downsampling, but there's still only 2880x1800 physical pixels.

Re:How many jobs really require college? on Saturday April 15, 2017 @12:14PM (#14121371)
You're ignoring the quality of the teacher. If you learn remotely, you can learn from good (or at least adequate) teachers, at a pace that is right for you.

I wish that resources such as Khan Academy existed when I was at school. I don't know about you, but many of my high school teachers barely understood the material they were teaching.

Re:Why There Are No New Social Networks on Friday April 14, 2017 @03:42PM (#14116688)
It has its own Snapchat Stories now.
The average person eats a diet primarily of carbohydrates, particularly rice. Humans have been high carb diets for the entirety of recorded history.

It would be quite the failure of natural selection if eating a normal human diet caused type 2 diabetes.

Programming sucked before HTTP+JSON became the lingua franca of machine communication. Being able to use any programming language with modern HTTP-based protocols is a real luxury.

Before, you could only use a programming language if had a production-ready implementation of the protocol you wanted to speak. Otherwise you would spend the next weeks or months tediously writing one.

This was so crippling that XML actually seemed like a good idea. Just imagine!

Re:Electron is flash for the desktop (2016) on Tuesday April 11, 2017 @12:07PM (#14089418)
Use Safari then.
Re:Electron is flash for the desktop (2016) on Tuesday April 11, 2017 @11:57AM (#14089277)
Electron is great for user experience. Compare to something like JetBrains' IDEs which are written in Java and are much less native feeling than Atom (and just as resource-hungry).
Re:Why the Dow is a useless market index on Sunday April 09, 2017 @07:17PM (#14074844)
For a counterexample see Brexit. The FTSE 100 went up after Brexit, when other economic indicators were negative, because it primarily contains large multinationals which are insulated from the local economy.

So a stock market index is only correlated with the local economy if there are few multinationals.

Re:Fast Python loops on Saturday April 08, 2017 @10:59AM (#14067214)
According to archive.org this essay is from at most June 2006, which would put it at Python 2.4 or earlier. The specific performance characteristics of Python will have changed greatly in the intervening period.
Re:Fact Check now available in Google Search and News on Friday April 07, 2017 @03:18PM (#14062717)
They are not only similar but indiscernible. There is no single definition of "unemployment", therefore there is no single unemployment percentage.
If we didn't have telescopes, you could make the same argument about the existence of other galaxies.

Older »