Re: [io][vote] FileUtils: decision on style

2003-07-30 Thread robert burrell donkin
On Wednesday, July 30, 2003, at 06:08 PM, Gary Gregory wrote: We have here been moving away from singletons. When some logic needs to do something with one of our util classes, it does it the OO way: create and configure an object and call instance methods. When you're done, toss the object and

RE: [io][vote] FileUtils: decision on style

2003-07-30 Thread Hope, Matthew
> -Original Message- > From: David Graham [mailto:[EMAIL PROTECTED] > Sent: 30 July 2003 18:39 > To: Jakarta Commons Developers List > Subject: RE: [io][vote] FileUtils: decision on style > > > Preventing people who don't know what they are doing from ma

RE: [io][vote] FileUtils: decision on style

2003-07-30 Thread David Graham
om: Arun Thomas [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 30, 2003 09:16 > To: Jakarta Commons Developers List; [EMAIL PROTECTED] > Subject: RE: [io][vote] FileUtils: decision on style > > David, > > Keep in mind that the discussion is in the context of static

RE: [io][vote] FileUtils: decision on style

2003-07-30 Thread David Graham
--- "Hope, Matthew" <[EMAIL PROTECTED]> wrote: > > There's at least one person in this discussion who needs to extend the > > utils classes so it doesn't make sense to declare the classes > > final. How > > does it benefit anyone by declaring a reusable library > > class/method final? > > Preve

RE: [io][vote] FileUtils: decision on style

2003-07-30 Thread Gary Gregory
03 09:16 To: Jakarta Commons Developers List; [EMAIL PROTECTED] Subject: RE: [io][vote] FileUtils: decision on style David, Keep in mind that the discussion is in the context of static methods, not instance methods. Gary pointed out that there is a significant difference between instance and s

RE: [io][vote] FileUtils: decision on style

2003-07-30 Thread Hope, Matthew
> There's at least one person in this discussion who needs to extend the > utils classes so it doesn't make sense to declare the classes > final. How > does it benefit anyone by declaring a reusable library > class/method final? Preventing people who don't know what they are doing from making m

RE: [io][vote] FileUtils: decision on style

2003-07-30 Thread David Graham
David > > -AMT > > -Original Message- > From: David Graham [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 29, 2003 6:48 PM > To: Jakarta Commons Developers List > Subject: RE: [io][vote] FileUtils: decision on style > > > --- Neil O'Toole <[EMAIL

RE: [io][vote] FileUtils: decision on style

2003-07-30 Thread Craig R. McClanahan
On Wed, 30 Jul 2003, Arun Thomas wrote: > However, while we're discussing only classes which package together > static methods - does allowing extensibility make sense? That's exactly the position beanutils was in (BeanUtils, PropertyUtils, and ConvertUtils were 100% static utility methods). W

RE: [io][vote] FileUtils: decision on style

2003-07-30 Thread Arun Thomas
mmons Developers List Subject: RE: [io][vote] FileUtils: decision on style --- Neil O'Toole <[EMAIL PROTECTED]> wrote: > > At first glance I don't really see the `need to override behavior' > > argument -- if a user doesn't like the way a static method is > >

Re: [io][vote] FileUtils: decision on style

2003-07-29 Thread __matthewHawthorne
If others can't deal with private constructors, then I guess there isn't a choice. But in theory, I think protected constructors would be the best since they would allow the constructor to be accessible to subclasses, if necessary. On Tue, 2003-07-29 at 05:53, Jeremias Maerki wrote: > On 29.

RE: [io][vote] FileUtils: decision on style

2003-07-29 Thread David Graham
> > this > > topic? At first glance I don't really see the `need to override > > behavior' > > argument -- if a user doesn't like the way a static method is > > implemented, can't they just implement their own in a separate class? > > > >

RE: [io][vote] FileUtils: decision on style

2003-07-29 Thread Arun Thomas
egation to the original method where appropriate. Cheers, -AMT -Original Message- From: Neil O'Toole [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 3:16 PM To: Jakarta Commons Developers List Subject: RE: [io][vote] FileUtils: decision on style > At first glance I do

RE: [io][vote] FileUtils: decision on style

2003-07-29 Thread Arun Thomas
CTED] Sent: Tuesday, July 29, 2003 12:30 PM To: Jakarta Commons Developers List Subject: RE: [io][vote] FileUtils: decision on style --- Arun Thomas <[EMAIL PROTECTED]> wrote: > Hmmm From the last three notes - I think I understand clearly the > motivation for requiring the

RE: [io][vote] FileUtils: decision on style

2003-07-29 Thread Neil O'Toole
digging on > this > topic? At first glance I don't really see the `need to override > behavior' > argument -- if a user doesn't like the way a static method is > implemented, can't they just implement their own in a separate class? > > michael

RE: [io][vote] FileUtils: decision on style

2003-07-29 Thread David Graham
--- Henri Yandell <[EMAIL PROTECTED]> wrote: > > > On Tue, 29 Jul 2003, David Graham wrote: > > > --- Arun Thomas <[EMAIL PROTECTED]> wrote: > > > Hmmm From the last three notes - I think I understand clearly > the > > > motivation for requiring the public no-arg constructor, but I still >

RE: [io][vote] FileUtils: decision on style

2003-07-29 Thread David Graham
ke. David > >michael > > > > > > David > > > > > > > > Cheers, > > > -AMT > > > > > > -Original Message- > > > From: David Graham [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, July 29,

RE: [io][vote] FileUtils: decision on style

2003-07-29 Thread Michael Heuer
hael > > David > > > > > Cheers, > > -AMT > > > > -Original Message----- > > From: David Graham [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, July 29, 2003 11:44 AM > > To: Jakarta Commons Developers List > > Subject: RE: [io][vote] FileUti

RE: [io][vote] FileUtils: decision on style

2003-07-29 Thread Henri Yandell
On Tue, 29 Jul 2003, David Graham wrote: > --- Arun Thomas <[EMAIL PROTECTED]> wrote: > > Hmmm From the last three notes - I think I understand clearly the > > motivation for requiring the public no-arg constructor, but I still > > don't understand the reasoning behind the need for avoiding

RE: [io][vote] FileUtils: decision on style

2003-07-29 Thread David Graham
ent: Tuesday, July 29, 2003 11:44 AM > To: Jakarta Commons Developers List > Subject: RE: [io][vote] FileUtils: decision on style > > > --- Arun Thomas <[EMAIL PROTECTED]> wrote: > > Can someone expound on this "lesson"? The Developers Guide mentions > >

RE: [io][vote] FileUtils: decision on style

2003-07-29 Thread Arun Thomas
tatic methods? Cheers, -AMT -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 11:44 AM To: Jakarta Commons Developers List Subject: RE: [io][vote] FileUtils: decision on style --- Arun Thomas <[EMAIL PROTECTED]> wrote: > Can someone e

Re: [io][vote] FileUtils: decision on style

2003-07-29 Thread Henri Yandell
On Tue, 29 Jul 2003 [EMAIL PROTECTED] wrote: > Hey thanks for the heads up! > > being one of the original authors/contributor of this class, I do > have some comments (mostly in favour of your proposal)... > > 1rst: you seem to have added a private constructor to prevent > instantiation, which h

Re: [io][vote] FileUtils: decision on style

2003-07-29 Thread Jeremias Maerki
On 29.07.2003 10:20:00 Christoph.Reck wrote: > Hey thanks for the heads up! > > being one of the original authors/contributor of this class, I do > have some comments (mostly in favour of your proposal)... > > 1rst: you seem to have added a private constructor to prevent > instantiation, which h

Re: [io][vote] FileUtils: decision on style

2003-07-29 Thread Christoph . Reck
Hey thanks for the heads up! being one of the original authors/contributor of this class, I do have some comments (mostly in favour of your proposal)... 1rst: you seem to have added a private constructor to prevent instantiation, which hurts usage as in velocity, where you need an instance of a cl

[io][vote] FileUtils: decision on style

2003-07-28 Thread Jeremias Maerki
In FileUtils we currently have many duplicate method due to merging classes from several sources. For example, there is a extension(String) and getExtension(String) method. (Ironically, both have the same bug: "/tmp/foo.bar/README" evaluates to "bar/README".) So, we have to decide how these met