Kevin McFarlane wrote:
Yes, it seems to be the Java "house style." My best friend from uni who's also a Java guy uses this style too. Though he also used it in C++.
I never understood the connection between language and coding style. Unless, of course, the language itself disallows / discourages specific constructs, like using spaces between function name and opening bracket in Python or Ruby. I remember a couple of Microsoft training courses I was on. On the C# training course we were told, under pain of death, to use "RaiseEvent" and not "FireEvent". Never mind, a couple of months later, during the ASP.NET course, it was "FireEvent" all the way. At least they had the good manners not to make it a big issue out of it. But the saddest thing was that a couple of "experienced" programmers asked (and they were a 100% honest!) "why?". To my mind, the coding style only has to do with consistency, readability, testability (try debugging multiple statements on the same line and see how you like it) and clarity (see Joel On Software for a few interesting points about this aspect). And, as long as the compiler/interpreter understands it, what do I care about "house style"? Just imagine that the conventions would change for each different literary style (Yes, I know, programmers only ever read IT manuals and sci-fi, but still...) OGR