Hacker News new | ask | show | jobs
by jerf 5341 days ago
"When I'm done, I want it to be as smooth and easy to read and as obvious as an article in the New Yorker."

Your metaphor is apt; if your code is going to be that smooth, you need to learn Haskell to the same extent you know English for the New Yorker. The Internet suggests that the New Yorker is written for a "10th grade reading level", but of course the average American has between an 8th or 9th grade level.

It does get easier with practice to read the language, and what's left after that is whatever core difficult the code being expressed has regardless of the target language, the essential difficulty. Haskell can hardly be blamed for bringing that to the foreground where other languages stuff it in the background.

1 comments

If I learn Haskell well and start writing code that's idiomatic for that audience, I'm limiting my audience to the few people who also know Haskell (and the particular Haskell idioms I'm using). It's like writing in Esperanto instead of English. My ideal is more along the lines of the Python examples that Peter Norvig writes, which can be understood by pretty much any programmer, even if they're not all that fluent in Python.