> -----Original Message-----
> From: Kevin O'Neill [mailto:[EMAIL PROTECTED]]
> Sent: August 15, 2002 9:14 PM
> To: FOP Developers
> Subject: Re: Style issues.
>
[ SNIP ]
> Now you might say "but a developer might forget to do it so it's
> worthless over time", that's where code quality tools like checkstyle
> come in. They report breaches so they are easily fixed.

Precisely. There are 2 parts to the puzzle: published code style guidelines
and frequent reminders, and a backstop which consists of automated checkers.
Just because the second is required doesn't mean that the first is not
worthwhile.

I am all in favour of implementing some guidelines regarding variable
naming. My main concern is distinguishing local variables from instance
variables. In a big method it's nice to know that

a = 2;

is an assignment to a local, but

m_b = 3;

is assigning to an instance variable. Not everyone has access to something
like IntelliJ IDEA where this kind of thing is much less of a problem.

BTW, I could personally care less about the syntax - m_name, _name,
this.name - that communicates the intent, but something is definitely
desirable.

Regards,
Arved


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to