I’d like to offer several snippets collected from the recent discussion threads on programming languages (regarding conciseness and verbosity). One person wrote:
The important point about verbosity is not the time you spend typing: it’s about how difficult it is to read and understand the code.
To which the other fellow responded:
And verbosity makes code easier to read. I don’t have to know anything to understand the code. Everything I need to know is there in front of me.
Now, that’s an interesting way to look at the problem of understanding the code. Would you agree that the more verbose the source code is, the easier it gets to understand it?
Finally (and inevitably), the sacred cow of corporate computing (Java) is dragged in to demonstrate the benefits of verbosity as a feature that encourages reusability through increasing the level of abstraction:
The verbosity of Java code also encourages developers to implement more abstractions and reusable components. The ease of coding in some languages often results in more code, in my experience. It’s easier to just write more code than to stop and think about reusable solutions. In Java and other verbose languages, ‘coding for the moment’ is a losing strategy.
Interesting stuff, innit? Do any of you guys agree with this, or have comments to offer?