On 01/09/2013 04:39 PM, H. S. Teoh wrote: > 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!
I suppose it could have just had some default value, especially since it's of such minor importance. See, that's what happens when you dive in and just start coding instead of thinking first. Then again, when you think first around here, it's too easy to find reasons not to start coding in the first place. -- D. Michael McIntyre ------------------------------------------------------------------------------ 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
