Hi Foks, TL;DR; is it a "BAD THING TO DO" to add a class side method to ProtoObject?
Now every class A to Z in the system has a built in help message:
"Smalltalk" is not a class, so figure that out later..plus packages etc.
Longer version I am going to dabble with my idea of re-working help in Smalltalk. Each Class will respond to the "help" class side method , so I figured start at the top with ProtoObject I am going to try a Visitor/Decorator pattern for every class in the system
Initially, just return the Class Comments, but with the MySoonToBeCodedVisitorClass later decorating the class comment and returning information from other sources too. BUT!!! I do not want to pollute ProtoObject if it is agains decorum. Thanks for your time |
On Mon, May 18, 2020 at 12:43 PM gettimothy via Squeak-dev <[hidden email]> wrote:
Yes.
The top is Object. ProtoObject is an implementation detail. We like to ignore it even exists.
If this is for all classes, then the natural place to put it would be the instance side of Class, since all classes are (sub)instances of Class. - Vanessa - |
In reply to this post by Squeak - Dev mailing list
Hi Timothy, It sounds like you're in an early ideation stage of your help system, which tends to be a good stage to just let your inhibitions loose and crank out a skeleton sketch of your vision, leaving details like Object or ProtoObject to be filled in later (though, I think I know what people will say). I'm more curious how you plan to structure your packages -- some kind of HelpEngine core package into which additional packages can be loaded for plugging in different content or, content-types, or, even for different presentation outputs.. Customization via loadability and unloadability for servers.. So much to consider, it should be fun! - Chris On Mon, May 18, 2020 at 2:43 PM gettimothy via Squeak-dev <[hidden email]> wrote:
|
In reply to this post by Squeak - Dev mailing list
On 19/05/20 1:13 am, gettimothy via Squeak-dev wrote:
> I am going to dabble with my idea of re-working help in Smalltalk. > > > Each Class will respond to the "help" class side method , so I > figured start at the top with ProtoObject There are already two "help" methods in Squeak: HelpBrowser new openOn: aClass This opens a window with class and method comments. It could do with some improvements (i.e. strip out place holder comments, hot link text to open class browser/hierarchy browser etc.). The help browser pops up randomly on the screen. A better place would be just below the Help button on the main docking bar. It will help draw attention to this button. The ALT/CMD-? key is currently unused. It could be used to invoke global or contextual (e.g. after a selection). There is also the contextual help TextEditor>>explain. Currently, it inserts help text in the editing pane. Instead it could use a balloon help on hover. Regards .. Subbu |
---- On Tue, 19 May 2020 07:02:58 -0400 K K Subbu <[hidden email]> wrote ---- There are already two "help" methods in Squeak: Hi, Now there are three if you want them: Doc help
all the best. ' |
Free forum by Nabble | Edit this page |