You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Gary Gregory <gg...@seagullsoftware.com> on 2004/07/27 23:20:07 UTC

[lang] ArrayUtils monster file

Hi there,

ArrayUtils is currently a 3800+ line monster file. I am working on
adding "add" and "addAll" methods for 2.1 and am wondering what folks
would think of a separate class for these ops: ArrayAddUtils?
AddArrayUtils?

Thanks,
Gary


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: [lang] ArrayUtils monster file

Posted by "matthew.hawthorne" <ma...@apache.org>.
Gary Gregory wrote:
  > ArrayUtils is currently a 3800+ line monster file. I am working on
> adding "add" and "addAll" methods for 2.1 and am wondering what folks
> would think of a separate class for these ops: ArrayAddUtils?
> AddArrayUtils?

Sounds like a good idea, depending on how many methods you're adding.

That's an incredibly large class, but all of the methods seem somewhat 
simple,
so I could see arguments for keeping it together vs. breaking things apart.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: [lang] ArrayUtils monster file

Posted by Martin Cooper <mf...@gmail.com>.
We should think about this from the client's perspective. Clients
generally don't care how big the underlying implementation is. What
they care about is having a meaningful API to call. If we start
changing the client API simply because we think the implementation is
getting too big, well, then I think we have bigger problems... ;-)

--
Martin Cooper


On Tue, 27 Jul 2004 17:20:07 -0400, Gary Gregory
<gg...@seagullsoftware.com> wrote:
> Hi there,
> 
> ArrayUtils is currently a 3800+ line monster file. I am working on
> adding "add" and "addAll" methods for 2.1 and am wondering what folks
> would think of a separate class for these ops: ArrayAddUtils?
> AddArrayUtils?
> 
> Thanks,
> Gary
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org