[Pharo-project] About SimpleMorphic

Douglas Brebner squeaklists at fang.demon.co.uk
Sun Nov 7 18:32:59 CET 2010


On 07/11/2010 03:17, Juan Vuletich wrote:
>
> In Pharo, this method calls #adjustLayoutBounds: (19), #layout:in: 
> (149), #layoutProportionallyIn: (10), 
> #computeCellArrangement:in:horizontal:target: (87), 
> #computeGlobalCellArrangement:in:horizontal:wrap:spacing: (31), 
> #computeCellSizes:in:horizontal: (30), 
> #computeExtraSpacing:in:horizontal:target: (136), 
> #layoutLeftToRight:in: (91), #layoutTopToBottom:in: (91), 
> #placeCells:in:horizontal:target: (70). The numbers in parenthesis are 
> the sum of the lines of code of the implementors. Total lines of code 
> for layout (taking only these most important methods) is 714. I doubt 
> there are many people who really understand all of this code.
>
> In SimpleMorphic (Cuis), this calls #layoutSubmorphsIn: (10), 
> #applyLayoutFrameIn: (11), #layout:in: (24). Total lines of code is 
> 45. I believe any smalltalker could understand these in just minutes.
>
> I hope this makes makes it clearer to you what SimpleMorphic is.
>
>

This sounds awesome, Morphics' complexity has long been a sticking point 
of mine.

Thanks for doing this :)




More information about the Pharo-project mailing list