Originally posted by mdedetrich
View Post
There is plenty of room for the same code to be both highly readable and highly unreadable just from differences in spacing, variable naming choices, etcetera. Obfuscated C is probably the most extreme version of this, although I consider the GNU project’s coding convention to make C code extremely difficult to read. Meanwhile, C code in Bill Joy normal form is a joy to read. Given such huge variations in readability within a single free form language, I am highly skeptical of any claim to be able to determine one language is more readable than another. Maybe you could normalize by comparing fixed form languages and fixed form versions of free form languages, but that ignores that familiarity is also a big part of what makes one language more readable than another. It also potentially ignores that some style conventions for free form languages are simply better than others.
I recall when I learned programming that I found imperative syntaxes to be more natural than functional syntaxes. While highly powerful and not hard to learn, things like map and fold operations were unlike anything I experienced in my life until that point, so I had little interest in using them outside of situations where I was forced to use them. I suspect that I was not alone in feeling that way, which would be consistent with the adoption of functional languages within only niche areas. I also recall that I found free form syntax to be more natural than fixed form syntax. My opinions have not changed much since my initial impressions. The only real difference is that I do not find fold and map operations as alien as I once did.
That being said, it would be nice if studies explained why their results are actually meaningful and not just data that was easy to collect, was submitted to a “peer reviewed” journal to give the impression that grant money was not wasted and was accepted by that journal solely because there was nothing more interesting submitted to them, they are paid fees for accepted papers and they needed to accept a number of fees to meet a quota. Do not just take my word for it though:
Comment