RE: More abuse of coding styles...

2002-01-11 Thread GOMEZ Henri
>> I agree - using the compiler to detect errors is such a >stupid idea. "Real >> programmers" dont need that. > >Real programmers don't use compilers... > java is compiled whereas JavaScript is interpreted. May be we should relax your affirmation ;) -- To unsubscribe, e-mail:

RE: More abuse of coding styles...

2002-01-10 Thread Paulo Gaspar
with local vars due to similar spellings and misspellings and so. Have fun, Paulo Gaspar > -Original Message- > From: Berin Loritsch [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 10, 2002 11:26 PM > To: Jakarta General List > Subject: Re: More abuse of coding

RE: More abuse of coding styles...

2002-01-10 Thread Conor MacNeill
> From: Berin Loritsch [mailto:[EMAIL PROTECTED]] > > > Just beware of this bug: > > public void setSomething(Object somthing) { // something misspelled > this.something = something; > } > Don't you use a spell checker on your code? Actually this problem is one reason why it is better to us

Re: More abuse of coding styles...

2002-01-10 Thread Berin Loritsch
Sam Ruby wrote: > Stephane Bailliez wrote: > >>I can understand why: >> >>public void setSomething(Object something){ >> something = something; >>} >> > > Another solution is > > public void setSomething(Object something) { > this.something = something; > } Just beware of this bug: p

RE: More abuse of coding styles...

2002-01-10 Thread Sam Ruby
Stephane Bailliez wrote: > > I can understand why: > > public void setSomething(Object something){ >something = something; > } Another solution is public void setSomething(Object something) { this.something = something; } - Sam Ruby -- To unsubscribe, e-mail:

Re: More abuse of coding styles...

2002-01-10 Thread Daniel Rall
Tim Vernum <[EMAIL PROTECTED]> writes: >> > public void setSomethingComplicated(Object sometingComplicateed){ >> > this.somethingComplicated = somethingComplicated; >> > } >> >> There's only possibility of problem there when you don't copy and >> paste your variable names. > > I find (subject

Re: More abuse of coding styles...

2002-01-10 Thread Peter Donald
On Thu, 10 Jan 2002 22:16, Geir Magnusson Jr. wrote: > On 1/10/02 6:11 AM, "Stephane Bailliez" <[EMAIL PROTECTED]> wrote: > >> -Original Message- > >> From: Geir Magnusson Jr. [mailto:[EMAIL PROTECTED]] > > > > [...] > > > >> Real programmers don't use compilers... > > > > It looks like th

Re: More abuse of coding styles...

2002-01-10 Thread Geir Magnusson Jr.
On 1/10/02 6:11 AM, "Stephane Bailliez" <[EMAIL PROTECTED]> wrote: >> -Original Message- >> From: Geir Magnusson Jr. [mailto:[EMAIL PROTECTED]] > [...] >> Real programmers don't use compilers... > > It looks like there were needs for some punching balls to start 2002 :-) > In 10 days the

RE: More abuse of coding styles...

2002-01-10 Thread Stephane Bailliez
> -Original Message- > From: Geir Magnusson Jr. [mailto:[EMAIL PROTECTED]] [...] > Real programmers don't use compilers... It looks like there were needs for some punching balls to start 2002 :-) In 10 days there are more messages in jakarta-general than in the last 2 months. Stephane

Re: More abuse of coding styles...

2002-01-10 Thread Peter Donald
On Thu, 10 Jan 2002 21:59, Geir Magnusson Jr. wrote: > On 1/10/02 2:54 AM, "Peter Donald" <[EMAIL PROTECTED]> wrote: > > On Thu, 10 Jan 2002 14:07, Daniel Rall wrote: > >> Ceki Glc <[EMAIL PROTECTED]> writes: > >>> People who repeatedly forget to type "this" represent a minority and > >>> should p

Re: More abuse of coding styles...

2002-01-10 Thread Geir Magnusson Jr.
On 1/10/02 2:54 AM, "Peter Donald" <[EMAIL PROTECTED]> wrote: > On Thu, 10 Jan 2002 14:07, Daniel Rall wrote: >> Ceki Glc <[EMAIL PROTECTED]> writes: >>> People who repeatedly forget to type "this" represent a minority and >>> should perhaps look to exercise a different profession. >> >> Agreed.

Re: More abuse of coding styles...

2002-01-10 Thread Peter Donald
On Thu, 10 Jan 2002 14:07, Daniel Rall wrote: > Ceki Glc <[EMAIL PROTECTED]> writes: > > People who repeatedly forget to type "this" represent a minority and > > should perhaps look to exercise a different profession. > > Agreed. I agree - using the compiler to detect errors is such a stupid idea

Re: More abuse of coding styles...

2002-01-10 Thread Ceki Gulcu
Micael, I guess my remarks on typing "this" do sound arrogant. Point well taken. Regards, Ceki --- Micael Padraig Og mac Grene <[EMAIL PROTECTED]> wrote: > At 07:07 PM 1/9/02 -0800, you wrote: > >Ceki Gülcü <[EMAIL PROTECTED]> writes: > > > > > People who repeatedly forget to type "this" > repr

Re: More abuse of coding styles...

2002-01-09 Thread Micael Padraig Og mac Grene
At 07:07 PM 1/9/02 -0800, you wrote: >Ceki Gülcü <[EMAIL PROTECTED]> writes: > > > People who repeatedly forget to type "this" represent a minority and > > should perhaps look to exercise a different profession. > >Agreed. > > > The problem with > > > > public void setSomething(Object something){

RE: More abuse of coding styles...

2002-01-09 Thread Tim Vernum
> > public void setSomethingComplicated(Object sometingComplicateed){ > > this.somethingComplicated = somethingComplicated; > > } > > There's only possibility of problem there when you don't copy and > paste your variable names. I find (subjectively) that if you are a reasonable typer, then

Re: More abuse of coding styles...

2002-01-09 Thread Daniel Rall
Ceki Gülcü <[EMAIL PROTECTED]> writes: > People who repeatedly forget to type "this" represent a minority and > should perhaps look to exercise a different profession. Agreed. > The problem with > > public void setSomething(Object something){ > this.something = something; > } > > is > > pu

Re: More abuse of coding styles...

2002-01-09 Thread Daniel Rall
Stephane Bailliez <[EMAIL PROTECTED]> writes: > I'm the lucky user of Intellij IDEA which has a code layout feature that > allows to reformat the whole code in a snap w/ specific code style, > reorganize imports and remove useless one. I'm using this extensively and > this is damn cool. Shocking

Re: More abuse of coding styles...

2002-01-09 Thread Daniel Rall
o: Jakarta General List <[EMAIL PROTECTED]> >> Subject: Re: More abuse of coding styles... >> >> Rule #1 from The Elements of Java Style is: >> >> Adhere to the style of the original >> > > IIRC, we actually had this rule explicitly in the JServ code

Re: More abuse of coding styles...

2002-01-06 Thread Peter Donald
On Sun, 6 Jan 2002 15:22, Steve Downey wrote: > > -Original Message- > > From: Peter Donald [mailto:[EMAIL PROTECTED]] > > Sent: Saturday, January 05, 2002 9:53 PM > > To: Jakarta General List > > Subject: Re: More abuse of coding styles... > > > &

Re: More abuse of coding styles...

2002-01-05 Thread Geir Magnusson Jr.
On 1/5/02 11:22 PM, "Steve Downey" <[EMAIL PROTECTED]> wrote: > > In what way does it make it acceptable for them to write poor code? For > example, the JSP spec reserves _jsp, jsp, _jspx and jspx for identifiers > used in the classes generated by the page compiler. What other way do you > propos

RE: More abuse of coding styles...

2002-01-05 Thread Steve Downey
> -Original Message- > From: Peter Donald [mailto:[EMAIL PROTECTED]] > Sent: Saturday, January 05, 2002 9:53 PM > To: Jakarta General List > Subject: Re: More abuse of coding styles... > > > On Sun, 6 Jan 2002 11:26, Steve Downey wrote: > > Your javac has a

Re: More abuse of coding styles...

2002-01-05 Thread Peter Donald
On Sun, 6 Jan 2002 11:26, Steve Downey wrote: > Your javac has a configuration setting for the class names of inner > classes? Although the inner classes use a $ embedded, rather than as a lead > character. It's a similar issue. And whats that got to do with the price of fish? $ is not valid in

RE: More abuse of coding styles...

2002-01-05 Thread Steve Downey
-Original Message- > From: Peter Donald [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 04, 2002 8:15 PM > To: Jakarta General List > Subject: Re: More abuse of coding styles... > > > On Sat, 5 Jan 2002 03:19, Steve Downey wrote: > > > > <http://jav

Re: More abuse of coding styles...

2002-01-04 Thread Ted Husted
OTECTED]> > > Reply-To: Jakarta General List <[EMAIL PROTECTED]> > > To: Jakarta General List <[EMAIL PROTECTED]> > > Subject: Re: More abuse of coding styles... > > > > Rule #1 from The Elements of Java Style is: > > > > Adhere to

Re: More abuse of coding styles...

2002-01-04 Thread Craig R. McClanahan
On Fri, 4 Jan 2002, Erik Hatcher wrote: > Date: Fri, 4 Jan 2002 19:27:52 -0500 > From: Erik Hatcher <[EMAIL PROTECTED]> > Reply-To: Jakarta General List <[EMAIL PROTECTED]> > To: Jakarta General List <[EMAIL PROTECTED]> > Subject: Re: More abuse of codi

Re: More abuse of coding styles...

2002-01-04 Thread Peter Donald
On Sat, 5 Jan 2002 03:19, Steve Downey wrote: > > > > > > | "Variable names should not start with underscore _ or dollar sign $ > > | characters, even though both are allowed." > > > > The _instanceVariable and also the __stati

Re: More abuse of coding styles...

2002-01-04 Thread Erik Hatcher
t;[EMAIL PROTECTED]> Sent: Friday, January 04, 2002 12:49 PM Subject: Re: More abuse of coding styles... > i'd just like to point out that i didn't write that bit of code (but > neither did i correct it). > > personally speaking, i'm not going to risk having patches ve

Re: More abuse of coding styles...

2002-01-04 Thread Ceki Gülcü
At 10:35 04.01.2002 -0800, you wrote: >on 1/4/02 3:28 AM, "Ceki Gülcü" <[EMAIL PROTECTED]> wrote: > >> All Java Language source code in the repository must be written in >> conformance to the "Code Conventions for the Java Programming Language >> as published by Sun." However, some projects may de

Re: More abuse of coding styles...

2002-01-04 Thread Jon Scott Stevens
on 1/4/02 8:05 AM, "Bob Jamison" <[EMAIL PROTECTED]> wrote: > jakarta.apache.org != Sun That isn't the comparison that we are making here. -jon -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: More abuse of coding styles...

2002-01-04 Thread Jon Scott Stevens
on 1/4/02 3:28 AM, "Ceki Gülcü" <[EMAIL PROTECTED]> wrote: > All Java Language source code in the repository must be written in > conformance to the "Code Conventions for the Java Programming Language > as published by Sun." However, some projects may decide to override > these defaults and use t

RE: Re: More abuse of coding styles...

2002-01-04 Thread Edson Alves Pereira
Why not you create a page that show the code style that you want? I think that: if ( showtime ) { ... } Is a valid statement and besides there are a lot of projects from Jakarta, SourceForge and Companies around the world that use this. Turbine has a page that show it´s code s

Re: More abuse of coding styles...

2002-01-04 Thread robert burrell donkin
i'd just like to point out that i didn't write that bit of code (but neither did i correct it). personally speaking, i'm not going to risk having patches vetoed because i try to correct the original author's coding style. any committer who has the time and energy to fight is very welcome to c

RE: More abuse of coding styles...

2002-01-04 Thread Gerhard Froehlich
Hi, >> if (something) { >> >> } >> >> >> ;) >> > >Tsk tsk. The RIGHT WAY is really >if (something) > { > statements(); > } Waah, no way dude!!! http://python.sourceforge.net/peps/pep-0007.html The C style is the only way. Don't forget, that C is the mother of all programm

RE: More abuse of coding styles...

2002-01-04 Thread Steve Downey
> | > | > > | > | "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

Re: More abuse of coding styles...

2002-01-04 Thread Bob Jamison
Jon Scott Stevens wrote: > > >"All Java Language source code in the repository must be written in >conformance to the "Code Conventions for the Java Programming Language as >published by Sun." > >-jon > "Sun" ? ;-) I thought it was agreed a long t

Re: More abuse of coding styles...

2002-01-04 Thread Berin Loritsch
Endre Stølsvik wrote: > On Thu, 3 Jan 2002, Jon Scott Stevens wrote: > > 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!).. Honestly, I don't like the underscore notation.

Re: More abuse of coding styles...

2002-01-04 Thread Arnaud Vandyck
Jon Scott Stevens <[EMAIL PROTECTED]> 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: > > R

RE: More abuse of coding styles...

2002-01-04 Thread Stephane Bailliez
> -Original Message- > From: Ceki Gülcü [mailto:[EMAIL PROTECTED]] [...] > People who repeatedly forget to type "this" represent a minority and > should perhaps look to exercise a different profession. The problem You are right, but I think you know perfectly what kind of horrors you can

Re: More abuse of coding styles...

2002-01-04 Thread Ted Husted
I agree with Jon in that when people agree to become a Committer to a subproject they agree to follow the rules of that subproject, the Jakarta project, and the Apache Software Foundation. As it stands, each subproject is entitled to document their own coding conventions. When none are specified,

Re: More abuse of coding styles...

2002-01-04 Thread Ted Husted
As a point of order: The use of "this" is recommended by the Elements of Java Style, which is cited in the Commons charter. Though, I have myself been victimized by the trap Ceki mentions. -Ted. Ceki Gülcü wrote: > People who repeatedly forget to type "this" represent a minority and > should

Re: More abuse of coding styles...

2002-01-04 Thread Ceki Gülcü
Hey Jon, It is not amazing. It is normal. The paragraph that you quoted says: All Java Language source code in the repository must be written in conformance to the "Code Conventions for the Java Programming Language as published by Sun." However, some projects may decide to override the

RE: More abuse of coding styles...

2002-01-04 Thread Ceki Gülcü
At 10:44 04.01.2002 +, you wrote: >> -Original Message- >> From: Kief Morris [mailto:[EMAIL PROTECTED]] > >> >It is one of my major source of error when not using the '_' and I >> >have seen the error several times along with variable naming >> >gymnastics to avoid the this. people wo

Re: More abuse of coding styles...

2002-01-04 Thread Geir Magnusson Jr.
On 1/4/02 5:26 AM, "Kief Morris" <[EMAIL PROTECTED]> wrote: > Stephane Bailliez typed the following on 09:42 AM 1/4/2002 + >>> We had that discussion once on Commons, and many people liked the >>> underscore convention. >> >> I can understand why: >> >> public void setSomething(Object somet

Re: More abuse of coding styles...

2002-01-04 Thread Geir Magnusson Jr.
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... > |

RE: More abuse of coding styles...

2002-01-04 Thread Stephane Bailliez
> -Original Message- > From: Kief Morris [mailto:[EMAIL PROTECTED]] > >It is one of my major source of error when not using the '_' and I > >have seen the error several times along with variable naming > >gymnastics to avoid the this. people would use aSomething or ^^^

RE: More abuse of coding styles...

2002-01-04 Thread Kief Morris
Stephane Bailliez typed the following on 09:42 AM 1/4/2002 + >> We had that discussion once on Commons, and many people liked the >> underscore convention. > >I can understand why: > >public void setSomething(Object something){ > something = something; >} > >It is one of my major source

RE: More abuse of coding styles...

2002-01-04 Thread Stephane Bailliez
> -Original Message- > From: Jeff Turner [mailto:[EMAIL PROTECTED]] [...] > We had that discussion once on Commons, and many people liked the > underscore convention. I can understand why: public void setSomething(Object something){ something = something; } It is one of my majo

Re: More abuse of coding styles...

2002-01-04 Thread Endre Stølsvik
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:

Re: More abuse of coding styles...

2002-01-03 Thread Jeff Turner
On Thu, Jan 03, 2002 at 05:54:20PM -0800, 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 PROT

More abuse of coding styles...

2002-01-03 Thread Jon Scott Stevens
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/c