News for hackers. Stuff that matters.
Re:What Compsci textbooks don't tell you: Real world code sucks by mikegioia on Saturday December 22, 2012 @10:50AM (#4956774)
Come on! He makes one reference to Haskell, links to the SO post on it, admits he has never used it, and all of a sudden he "shits all over his credibility by turning it into a language war"? It's an example of how ugly code can get for goodness sake.
Re:What Compsci textbooks don't tell you: Real world code sucks by spacemanaki on Saturday December 22, 2012 @11:07AM (#4956800)
The Haskell code snippet is from a parody of Wikipedia, and is purposefully obfuscated code. Imagine someone holding up a piece of code written in C from an IOCCC entry, as an example of how C is a language to be avoided. Additionally, bringing it up is a total non sequitur, because Haskell doesn't have much to do with the problems the article discusses, and neither does APL.

I think it does ruin the author's credibility. They didn't do the most basic research before including that code snippet, and are just holding it up as a distracting side show. The rest of the screed might have some value, but I'm pretty skeptical of that after reading the last paragraphs.

Re:What Compsci textbooks don't tell you: Real world code sucks by michaelochurch on Saturday December 22, 2012 @11:08AM (#4956803)
And one language I’ve been warned about, though I’ve never had the opportunity to use it, is Haskell, an offshoot of ML. According to a friend in academia who’s studied it, it’s “the Taliban version of ML,” in which it’s all but impossible to write readable code.

He follows this with a line of intentionally hard-to-read code.

Everyone who is familiar with Haskell knows that it's possible to write code like this, but it's not common. You have to actually work at it to make truly awful code in Haskell or ML.