On 22/06/2007, at 7:27 PM, Paul Lynch wrote:

On 22 Jun 2007, at 03:39, Eric Robinson wrote:

Whether you like it or not, infix caps, or camel case, are part of the Official Code Conventions of the Java Programming Language, seen at http://java.sun.com/docs/codeconv/html/ CodeConventions.doc8.html#367 .

I hadn't seen that arrangement of Sun's official code conventions for Java, but I did notice that it was inconsistent in several places with itself, as in the use of white space within lines. The document mostly uses:

if (condition) {

Whereas in this thread, and in code that I often see from other developers, I would say that the norm is:

if( condition ){

// or for mine nicer because of consistent spacing:
if ( condition ) {

// whereas I often see around anything from:
if(((condition) || (2ndCondition))
&& (otherCondition)){ // worse than lisp

to uglicity:
return (int)((NSTimestamp)((SomeEntity)anItem).valueForKey(aKey ())).getTime(); // c? return (int) ((NSTimestamp) ((SomeEntity) anItem).valueForKey(aKey ())).getTime(); // k? return (int) ((NSTimestamp) ((SomeEntity)anItem) .valueForKey(aKey ())) .getTime(); // c k what?!
return (int) ((NSTimestamp)
 ((SomeEntity)anItem).valueForKey(aKey()))
        .getTime(); // why?!

Somewhere along the lines (pun intended) white space seems to have been outlawed...

Which makes me very uncomfortable. I am curious as to people's personal preferences, and reasoning behind them.

This is Java, not typesetting, so typographical arguments will receive short shrift.

'cause we've a gotta be a readin' and a writin' it all day long ;-)

with regards,
--

Lachlan Deck



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to