[Pharo-project] Deprecating Protocol browser
ProtocolBrowser, a subclass of MessageSet, should be deprecated. Now if the functionality is used (I never used it but I may be a non typical programmer), we could use FlatListBrowser to implement ProtocolBrowser. So let us know what you think. http://code.google.com/p/pharo/issues/detail?id=4575 Stef
"Stéphane" == Stéphane Ducasse <stephane.ducasse@inria.fr> writes:
Stéphane> ProtocolBrowser, a subclass of MessageSet, should be deprecated. Stéphane> Now if the functionality is used (I never used it but I may be Stéphane> a non typical programmer), we could use FlatListBrowser to Stéphane> implement ProtocolBrowser. If you're talking about "browse protocol" from the code browser (or a few other interfaces), I use it all the time on other people's code, because it gives me a quick overview of the full range of what the class provides. Maybe you don't work enough on other people's code? :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion
On Aug 1, 2011, at 5:44 PM, Randal L. Schwartz wrote:
"Stéphane" == Stéphane Ducasse <stephane.ducasse@inria.fr> writes:
Stéphane> ProtocolBrowser, a subclass of MessageSet, should be deprecated. Stéphane> Now if the functionality is used (I never used it but I may be Stéphane> a non typical programmer), we could use FlatListBrowser to Stéphane> implement ProtocolBrowser.
If you're talking about "browse protocol" from the code browser (or a few other interfaces), I use it all the time on other people's code, because it gives me a quick overview of the full range of what the class provides.
Maybe you don't work enough on other people's code? :)
may be :) but for me this flat view never worked. Stef
-- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion
"Stéphane" == Stéphane Ducasse <stephane.ducasse@inria.fr> writes:
Stéphane> may be :) Stéphane> but for me this flat view never worked. As an example of how it was useful to me... the WABrush classes are fairly deep, particularly in the form elements, and it was difficult to see how to configure a given brush. Flattening it as a protocol browser instantly gave me the full API, including letting me know which methods were inherited so are also likely to be used by other common brushes. The hierarchy browser can do *some* of that, but I find them both to be useful at different times. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion
On Aug 1, 2011, at 12:24 PM, Randal L. Schwartz wrote:
"Stéphane" == Stéphane Ducasse <stephane.ducasse@inria.fr> writes:
Stéphane> may be :)
Stéphane> but for me this flat view never worked.
As an example of how it was useful to me... the WABrush classes are fairly deep, particularly in the form elements, and it was difficult to see how to configure a given brush. Flattening it as a protocol browser instantly gave me the full API, including letting me know which methods were inherited so are also likely to be used by other common brushes.
The hierarchy browser can do *some* of that, but I find them both to be useful at different times.
Agreed 100%. Heirarchy browser is decent at figuring out what messages an object responds to, great for figuring out where exactly those are implemented. But if I want to know all the messages it responds to, protocol browser is critical. Pat
Ok we will see. But if you really use it may be it is time to have a look at the FlatMessageListBrowser and define a new protocol browser based on it. Because we **will** remove StringHolder. Stef On Aug 1, 2011, at 6:29 PM, Pat Maddox wrote:
On Aug 1, 2011, at 12:24 PM, Randal L. Schwartz wrote:
"Stéphane" == Stéphane Ducasse <stephane.ducasse@inria.fr> writes:
Stéphane> may be :)
Stéphane> but for me this flat view never worked.
As an example of how it was useful to me... the WABrush classes are fairly deep, particularly in the form elements, and it was difficult to see how to configure a given brush. Flattening it as a protocol browser instantly gave me the full API, including letting me know which methods were inherited so are also likely to be used by other common brushes.
The hierarchy browser can do *some* of that, but I find them both to be useful at different times.
Agreed 100%. Heirarchy browser is decent at figuring out what messages an object responds to, great for figuring out where exactly those are implemented. But if I want to know all the messages it responds to, protocol browser is critical.
Pat
On Mon, Aug 1, 2011 at 5:44 PM, Randal L. Schwartz <merlyn@stonehenge.com>wrote:
"Stéphane" == Stéphane Ducasse <stephane.ducasse@inria.fr> writes:
Stéphane> ProtocolBrowser, a subclass of MessageSet, should be deprecated. Stéphane> Now if the functionality is used (I never used it but I may be Stéphane> a non typical programmer), we could use FlatListBrowser to Stéphane> implement ProtocolBrowser.
If you're talking about "browse protocol" from the code browser (or a few other interfaces),
where is that "browse protocol" ? I cannot even find it (of course, I never use it) thanks I use it all the time on other people's code,
because it gives me a quick overview of the full range of what the class provides.
Maybe you don't work enough on other people's code? :)
-- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion
-- Mariano http://marianopeck.wordpress.com
"Mariano" == Mariano Martinez Peck <marianopeck@gmail.com> writes:
If you're talking about "browse protocol" from the code browser (or a few other interfaces),
Mariano> where is that "browse protocol" ? I cannot even find it (of course, I never Mariano> use it) Code Browser, class pane, select a class, alt-click, see "browse protocol (p)". -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion
:) in a browser menu somewhere... Stef
On Mon, Aug 1, 2011 at 5:44 PM, Randal L. Schwartz <merlyn@stonehenge.com> wrote:
"Stéphane" == Stéphane Ducasse <stephane.ducasse@inria.fr> writes:
Stéphane> ProtocolBrowser, a subclass of MessageSet, should be deprecated. Stéphane> Now if the functionality is used (I never used it but I may be Stéphane> a non typical programmer), we could use FlatListBrowser to Stéphane> implement ProtocolBrowser.
If you're talking about "browse protocol" from the code browser (or a few other interfaces),
where is that "browse protocol" ? I cannot even find it (of course, I never use it)
thanks
I use it all the time on other people's code, because it gives me a quick overview of the full range of what the class provides.
Maybe you don't work enough on other people's code? :)
-- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion
-- Mariano http://marianopeck.wordpress.com
Ok...it seems that doesn't exist on Pharo, but only in PharoCore. Since I don't use PharoCore, I haven't seen it before. Maybe it is also in Pharo but I cannot find it. Thanks On Mon, Aug 1, 2011 at 11:07 PM, Stéphane Ducasse <stephane.ducasse@inria.fr
wrote:
:)
in a browser menu somewhere...
Stef
On Mon, Aug 1, 2011 at 5:44 PM, Randal L. Schwartz <
merlyn@stonehenge.com> wrote:
"Stéphane" == Stéphane Ducasse <stephane.ducasse@inria.fr> writes:
Stéphane> ProtocolBrowser, a subclass of MessageSet, should be deprecated. Stéphane> Now if the functionality is used (I never used it but I may be Stéphane> a non typical programmer), we could use FlatListBrowser to Stéphane> implement ProtocolBrowser.
If you're talking about "browse protocol" from the code browser (or a few other interfaces),
where is that "browse protocol" ? I cannot even find it (of course, I never use it)
thanks
I use it all the time on other people's code, because it gives me a quick overview of the full range of what the class provides.
Maybe you don't work enough on other people's code? :)
-- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion
-- Mariano http://marianopeck.wordpress.com
-- Mariano http://marianopeck.wordpress.com
It used to be part of OmniBrowser, but I removed it a long time ago because - it broke due to changes in Pharo, - it had not a single test case, and - nobody bothered to fix it (check the mailing-list). Lukas On 1 August 2011 23:14, Mariano Martinez Peck <marianopeck@gmail.com> wrote:
Ok...it seems that doesn't exist on Pharo, but only in PharoCore. Since I don't use PharoCore, I haven't seen it before. Maybe it is also in Pharo but I cannot find it.
Thanks
On Mon, Aug 1, 2011 at 11:07 PM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
:)
in a browser menu somewhere...
Stef
On Mon, Aug 1, 2011 at 5:44 PM, Randal L. Schwartz <merlyn@stonehenge.com> wrote:
"Stéphane" == Stéphane Ducasse <stephane.ducasse@inria.fr> writes:
Stéphane> ProtocolBrowser, a subclass of MessageSet, should be deprecated. Stéphane> Now if the functionality is used (I never used it but I may be Stéphane> a non typical programmer), we could use FlatListBrowser to Stéphane> implement ProtocolBrowser.
If you're talking about "browse protocol" from the code browser (or a few other interfaces),
where is that "browse protocol" ? Â I cannot even find it (of course, I never use it)
thanks
I use it all the time on other people's code, because it gives me a quick overview of the full range of what the class provides.
Maybe you don't work enough on other people's code? :)
-- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion
-- Mariano http://marianopeck.wordpress.com
-- Mariano http://marianopeck.wordpress.com
-- Lukas Renggli www.lukas-renggli.ch
participants (5)
-
Lukas Renggli -
Mariano Martinez Peck -
merlyn@stonehenge.com -
Pat Maddox -
Stéphane Ducasse