HNHacker News
TopNewBestAskShowJobs

NigelTufnel

86 karma · joined August 1, 2013

http://codumentary.blogspot.com
submissionscomments
NigelTufnel··on Show HN: Pymash.com – facemash for the most popular Python repos
To find the best Python function ever written!
NigelTufnel··on Cursors
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.

NigelTufnel··on You Got Your Web Browser in my Compiler
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.

NigelTufnel··on Google’s Search Results Ditch Underlined Links, Increase Font Size
Wikipedia doesn't underline links either. They're doing fine.
NigelTufnel··on New message from Mt. Gox
This is insane. No <!doctype> declaration? Come on!
NigelTufnel··on Show HN: A simple IP address API
I'm getting latitude = 60.0000, longitude = 100.0000 for my IP. Which is about 1000 km away from me.
NigelTufnel··on Why Stack Overflow in Portuguese?
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.
NigelTufnel··on Why Python Runs Slow, Part 1: Data Structures
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.

NigelTufnel··on Why Python Runs Slow, Part 1: Data Structures
I did a stupid microbenchmark and it turned out that simple class with __slots__ was the fastest method.
NigelTufnel··on Mozilla will put ads directly into Firefox
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.

NigelTufnel··on Free unlimited rebooting experience from vintage operating systems
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.
NigelTufnel··on Flappy Bird Typing Tutor
Now that's hard.

The next logical step is to type in point-free Haskell programs.

NigelTufnel··on Ask HN: What should I learn to stay relevant in the next 5 – 10 years?
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.

NigelTufnel··on Flappy Bird creator, Dong Nguyen, taking down game; "I can't take this anymore"
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.
NigelTufnel··on Flappy Bird is proof that no one knows what the audience wants
It's noteworthy because this one became popular. That's how the world works.
NigelTufnel··on Make the Type System Do the Work
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.
NigelTufnel··on Satya Nadella – Microsoft's CEO
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.
NigelTufnel··on Does the next decade belong to Go?
It's always a safe bet that any new language will fail spectacularly. Also everybody is not Google and have massive speed/concurrency needs.
NigelTufnel··on Web server for Linux written in amd64 assembly
I wonder how fast is this server. Is handwritten assembly faster than GCC/clang-written assembly?
NigelTufnel··on Big changes to Erlang
I don't understand. By built-in map you mean "map literals"?
NigelTufnel··on How in-app purchases have destroyed the game industry
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.

NigelTufnel··on Python Idioms [pdf]
I think that concatenation with + is okay when you're concatenating two strings. And CPython can optimize x = x + y or x += y calls.

http://docs.python.org/2/library/stdtypes.html

NigelTufnel··on Java Platform, Standard Edition 8 Reference Implementations is Released
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.

NigelTufnel··on In Defense of Scala. Response to “I Don’t Like Scala”
Template-heavy C++ and point-free Haskell code.
NigelTufnel··on In Defense of Scala. Response to “I Don’t Like Scala”
"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.
NigelTufnel··on The descent to C
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.

NigelTufnel··on Results of the Grand C++ Error Explosion Competition
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.

NigelTufnel··on Using your computer as little as possible?
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.

NigelTufnel··on Bro pages: like man pages, but with examples only
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.

NigelTufnel··on Magnus Carlsen VS Bill Gates
It took Carlsen 12 seconds and 2 piece "sacrifices" to mate Gates. That was fast.
Page 1 of 2Next →