132 karma · joined March 4, 2014
Why does this ridiculous meme keep popping up? The 40 hour work week was a long and hard-fought battle, full of blood, tears and sweat. It was an uphill slog against the most powerful corporations in the world; lavour unions fighting tooth and nail for every minute of time away from work. It wasn't some flight of fancy by Henry Ford because it made his workers more productive, or so they had more time to buy stuff, or whatever other pieces of false history have been dreamt up.
>Over the course of the past few months I’ve been using Go to implement a proof of concept program in my spare time.
It's almost as if, like most people who post on Hacker News, you took a cursory look at the title, wrote some inane comment that supported your point, and squeezed out a reply.
Why, exactly, did you use this particular choice of words?
Nearly 100% of the time, you know what the type of a local variable is (otherwise people would be unable to use Python/Ruby/Javascript/etc.), so it's no great harm to readability. Furthermore, you are probably already working with an IDE that can tell you the type of a variable when you hover over it, anyway. I think that it also leads you to think more about interfaces than specific types.
def compare(a: Int, b: Int): Int
This one has not only 232 possible results, but an incalculable (232)264 possible implementations. Even if we are generous and only allow the inputs to be 0 or 1, we still have 2128 implementations. If the only meaningful return values are -1, 0 and 1, indicating “less than”, “equal” or “greater than”, then why would we embed them like specks of dust in a big desert of undefined behaviour?
I don't agree with this. This is not a "big desert of undefined behaviour". The behaviour is defined along the entire spectrum of Integer values. "Less than" maps to all values <= -1, "equal" maps to 0, and "greater than" maps to all values >= 1. There's no undefined behaviour here.Because he was judged in the court of public opinion. You may point and say "What this man did was obviously wrong! He deserves everything he gets!" And then someday, maybe you make one small, innocuous mistake. One off-the-cuff comment taken out of context. And the internet lynch mob will come for you.
(Please understand that I'm not saying what he did was said out of context or could be misinterpreted. It was pretty obviously a dumb thing to do. People have been "executed" in the court of public opinion for infinitesimally smaller gaffes, and it is this we must work to stop.)
Why the apology on Github's part after it was concluded that there was no gender-based harassment towards the engineer in question? Is this apology pertaining to the other issues?
The number of times you'll need a generic map or fold algorithm to operate on those structures: many, many times.
Well, it is written in D. Walter (not Andrei) is talking about how he leveraged D's features to his advantage when writing Warp.