You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by robert burrell donkin <ro...@mac.com> on 2001/08/27 16:55:06 UTC

does org.apache.velocity.util.StringUtils have a future? (Was StringUtils.removeUnderScores() bug?)

does org.apache.velocity.util.StringUtil have a future?

IMHO java documentation telling people to write their own replacement 
methods implies that StringUtils is pretty much dead.


On Saturday, August 25, 2001, at 06:24 PM, Jason van Zyl wrote:

> On 8/25/01 1:21 PM, "Daniel Rall" <dl...@finemaltcoding.com> wrote:
>
>> robert burrell donkin <ro...@mac.com> writes:
>>
>>> sorry if i'm labouring the point - but why does the deprecation
>>> message refer people to a different class when there are methods in
>>> StringUtils that already do what's wanted?
>>
>> I would prefer people to use that other package.  IMO, Velocity should
>> not be a repository housing code available elsewhere.
>
> I agree.

all the code in StringUtils is either available elsewhere or it's very 
easy to write (which is basically what the deprecation message tells 
people to do).

i don't have any particular problem freezing StingUtil's - it's just that 
i'd prefer to know so i don't waste my time preparing patches.

- robert

Re: does org.apache.velocity.util.StringUtils have a future?(WasStringUtils.removeUnderScores() bug?)

Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
Daniel Rall wrote:
> 
> "Geir Magnusson Jr." <ge...@optonline.net> writes:
> 
> > I think that we should deprecate them out - I don't think they belong
> > here anyway, especially now that we have a useful home in commons.  that
> > said, I know Texen depends on them, and we won't screw Texen users -
> > maybe we deprecate, migrate to Commons, and then just include the
> > commons tools in the vel.jar, like we do with log and oro.
> 
> If you deprecate, I'll make the necessary changes to Texen.

I guess that's the corollary to the line in "Field of Dreams"?  "If you
build it, they will come..."

geir

-- 
Geir Magnusson Jr.                           geirm@optonline.net
System and Software Consulting
Developing for the web?  See http://jakarta.apache.org/velocity/
Well done is better than well said - New England Proverb

Re: does org.apache.velocity.util.StringUtils have a future? (WasStringUtils.removeUnderScores() bug?)

Posted by Daniel Rall <dl...@finemaltcoding.com>.
"Geir Magnusson Jr." <ge...@optonline.net> writes:

> I think that we should deprecate them out - I don't think they belong
> here anyway, especially now that we have a useful home in commons.  that
> said, I know Texen depends on them, and we won't screw Texen users -
> maybe we deprecate, migrate to Commons, and then just include the
> commons tools in the vel.jar, like we do with log and oro.

If you deprecate, I'll make the necessary changes to Texen.

Re: does org.apache.velocity.util.StringUtils have a future? (WasStringUtils.removeUnderScores() bug?)

Posted by Jason van Zyl <jv...@apache.org>.
On 8/27/01 11:31 AM, "Geir Magnusson Jr." <ge...@optonline.net> wrote:

> robert burrell donkin wrote:
>> 
>> does org.apache.velocity.util.StringUtil have a future?
>> 
>> IMHO java documentation telling people to write their own replacement
>> methods implies that StringUtils is pretty much dead.
>> 
>> On Saturday, August 25, 2001, at 06:24 PM, Jason van Zyl wrote:
>> 
>>> On 8/25/01 1:21 PM, "Daniel Rall" <dl...@finemaltcoding.com> wrote:
>>> 
>>>> robert burrell donkin <ro...@mac.com> writes:
>>>> 
>>>>> sorry if i'm labouring the point - but why does the deprecation
>>>>> message refer people to a different class when there are methods in
>>>>> StringUtils that already do what's wanted?
>>>> 
>>>> I would prefer people to use that other package.  IMO, Velocity should
>>>> not be a repository housing code available elsewhere.
>>> 
>>> I agree.
>> 
>> all the code in StringUtils is either available elsewhere or it's very
>> easy to write (which is basically what the deprecation message tells
>> people to do).
>> 
>> i don't have any particular problem freezing StingUtil's - it's just that
>> i'd prefer to know so i don't waste my time preparing patches.
> 
> This is the problem as I see it - and I am not really focused in this
> area -
> 
> I think that we should deprecate them out - I don't think they belong
> here anyway, especially now that we have a useful home in commons.  that
> said, I know Texen depends on them, and we won't screw Texen users -
> maybe we deprecate, migrate to Commons, and then just include the
> commons tools in the vel.jar, like we do with log and oro.

I'm all for using the commons, but I think we should stop rolling other jars
into the vel jar.
 
> geir

-- 

jvz.

Jason van Zyl

http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons



Re: does org.apache.velocity.util.StringUtils have a future? (WasStringUtils.removeUnderScores() bug?)

Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
robert burrell donkin wrote:
> 
> does org.apache.velocity.util.StringUtil have a future?
> 
> IMHO java documentation telling people to write their own replacement
> methods implies that StringUtils is pretty much dead.
> 
> On Saturday, August 25, 2001, at 06:24 PM, Jason van Zyl wrote:
> 
> > On 8/25/01 1:21 PM, "Daniel Rall" <dl...@finemaltcoding.com> wrote:
> >
> >> robert burrell donkin <ro...@mac.com> writes:
> >>
> >>> sorry if i'm labouring the point - but why does the deprecation
> >>> message refer people to a different class when there are methods in
> >>> StringUtils that already do what's wanted?
> >>
> >> I would prefer people to use that other package.  IMO, Velocity should
> >> not be a repository housing code available elsewhere.
> >
> > I agree.
> 
> all the code in StringUtils is either available elsewhere or it's very
> easy to write (which is basically what the deprecation message tells
> people to do).
> 
> i don't have any particular problem freezing StingUtil's - it's just that
> i'd prefer to know so i don't waste my time preparing patches.

This is the problem as I see it - and I am not really focused in this
area -

I think that we should deprecate them out - I don't think they belong
here anyway, especially now that we have a useful home in commons.  that
said, I know Texen depends on them, and we won't screw Texen users -
maybe we deprecate, migrate to Commons, and then just include the
commons tools in the vel.jar, like we do with log and oro.

geir

-- 
Geir Magnusson Jr.                           geirm@optonline.net
System and Software Consulting
Developing for the web?  See http://jakarta.apache.org/velocity/
Well done is better than well said - New England Proverb

Re: does org.apache.velocity.util.StringUtils have a future? (Was StringUtils.removeUnderScores() bug?)

Posted by Jon Stevens <jo...@latchkey.com>.
on 8/27/01 7:55 AM, "robert burrell donkin" <ro...@mac.com> wrote:

> does org.apache.velocity.util.StringUtil have a future?

I would say:

No.

We should be using the commons-util package.

-jon