To find the best Python function ever written!
HN user
NigelTufnel
http://codumentary.blogspot.com
This is so much fun. It's kind of like RPG. There are 3 character classes. 1. Asshole: just goes straight after the green square. 2. Prankster: draws arrows pointing to the wrong exits. 3. Batman: stays on the button and clicks.
I've tried all three characters. Playing prankster is fun (I was a true trickster and sometimes drew the right arrow). Playing asshole is boring. Playing Batman is ok.
My apologies to all the guys/gals who followed the wrong arrow.
Many, many thanks to the author.
Also, I haven't seen so many poorly drawn dicks and swastikas since grade school.
Were it GCC instead of VC++ that wouldn't change much for a lot of people. Fixing bugs in a program with 7 million lines of code is not easy.
Fixing bugs in GCC for an unitiated person is probably super hard.
Wikipedia doesn't underline links either. They're doing fine.
This is insane. No <!doctype> declaration? Come on!
I'm getting latitude = 60.0000, longitude = 100.0000 for my IP. Which is about 1000 km away from me.
Personal experience: weird jargon is a good thing. I've read a book on Hadoop once and it didn't use weird jargon - everything was in my native language. It was super hard to read - basically I needed to translate the book from my native language into English in my mind.
I just did. And either a) I'm doing something terribly wrong or b) ctypes.Structure is slower than Python class with __slots__.
I would bet on a) - I've never worked with ctypes before.
EDIT: I bet on a) and I was wrong: ctypes offers no speed advantage.
I did a stupid microbenchmark and it turned out that simple class with __slots__ was the fastest method.
What was wrong with the honest: "We'll show ads to the first-time Firefox users, so we can make extra money with our free product. We'll show ads only once"?
"User-first" bit is the textbook example of PRspeak.
Not just drop downs, but you can click on, e.g, restart and the page will restart. Took me a couple of minutes to get it.
Now that's hard.
The next logical step is to type in point-free Haskell programs.
A slightly paradoxical advice: learn Objective-C. Learning of one thing never stops.
Suppose you're now top 5% iOS developer. 5 years later you'll probably be top 1%. That's cool.
I can see only one hugely improbable risk in doing this. If Apple goes down then Objective-C developers will be as valuable as toilet paper.
He seems to be a normal guy, not a PR genius. But, yeah, "The game with 50,000,000 downloads will be taken off the app stores in the next 22 hours" is brilliant.
It's noteworthy because this one became popular. That's how the world works.
Maybe it's just something I don't understand but I would go with Celsius everywhere with converting to Fahrenheit/Kelvin when showing/grabbing temperature to/from user.
I agree. It's not just the algorithm, scale etc. It's the chicken/egg problem - to have a good page ranking you need a lot of usage data from a lot of users and to get a lot of users you need a good page ranking.
It's always a safe bet that any new language will fail spectacularly. Also everybody is not Google and have massive speed/concurrency needs.
I wonder how fast is this server. Is handwritten assembly faster than GCC/clang-written assembly?
I don't understand. By built-in map you mean "map literals"?
I think that "destroyed" is not the right word.
Yes, free to play games with in app purchases dominate the mobile market. For now. The mobile gaming is just 6 years old. We're in the 'Space Invaders' era. The quality of the top-grossing games is, how I shall put it, not great.
I think eventually the quality will grow to a level where paying up front for a mobile game will not be the stupidest thing on the face of the Earth.
I think that concatenation with + is okay when you're concatenating two strings. And CPython can optimize x = x + y or x += y calls.
Year 2014: Java gets lambdas.
Java 8 is pretty nice actually. Lambdas, date/time API that doesn't suck, filter/map/reduce in the collections. I'm looking forward to work with it.
Template-heavy C++ and point-free Haskell code.
"Brilliantly simple" is an odd description of Scala. I would easily put Scala in the top 3 most-difficult-languages-for-me to work with. Maybe even top 2.
There is a great moment in Stroustrup's talk when he shows a short error message in ConceptGcc and the audience applauds.
It seems that Stroustroup was suprised by the applauses.
That's why I like Python so much.
Made a syntax error? Here's the line number, pointer to the column, and the kind words "SyntaxError" from the interpreter.
Sometimes I put my laptop inside of the couch, my laptop battery in the wardrobe, my laptop mouse in a drawer in the kitchen so it takes a good couple of minutes to assemble all of this stuff.
From the facts that today's Sunday and I'm commenting on HN one can deduce it didn't work too well for me.
I like the idea: basically, it's a "kind of Stack Overflow in your shell".
The "bro" name is great actually - made #1 on the front page just because of it.
It took Carlsen 12 seconds and 2 piece "sacrifices" to mate Gates. That was fast.