Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Is your code Clean enough?

Name: Anonymous 2016-01-20 13:09

Hi, Everyone. I'm slowly learning Haskell and something that slows me down is how different the culture and style is from Clean Coding. (I.e., Clean Code: A Handbook of Agile Software Craftsmanship)

I'm coming from Ruby, and CC is hugely influential. E.g., Code should be self-documenting with descriptive variable and function names. Functions should be very short and each one's expressions should all be at a similar level of abstraction.

Sandy Metz's Rules are also very prominent. E.g.:

Methods can be no longer than five lines of code.
Pass no more than four parameters into a method.


But the Haskell docs and code examples in posts are pretty far from this style, e.g. I see one-letter identifiers, multiple levels of nesting, functions which are many lines long, etc.

EDIT: Cf. Elixir, where Haskel's a becomes any.

What do haskellers think of this? To me, much Haskell code is unnecessarily obfuscated.

Name: Anonymous 2016-01-21 7:57

Clean Code leverages Agile Software Craftsmanship and world-class Self-Documenting Design to provide programmers worldwide with robust, scalable, modern turnkey implementations of flexible, modular, cutting edge method system of algorithmic architectures that accelerate response to theoretic and real-world code integration demands and reliably adapt to evolving software design, seamlessly and efficiently integrating and synchronizing with their existing legacy codebases, enhancing the inherent information sharing capabilities of code production teams across the enterprise while giving them a critical competitive advantage and taking them to the next level.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List