On 1/4/02 3:48 AM, "Endre St�lsvik" <[EMAIL PROTECTED]> wrote:
> On Thu, 3 Jan 2002, Jon Scott Stevens wrote:
>
> | It is amazing to me...with all the discussion about coding styles and
> | following them, we still have people committing code that doesn't follow
> | what rules we do have...
> |
> | on 1/3/02 11:00 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> |
> | Re: cvs commit: jakarta-commons/logging/src/java/org/apache/commons/logging
> | SimpleLog.java
> |
> | > + if(_showtime) {
> |
> | <http://java.sun.com/docs/codeconv/html/CodeConventions.doc8.html#367>
> |
> | "Variable names should not start with underscore _ or dollar sign $
> | characters, even though both are allowed."
>
> The _instanceVariable and also the __staticVariable idea makes real good
> sense to me nowadays. Do you have any arguments against it? (btw; this is
> a genuine question!)..
I used to do that all the time in C++ developent, although I put it at the
end
membervar_
It really helps, I think.
>
> And while talking about code conventions; people writing like this:
>
> if (something)
> {
>
> }
>
> should be shot right there on the spot, in the act of typing it.
>
> The ONLY way to write blocks is like this:
>
> if (something) {
>
> }
>
>
> ;)
You left out my 'favorite'
if ( something ) { }
:)
--
Geir Magnusson Jr. [EMAIL PROTECTED]
System and Software Consulting
"Now what do we do?"
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>