On Tue, Nov 29, 2016 at 5:19 AM, Eric Barnhill <ericbarnh...@gmail.com>
wrote:

> I thought it would be good to raise a structural question here rather than
> in the commons-complex JIRA.
>
> The Complex library has multiple dependencies on three packages:
>
> -- commons-math base classes (e.g. Field et al.)

-- commons-math exceptions
>

I have never been a fan of packages that include all exceptions. It does
not make sense to me. If an exception is only used in package foo, it
should be defined in that package.

If it is used in foo.one and foo.bar, maybe it belongs in foo. YMMV. But
kitchen-sink package for all exceptions does not seem like good design to
me.

2c,
Gary


> -- commons-math util (numerous classes)
>
> Otherwise it is self-contained. (Some tests within the  QuaternionTest
> class use a large chain of dependencies from the geometry package, so I
> think it is best to simply remove the geometry-dependent tests until
> someone arrives to maintain that library.)
>
> This suggests to me that, if we were to continue with some kind of
> math-utils base class, it should consist of these three current packages:
> the base classes, util and exception. It might in fact make sense to spin
> out this base library first (which I am happy to oversee) then return to
> finishing out the independent complex library with only commons-math-util
> as dependency. Would this also be compatible with the current trajectory of
> RNG?
>
> Eric
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition
<https://www.amazon.com/gp/product/1617290459/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1617290459&linkCode=as2&tag=garygregory-20&linkId=cadb800f39946ec62ea2b1af9fe6a2b8>

<http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1617290459>
JUnit in Action, Second Edition
<https://www.amazon.com/gp/product/1935182021/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182021&linkCode=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de418%22>

<http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182021>
Spring Batch in Action
<https://www.amazon.com/gp/product/1935182951/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951&linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B%7Blink_id%7D%7D%22%3ESpring+Batch+in+Action>
<http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182951>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to