commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Bowman <>
Subject Re: [math] Mutable "Vector3D"
Date Fri, 24 Apr 2009 15:09:36 GMT wrote:
> The points above are not theoretical one. Vector3D was mutable and it
> cost us weeks of works at that time to track difficult bugs in a
> complex application. This was not a simple problem of communication: I
> was involved in all teams from commons-math to high level application,
> the rest of the team was just around me and we exchanged lots of
> information. After we changed to immutable, all problems were gone and
> we didn't notice any performance drawback. In fact, another team in
> another project facing huge performances problems looked at what we
> have done and changed also their objects to immutable: they got
> significant performance improvements after that change because their
> code was copying everything beforehand and it was not needed anymore
> afterward.


The cognitive overhead of dealing with the possibility of side effects
is a serious brain drain, particularly on such a fundamental atom. 
Embrace immutability, and rejoice.

Eric Bowman
Boboco Ltd

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message