HNHacker News
TopNewBestAskShowJobs

hesselink

420 karma · joined November 11, 2009

meet.hn/city/nl-Driebergen-Rijsenburg
submissionscomments
hesselink··on Python 3.5 to Ship with Matrix Multiplication Operator
Haskell also has first-class operators. Operators are infix, surrounding them with parentheses makes them prefix: (+) 1 2. Functions are prefix, surrounding them with backticks makes them infix: 1 `plus` 2. You can define your own, and define precedence and left/right associativity.
hesselink··on Introductions to advanced Haskell topics
The 'Monad tutorial' linked in the article doesn't use analogies. Instead, it takes you through a couple of pieces of code that have an obvious abstraction, then shows you that these abstractions are all the same, and that this abstraction is called Monad. It's really very good, you should read it.
hesselink··on Extract Chords From YouTube Videos
Chordify is great! Their backend is written in Haskell, and part of it is open source as well: http://hackage.haskell.org/package/HarmTrace
hesselink··on Reactive Programming in JavaScript
Sadly we haven't open sourced the library (yet?). The actual implementation is quite a bit larger, and messier, than described in this blog post. Additionally, it's written in our own module system. So while we'd like to open source it, it currently is more work than we have time for.
hesselink··on You might not need jQuery
One thing I haven't seen mentioned in this thread, is that you can create custom builds of jQuery that only include some of the functionality: https://github.com/jquery/jquery#how-to-build-your-own-jquer...
hesselink··on 4 million songs on Spotify have never been played. Let’s change that
This is very annoying on Spotify itself as well. If you use the 'radio' feature (basically random tracks based on some genre/artist), it often repeats the same track over and over, from different releases.
hesselink··on Google Calendar Unexpectedly Leaks Private Information
The 5th has now also been created:

https://news.ycombinator.com/threads?id=ritikk5

hesselink··on Hindley-Milner in Clojure
I've heard this argument a lot, and I disagree. If your software is changing a lot, that is where types really shine. Refactoring is a breeze when you have types: you just change the code you want to improve, and all use sites are pointed to by the compiler. This is taken from daily experience: I work on a code base that is about 25K lines of Haskell and 35K lines of Javascript. Refactoring the Haskell is a pleasure. Refactoring the Javascript is something we dread, and always introduces bugs, some of which might linger for up to a year.
hesselink··on Girls Who Code
What a weird comment. How would this be worse for girls than for boys?
hesselink··on Turn O(n^2) reverse into O(n)
I think back then, the 'n' just wasn't very large, so O(n) versus O(n^2) didn't make much of a difference.
hesselink··on Falsehoods programmers believe about geography
> Better example could perhaps be The Hague (Den Haag or 's- Gravenhage in dutch).

I don't think so, the official name is 's-Gravenhage, even though many people and official organizations use Den Haag.

hesselink··on My Quest for a New Browser
I'd love to know how your session sync differs from Firefox Sync and Google's synchronization.
hesselink··on Speed Up Git Pull
I just tried the first part of this (the ssh multiplexing) and instead of getting faster, 'git fetch' got slower (1.9 to 2.4 seconds). Any ideas why, and how I can debug/improve it?
hesselink··on Firefox 22 released
This is a great release! I wonder about this, though:

> The stack trace is now shown as a breadcrumb near the top

Who thought this was a good idea? This leaves room for about 3 items, whereas most stacks nowadays are much larger. A normal vertical list makes much more sense than a horizontal breadcrumb, IMHO.

hesselink··on Adblock Plus “typo correction” feature adds affiliate IDs to links
I compared before clicking, and the final page I ended up on at Amazon's site. Both were the same.
hesselink··on Adblock Plus “typo correction” feature adds affiliate IDs to links
I have Adblock Plus installed, but comparing an Amazon affiliate link in Firefox with Adblock Plus, with one in Chrome (no Adblock Plus) shows no difference.
hesselink··on The Shortest Crashing C Program
That throws an exception, I believe. We wanted something that actually segfaults.
hesselink··on Issue 224182 - chromium - Chrome wakes me up in the middle of the night
You can configure this on OS X. In the General preferences, there is an option 'Close windows when quitting an application'.
hesselink··on Heroku Fucking Console
I always laugh when I see out of memory log messages "kill process xxxx or sacrifice child".
hesselink··on Heroku Fucking Console
OK, so it wouldn't work if you're in a submodule. It could print a warning if there are no submodules. But if would still work perfectly fine in the majority of the cases.

For those also annoyed, I use this git alias, which does what I want:

    sup = !sh -c 'cd `git rev-parse --show-toplevel` && git submodule update --init' -
hesselink··on Heroku Fucking Console
It always annoys me when git does this:

    $ git submodule update
    You need to run this command from the toplevel of the working tree.
I bet git knows exactly where that is. So go there and do it!
hesselink··on Using 'debugger' to help in javascript debugging
In Firebug (Firefox) you can selectively disable 'debugger' statements. You can even disable them only if a condition is true.
hesselink··on Why learning Haskell makes you a better programmer
The C++ version can (and often will) use mutable fields behind the scenes. The Haskell version can't. So it is thread safe by default, while the C++ version might break some internal invariant if used from multiple threads. So even on such simple functions, purity can give some advantage.
hesselink··on Google Disabling Exchange Sync for Free Accounts
That's what I got from that page as well.
hesselink··on Mozilla UX: Save For Later (why bookmarks are broken and how to fix it)
I use the Firefox address bar as a lightweight version of this. Since it searches URLs as well as titles of sites in your history, you can just type (parts of) words separated by spaces to find old content.
hesselink··on Facebook's Release Engineer
There is a much more comprehensive article about Facebooks release engineering at Ars Technica [0].

[0] http://arstechnica.com/business/2012/04/exclusive-a-behind-t...

hesselink··on New Apple maps app under fire from users
For those in the Netherlands, I can recommend the planner by 'de Fietsersbond': http://www.fietsersbond.nl/fietsrouteplanner/
hesselink··on GHC 7.6 is now live: poly kinds, dynamic use of cores, numeric type literals...
In the past most people prefixed their field names with the type name. Nowadays, the most common thing is to put types in their own module, and use the module system to sort out any conflict. Qualified imports can add a prefix, but you can also import parts unqualified, or hide one problematic field.
hesselink··on Captchas Are Becoming Ridiculous
Note that captchas are not (only) to prevent brute forcing passwords, but (also) to prevent bots from signing up for accounts. This would not work against that.
hesselink··on OAuth 2.0 standard editor quits, takes name off spec
See also http://news.ycombinator.com/item?id=4294959
← PreviousPage 3 of 5Next →