• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Java Programming Conventions, was Re: WOPopUpButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java Programming Conventions, was Re: WOPopUpButton


  • Subject: Re: Java Programming Conventions, was Re: WOPopUpButton
  • From: Lachlan Deck <email@hidden>
  • Date: Sat, 23 Jun 2007 04:26:16 +1000

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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >WOPopUpButton (From: "Sigurður E. Vilhelmsson" <email@hidden>)
 >Re: WOPopUpButton (From: David LeBer <email@hidden>)
 >Re: WOPopUpButton (From: Ian Joyner <email@hidden>)
 >Re: WOPopUpButton (From: Eric Robinson <email@hidden>)
 >Java Programming Conventions, was Re: WOPopUpButton (From: Paul Lynch <email@hidden>)

  • Prev by Date: Re: creating tables on the fly with webobjects
  • Next by Date: Re: Java Client refuses to use Client-Side classes once deployed
  • Previous by thread: Java Programming Conventions, was Re: WOPopUpButton
  • Next by thread: Re: Java Programming Conventions, was Re: WOPopUpButton
  • Index(es):
    • Date
    • Thread