octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a base class for dbleCHOL, floatCHOL etc


From: David Bateman
Subject: Re: Creating a base class for dbleCHOL, floatCHOL etc
Date: Mon, 14 Jul 2014 12:44:15 +0200


> Le 14 juil. 2014 à 00:43, Jordi Gutiérrez Hermoso <address@hidden> a écrit :
> 
>> On Sun, 2014-07-13 at 18:09 +0530, PrasannaKumar Muralidharan wrote:
>> Before changing the code I wanted to know if there was any reason
>> for doing things in the current way. I think there must be some
>> reason.
> 
> The reason is that copy-pasting code is easier and faster than writing
> abstractions that avoid code duplication. And "working" is better than
> "perfect".
> 
> I'm all in favour of doing the extra work that removes code
> duplication. If you're in the mood to do this, there are many, *many*
> places in the Octave code where it can be done.
> 
> - Jordi G. H.
> 
> 
> 

In fact for about 80% of the float code I used a cheap and nasty perl script to
write float versions from the double versions automatically. So there is a 
lottttttttt of duplication and this is probably just one small example

D.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]