[Cuis-dev] Renaming several fundamental Morph classes
Luciano Notarfrancesco
luchiano at gmail.com
Mon Dec 27 23:47:24 PST 2021
How about just BorderedMorph?
Also, I should mention that using “properties” turned out very useful in my
project to separate inheritance from some implementation details. I have a
“properties” instance variable in the superclass, and I use properties
instead of instance variables in most cases. This allows to use inheritance
more cleanly, without inheriting instance variables, and particular
subclasses can override replace some properties by instance variables if
desired (for example for speed). This also allows to make “abstract
classes” that are actually concrete and can be instantiated.
On Tue, 28 Dec 2021 at 6:42 AM Hilaire Fernandes via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:
> Hi,
>
> I agree BorderedBoxedMorph is a very long name...
>
> Can't we merge both BorderedBoxedMorph and BoxedMorph?
>
> After all, in Cuis most morphs defined with an extent want to have an
> optional borderline. When looking at the subclasses of KernelMorph (no
> border) there are little, and some may have useful use of a border.
>
> When reading BoxedMorph do you expect a border? Me yes.
>
> Do FramedMorph or FrameMorph suggest more the idea of box+border?
>
> This will simplify even more the hierarchy:
>
> Morph
> PlacedMorph (location) [today’s MovableMorph]
> BoxedMorph (extent, color, borderWidth, borderColor) [KernelMorph +
> WidgetMorph]
> PasteUpMorph [no change]
> WorlddMorph [no change]
> PluggableMorph [no change]
>
> PlacedMorph and BoxedMorph looks odd to me, but it may be just a cultural
> bias.
>
> Hilaire
>
>
> Le 27/12/2021 à 21:03, Jaromir Matas via Cuis-dev a écrit :
>
> Hi all,
>
>
>
> > Generally speaking, for things that will be talked about a lot, **fewer
> syllables are better**.
>
>
>
> In that case how about EdgedMorph or RimmedMorph instead of
> BorderedBoxedMorph? 😊
>
> $0.02
>
> --
> GNU Dr. Geohttp://drgeo.euhttp://blog.drgeo.eu
>
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20211228/9d8bc4e0/attachment-0001.htm>
More information about the Cuis-dev
mailing list