[squeak-dev] FileList2>listForPattern(s): and MessageSend abuse

tim Rowledge tim at rowledge.org
Fri Oct 6 20:14:25 UTC 2017

A scary example of how code can become awful. Look at TheWorldMenu>loadProject. It has ended up using a generic directory chooser dialogue *plus* a rather ugly StandardFileMenu to choose a project file.
There is a specific project loader provided by FileList2 but just try
`FileList2 modalFolderSelectorForProjectLoad` 
*after* you have put on strong sunglasses. Maybe the current state is preferable after all...
`FileList2 modalFolderSelectorForProject: Project current`
is similarly a tad ‘bright’.

tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Useful random insult:- Solid concrete from the eyebrows backwards.

More information about the Squeak-dev mailing list