DEV Community

Discussion on: Self Documenting code isn't

Collapse
 
eviathan profile image
Brian Williams • Edited

Comments are useful for explaining rationale but not much else.

If the code doesn't explain what it's doing then it's poorly written. Because most languages can be written in ways that are incredibly easy to read.

There seems to be an almost macho trend, especially in the FP world to try to write code that is demonstrably not readable and pretend like it is.

I hope that trend dies because its a nightmare.