cvs commit: jakarta-commons/lang DEVELOPERS-GUIDE.html

2004-07-06 Thread bayard
bayard 2004/07/06 22:08:06 Modified:lang DEVELOPERS-GUIDE.html Log: added the view that we should not use boolean arguments to overload methods of similar signature Revision ChangesPath 1.8 +2 -1 jakarta-commons/lang/DEVELOPERS-GUIDE.html Index

cvs commit: jakarta-commons/lang DEVELOPERS-GUIDE.html

2003-08-14 Thread bayard
bayard 2003/08/06 20:14:27 Modified:lang DEVELOPERS-GUIDE.html Log: Reworded the comment on quiet methods returning Null patterns. Revision ChangesPath 1.4 +2 -3 jakarta-commons/lang/DEVELOPERS-GUIDE.html Index: DEVELOPERS-GUIDE.html

cvs commit: jakarta-commons/lang DEVELOPERS-GUIDE.html

2003-08-14 Thread bayard
bayard 2003/08/13 17:08:14 Modified:lang DEVELOPERS-GUIDE.html Log: Added note on Language variant to use. Revision ChangesPath 1.5 +4 -1 jakarta-commons/lang/DEVELOPERS-GUIDE.html Index: DEVELOPERS-GUIDE.html

Re: cvs commit: jakarta-commons/lang DEVELOPERS-GUIDE.html

2003-08-14 Thread Phil Steitz
eptions. Null inputs should either be handled without exception or an IllegalArgumentException should be thrown instead Phil --- [EMAIL PROTECTED] wrote: > bayard 2003/08/06 20:14:27 > > Modified:lang DEVELOPERS-GUIDE.html > Log: > Reworded the comment on quiet me

RE: cvs commit: jakarta-commons/lang DEVELOPERS-GUIDE.html

2003-08-14 Thread Chuck Daniels
> -Original Message- > From: Phil Steitz [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 07, 2003 4:11 PM > To: Jakarta Commons Developers List > Subject: Re: cvs commit: jakarta-commons/lang DEVELOPERS-GUIDE.html > > > It's hard to express exactly what

RE: [lang] DEVELOPERS-GUIDE.html

2003-08-04 Thread Arun Thomas
Chuck Daniels [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 5:37 PM To: Jakarta Commons Developers List Subject: RE: [lang] DEVELOPERS-GUIDE.html Thanks for your kind reply, Stephen. After reading the thread on [io][vote] FileUtils: decision on style, I can see where the reasoning co

RE: [lang] DEVELOPERS-GUIDE.html

2003-08-01 Thread Chuck Daniels
ant compromise due to inherent limitations of the Java language? Thanks again, Chuck > -Original Message- > From: Stephen Colebourne [mailto:[EMAIL PROTECTED] > Sent: Saturday, August 02, 2003 10:07 AM > To: Jakarta Commons Developers List > Subject: Re: [lang] DEVELOPERS-GUIDE.html

Re: [lang] DEVELOPERS-GUIDE.html

2003-08-01 Thread Stephen Colebourne
> more than save you an import statement. > > Cheers, > Chuck > > > -Original Message- > > From: Henri Yandell [mailto:[EMAIL PROTECTED] > > Sent: Thursday, July 31, 2003 9:58 AM > > To: Jakarta Commons Developers List > > Subject: RE: [lang]

RE: [lang] DEVELOPERS-GUIDE.html

2003-08-01 Thread Chuck Daniels
ts? I also agree with Arun that making a "utility" class non-final does little more than save you an import statement. Cheers, Chuck > -Original Message- > From: Henri Yandell [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2003 9:58 AM > To: Jakarta Commons

RE: [lang] DEVELOPERS-GUIDE.html

2003-07-30 Thread David Graham
--- Henri Yandell <[EMAIL PROTECTED]> wrote: > > I've added: > > the class will not be final > methods should generally be 'nice' and 'quiet'. That is, they > should > suppress Exceptions when sensible. This sounds fairly dangerous. Methods should always throw appropriate exceptions and never

RE: [lang] DEVELOPERS-GUIDE.html

2003-07-30 Thread Henri Yandell
I've added: the class will not be final methods should generally be 'nice' and 'quiet'. That is, they should suppress Exceptions when sensible. as rules for XxxUtils and also: Exception throwing When throwing an exception to indicate a bad argument, always throw IllegalArgumentException, even

cvs commit: jakarta-commons/lang DEVELOPERS-GUIDE.html

2003-07-30 Thread bayard
bayard 2003/07/30 16:58:36 Modified:lang DEVELOPERS-GUIDE.html Log: Added note that IllegalArgumentException should be thrown when a bad argument of 'null' is passed in and not NullPointerException. Also a note that XxxUtils classes should suppress Excep

cvs commit: jakarta-commons/lang DEVELOPERS-GUIDE.html

2003-07-30 Thread bayard
bayard 2003/07/30 16:54:33 Modified:lang DEVELOPERS-GUIDE.html Log: Added note that XxxUtils classes are not to be final. Revision ChangesPath 1.2 +2 -1 jakarta-commons/lang/DEVELOPERS-GUIDE.html Index: DEVELOPERS-GUIDE.html

RE: [lang] DEVELOPERS-GUIDE.html

2003-07-30 Thread Gary Gregory
Sent: Wednesday, July 30, 2003 01:08 To: 'Jakarta Commons Developers List' Subject: RE: [lang] DEVELOPERS-GUIDE.html It's worth noting that of the 12 people* I have posed this question to only one got it right. Making the utility class final does prevent confusion (and viciously har

RE: [lang] DEVELOPERS-GUIDE.html

2003-07-30 Thread Micael
User... *all with min 3 months java knowledge some considered themselves excellent java developers Matt > -Original Message- > From: Gary Gregory [mailto:[EMAIL PROTECTED] > Sent: 29 July 2003 23:01 > To: 'Jakarta Commons Developers List' > Subject: RE: [lang] DEVEL

Re: [lang] DEVELOPERS-GUIDE.html

2003-07-29 Thread Craig R. McClanahan
> > > > > class SuperC extends Object { > > > > static String hi() { > > > > return "I am Super"; > > > > } > > > > } > > > > > > > > public class TestSuperStatic { > > > > > > > >

RE: [lang] DEVELOPERS-GUIDE.html

2003-07-29 Thread Arun Thomas
? -AMT -Original Message- From: Stephen Colebourne [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 2:07 PM To: Jakarta Commons Developers List Subject: Re: [lang] DEVELOPERS-GUIDE.html Because I want to create a subclass of StringUtils. Use case: I curently have a string utility

Re: [lang] DEVELOPERS-GUIDE.html

2003-07-29 Thread Stephen Colebourne
ubC(); > > > SuperC c = b; > > > System.out.println(a.hi() + ", " + a.getClass()); > > > System.out.println(b.hi() + ", " + b.getClass()); > > > System.out.println(c.hi() + ", " + c.getClass()); > > > } > &g

RE: [lang] DEVELOPERS-GUIDE.html

2003-07-29 Thread Michael Heuer
SuperC c = b; > > System.out.println(a.hi() + ", " + a.getClass()); > > System.out.println(b.hi() + ", " + b.getClass()); > > System.out.println(c.hi() + ", " + c.getClass()); > > } > > > >

RE: [lang] DEVELOPERS-GUIDE.html

2003-07-29 Thread Henri Yandell
ystem.out.println(c.hi() + ", " + c.getClass()); > } > > } > > Can you guess what gets printed out? :-) > > (and no cheating by running the code!) > > Gary > > -Original Message- > From: Stephen Colebourne [mailto:[EMAIL PROTECTED] > Sent: Tuesday, Ju

RE: [lang] DEVELOPERS-GUIDE.html

2003-07-29 Thread Gary Gregory
PROTECTED] Sent: Tuesday, July 29, 2003 14:30 To: Jakarta Commons Developers List Subject: Re: [lang] DEVELOPERS-GUIDE.html In this use case, everybody uses UString, so you can effectively override. If you code the same method in the 'subclass', and refer to it using the subclass cl

Re: [lang] DEVELOPERS-GUIDE.html

2003-07-29 Thread Stephen Colebourne
get lots of extra methods for free) > But I can only do that if StringUtils is not final. > > Stephen > > > - Original Message - > From: "Henri Yandell" <[EMAIL PROTECTED]> > To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]> &g

RE: [lang] DEVELOPERS-GUIDE.html

2003-07-29 Thread Gary Gregory
ls is not final. Stephen - Original Message - From: "Henri Yandell" <[EMAIL PROTECTED]> To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]> Sent: Tuesday, July 29, 2003 7:46 PM Subject: Re: [lang] DEVELOPERS-GUIDE.html > > Question just came up

Re: [lang] DEVELOPERS-GUIDE.html

2003-07-29 Thread Stephen Colebourne
ephen - Original Message - From: "Henri Yandell" <[EMAIL PROTECTED]> To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]> Sent: Tuesday, July 29, 2003 7:46 PM Subject: Re: [lang] DEVELOPERS-GUIDE.html > > Question just came up on [io]. > > W

Re: [lang] DEVELOPERS-GUIDE.html

2003-07-29 Thread scolebourne
Plus1 Stephen > from:Henri Yandell <[EMAIL PROTECTED]> > date:Tue, 29 Jul 2003 14:00:23 > to: [EMAIL PROTECTED] > subject: Re: [lang] DEVELOPERS-GUIDE.html > > > Just noticed that DEVELOPERS-GUIDE.html doesn't mention whether our > XxxUtil

[lang] DEVELOPERS-GUIDE.html

2003-07-29 Thread Henri Yandell
Just noticed that DEVELOPERS-GUIDE.html doesn't mention whether our XxxUtils class should be final or not. I'm pretty sure we ended up making them not final. Anyone object to this before I add a line to the guide? Hen - To unsu