Re: IconFactory - utility for creating icons in Pharo
Posted by
kilon.alios on
Apr 04, 2015; 3:05pm
URL: https://forum.world.st/IconFactory-utility-for-creating-icons-in-Pharo-tp4817489p4817536.html
No really I dont get the idea, composition decomposition is the bread and butter of collection types in any language. Unless pharo has a weakness in this area that I am not aware of, in python I had never such problem. actually its a foremost reason to use them in the first place. Browsing is a limitation of the browser which does not provide a special view for variables but not that hard to amend with inspector. And I find hard to believe you prefer a ton of short methods instead one short one for returning those values.
The only reason I can think in this case of icons is that compiling a string as return value of a method to be used statically is easier/ more convenient than defining a huge collection in the initialize method.
on the other hand would not make more sense to have all this data that means nothing for the user as separate files and let them load at the startup of the image ? Its not as if anyone would bother editing those huge gibberish strings .
Thats the only way I see for avoiding long methods.
Or am I missing something here ?