15 May 15:17
Re: [groovy-dev] I'll give a Groovy presentation at the Jazoon'08
From: Aaron Digulla <digulla@...>
Subject: Re: [groovy-dev] I'll give a Groovy presentation at the Jazoon'08
Newsgroups: gmane.comp.lang.groovy.devel
Date: 2008-05-15 13:17:10 GMT
Subject: Re: [groovy-dev] I'll give a Groovy presentation at the Jazoon'08
Newsgroups: gmane.comp.lang.groovy.devel
Date: 2008-05-15 13:17:10 GMT
Quoting "Martin C. Martin" <martin@...>: > I think the problem here may be more a lack of documentation than > anything else. The rule is pretty simple: if an identifier is followed > by a {, then the identifier is considered a function that takes a > single argument, the Closure. (I can't remember whether the { has to > be on the same line as the identifier or not.) > > It takes a little getting used to, but I think its measured in days. > As Dierk has said, this hasn't really caused lasting confusion for most > people. I'm a very fast developer. I can write 60 lines of code per hour at 1 bug per 2'724 lines of code in the final product (that's one bug per 45 hours of work). I found that I can only do this when I move code formatting and parsing into my subconsciousness. And I can only do that when these task can be automated, which means 4-5 rules which have to apply always. No exceptions. If I omit the parens, I add another rule which means my subconscious can't cope with it anymore. It makes me slower because I notice that I have to think. I'm mentally stopping while I write or read code. At work, I noticed that a lot of developers occupy their thoughts with code formatting. They do it this way here and that way there and in the end, the code is hard to read, hard to maintain and they spent a lot of time on something that doesn't have to take any time at all. In this respect, Groovy is somewhere between Python and Java. I've yet to see any language which is as easy to read as Python and since Groovy kept the curly braces, there is no way it can ever beat Python in this respect. Alas, it's syntax is much more consistent than Java's (with list and array access folded into a single syntax, same with size(), etc). So it's a good second place in my book. Regards, -- -- Aaron "Optimizer" Digulla a.k.a. Philmann Dark "It's not the universe that's limited, it's our imagination. Follow me and I'll show you something beyond the limits." http://www.pdark.de/ --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
RSS Feed