flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael A. Labriola" <labri...@digitalprimates.net>
Subject RE: Overly large classes (was Flex incubation on Apache as Opensource)
Date Mon, 16 Jan 2012 02:07:38 GMT
Sorry Jeffry,

Disagree with you there. Spark is far from perfect but as someone who also develops components
every day I much prefer to problems of Spark over the lets-do-everything-through-inheritance
mx world.


-----Original Message-----
From: Jeffry Houser [mailto:jeffry@dot-com-it.com]
Sent: Sunday, January 15, 2012 3:55 PM
To: flex-dev@incubator.apache.org
Subject: Re: Overly large classes (was Flex incubation on Apache as Opensource)

On 1/15/2012 4:01 PM, David Arno wrote:
> I'll
> comment on List.
> The class does many things: it's a container; it displays the contents
> of a data provider; it supports scrolling; it supports item renderers;
> it supports dragging&  dropping; it supports single selections; it
> supports multiple selections; it supports item editing etc. Classes
> should be single purpose. Therefore the List class should be a
> compositional class that is composed of IDataProviderSupport,
> IScrollSupport, IDragAndDropSupport etc and the functionality that is
> currently in List should be in classes that implement those
> interfaces. That way, the currently overly-large, over-complex,
> unfocused class could be broken up into a large number of properly focused, smaller classes.

  That is kind of what the Spark Architecture did.  And the end result is that development
is more complicated to extending and modifying things [from the perspective of a component
developer] is a complete nightmare.  It's much worse than the "too many private variables"
problem that existed in the Halo architecture.

  For the sake of simplicity in development; wouldn't the MX approach of having a single class
to represent the List be better?

  In my view Spark favored flexibility over simplicity.

Jeffry Houser
Technical Entrepreneur
UI Flex Components: Tested! Supported! Ready!
Part of the DotComIt Brain Trust

Notice: This transmission is intended only for the use of the individual or entity to which
it is addressed and may contain information that is privileged or confidential. Any dissemination,
distribution or copying of this transmission by anyone other than the intended recipient is
strictly prohibited. If you have received this transmission in error, please notify the sender
immediately by e-mail or telephone and delete the original transmission. Thank you.

View raw message