RE: Alignment Nazi?

<[email protected]>
Newsgroups gmane.comp.programming.language-of-the-year
Message-ID <[email protected]>
Simple solution: set in your coding standards that ALL classnames MUST be a
specific length, and also dictate specific lengths for all member variables,
method names, etc. etc.

Problem solved :)

Jeroen Wenting

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Ged Byrne
Sent: woensdag 14 mei 2008 15:46
To: [email protected]
Subject: Re: [pragprog] Alignment Nazi?

Gorden,

My question is what happens if the Temperature class is renamed to
something longer?  Do you have to go through all of the classes that
declare a Temperature instance and move every single = to maintain
alignment?

Are you forced to keep names short, so that alignment is easy?  Would
you prefer correct alignment over descriptive names?

If names aren't kept short, then you start having to scroll sideways
in the IDE and word wrap in the printouts.  Is that desirable?

I've been working with SQL that uses the same type of alignment
scheme, and these are the problems I've been encountering.


Ged.

On Sun, Apr 27, 2008 at 11:06 PM, gjmilne64 <[email protected]> wrote:
> Hi!
>
> I am an Alignment Nazi. When I see a block of code like this:
>
>         final int         counts              = result.getCounts();
>         final int         periodMicros        = result.getMicros();
>         final Rate        rate                = new Rate(new

------------------------------------

Yahoo! Groups Links
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.