"One queen per row, in every legal position, for every configuration. You imagine what their startup’s about-us page would look like."
https://aphyr.com/posts/342-typing-the-technical-interview
#aphyr #haskell
Typing the technical interview

@grainloom This language seem sooo complicate ! wtf

@Bloadrick well, yeah, if you only use types :D
The "idiomatic Haskell" version would be much shorter and easier to understand.

I'll be honest, I gave up trying to understand halfway through reading that.

@grainloom well, I know nothing yet about fonctional programming but I'm pretty sure I'm not gonna begin with Haskell x)

@Bloadrick it's really much easier than that blog post makes it look. What's going on there is like trying to write your entire code with templates in C++.

Here is the simpler version:
https://wiki.haskell.org/99_questions/Solutions/90

99 questions/Solutions/90 - HaskellWiki