4 ms·
You are trying to excuse Smalltalk's excessive verbosity by pointing out Java's excessive verbosity. Yes, Java is excessively verbose. No disagreement there. B
by hota_mazi 5y ago
You are trying to excuse Smalltalk's excessive verbosity by pointing out Java's excessive verbosity.
Yes, Java is excessively verbose. No disagreement there. But so is Smalltalk.
Your argument is basically whataboutism.
My point is that Kotlin and Swift both solve Smalltalk's mistakes elegantly by making the parameter name optional. Use it if you have to, but omit it otherwise. And as it turns out, most of the time, you don't need to mention the name at all.
- igouy 5y agoYes Smalltalk is verbose by design.
- hota_mazi 5y agoWhy would anyone think that a verbose language is a good idea? Explicit? Sure. But verbose? There's no good reason for that, except that when Smalltalk was designed, we thought it was a good idea. We know better today.
- goatlover 5y agoIt wasn't too long ago, some people were defending Objective C's verbose naming schemes. "We know better today" sounds more like a fashion statement than an objective one. Opinions on coding styles tend to change with the languages that become popular. Granted, I do prefer explicit short over verbose.
- scroot 5y ago> Why would anyone think that a verbose language is a good idea? What if you are a "sometimes" programmer -- you write some code, then come back to it months later. In many ways this was the intent behind the development of early personal computing. Verbosity is an advantage in these cases because in theory it becomes easier to discern what is going on without having to be immersed in the language, frameworks, and environment all the time.
- igouy 5y agoWe sometimes think we know better. There is not an objective universal boundary between explicit and verbose. Some readers will need more, some can guess correctly with less.
- xkriva11 5y agoI never thouht of Smalltalk as being verbose. It has basically no boilerplate code, almost no syntax and good Smalltalk code is usually well factored. In Pharo, average method has 5 lines (median is 3) of 32 characters (median is 24). Usual method in Smalltalk, including its definition, is shorther than this sentence.
- igouy 5y ago> In Pharo, average method has… Do you mean in base Pharo, or do you mean in an enterprisey system built using Pharo?
- xkriva11 5y agoThese are the statistics from base Pharo. Enterprise systems will probably have, in average, longer methods because of longer domain-specific names and tests that are usually more descriptive.