On Wed, Jan 09, 2013 at 04:28:21PM -0500, D. Michael McIntyre wrote:
> On 01/09/2013 01:00 PM, H. S. Teoh wrote:
> 
> > Hmm, that's a bit disconcerting. (If you'll excuse the pun.) Why
> > does such a small change require changing stuff in so many places?
> 
> The leg bone is connected to the thigh bone...
> 
> The new field has to be owned by Track, so everything that ever
> creates a Track has to be modified.  That's 12 files.  That's just the
> base layer of creating the new thing.  Working it up all the way to
> the level of user interaction may involve at least that many or more
> files before it's all said and done.  My original estimate was 30, and
> that's about right.

Hmph. I didn't look at the code, but it looks like the Track constructor
has too many parameters. Why can't the new field be just set to some
default value?  Having too many ctor parameters is just asking for
trouble, because everytime you change anything, you pretty much have to
update the entire codebase. Which defeats the purpose of using OO in the
first place!


> Thirty places to make stupid typos and introduce bugs, and I surely
> will.  It's going to take a lot longer than six minutes, but it will
> probably take less time than continuing to pursue the magic mind
> reading algorithm.

Last I heard, the researchers who started working on mind-reading algos
in the early 70's are still working on it. ;-) There were rumours that
an early prototype was leaked out, but all followup research eventually
led only to board games. :-P


> Software is all about such compromises.
[...]

Isn't that true, now.


T

-- 
Being able to learn is a great learning; being able to unlearn is a greater 
learning.

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
Rosegarden-user mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

Reply via email to