News for hackers. Stuff that matters.
Re:Haskell for Web Developers by pestaa on Friday July 26, 2013 @11:45AM (#6108807)
My long term bet is Haskell, but boy do the examples look ugly. And most of Haskell really is ugly. My mind just can't get around type names like "M a p f b c => (a -> p) -> b -> c -> a" just yet. I know it's not hard to understand, but it is hard to parse and build up context.

Looking forward to having 5+ years of experience in this brilliant language.

Re:Haskell for Web Developers by k_bx on Friday July 26, 2013 @12:19PM (#6108985)
Yeah, but type

foo :: M a p f b c => (a -> p) -> b -> c -> a foo f b c = ...

would look something like

A foo<M<a>,p,f,b,c>(AP f, B b, C c) { ...

in Java (I don't know Java, but I hope you gen an idea). I mean, this is a really complex example you've shown. And most of the times, you can (just like everywhere else) write simple type synonyms to express what you want.

Re:Haskell for Web Developers by ocharles on Friday July 26, 2013 @11:56AM (#6108859)
Rest assured it doesn't take 5 years to get there :)
Re:Haskell for Web Developers by ExpiredLink on Friday July 26, 2013 @12:33PM (#6109043)
Why do you think a language that "really is ugly" and " is hard to parse" must be a "brilliant language"? Maybe the emperor has no clothes? Maybe Haskell is just what you see: suitable for academic discourse, unusable for real-wold programming.
Re:Haskell for Web Developers by pekk on Friday July 26, 2013 @12:57PM (#6109159)
Presumably he thinks that it is brilliant for reasons he already knows, probably involving the type system, but also observes that it is aesthetically ugly and difficult to read.
Re:Haskell for Web Developers by nightski on Friday July 26, 2013 @09:07PM (#6111418)
Aesthetics are purely subjective and rather useless. Hell even our own opinion of them can change drastically over time. The other reasons are what matter. I initially found Haskell quite ugly. But now that I understand the semantics behind it the syntax is quite beautiful in my eyes.
Re:Haskell for Web Developers by asdasf on Friday July 26, 2013 @12:56PM (#6109156)
Lets throw reason and common sense to the wind and pretend the subjective "haskell is ugly" is objectively true. Given that, could you explain to me how you make the seemingly wild and random leap to "haskell is suitable for academic discourse, unsuitable for real-world programming"? Perl is widely considered to be ugly, is it also only suitable for academic discourse? What properties do you believe haskell possesses that makes it unsuitable for "real-world programming"? What do you even deem "real-world programming" to be? It seems rather bizarre to suggest haskell is unsuitable for real-world programming in a discussion about examples of using haskell for real-world programming.