pharo-users@lists.pharo.org

Any question about pharo is welcome

View all threads

creating a subclass in system browser

RW
Russ Whaley
Tue, Apr 27, 2021 4:12 PM

Thanks Sanjay... I don't use v8.  I'm heavily invested in Spec2 and, well,
my apps won't run in v8 :)

On Tue, Apr 27, 2021 at 11:15 AM Sanjay Minni sm@planage.com wrote:

Don't think it's there in v9. Check in v8

On Tue, 27 Apr, 2021, 7:50 pm Russ Whaley, whaley.russ@gmail.com wrote:

Can you send a screenshot of the plus button?  I'm using v9 on MacOS and
I don't see a class + button...

On Tue, Apr 27, 2021 at 9:47 AM kmo voxkmp@gmail.com wrote:

Doing it by hand is fiddly and error-prone. I know - because that's the
way I
used to do it before I realised that the plus button at the top of the
browser bottom panel did it for me. (I had no idea that there was also a
menu option on the refactorings menu). I think you might find the button
to
be the better way - I did.

--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

--
Russ Whaley
whaley.russ@gmail.com

--
Russ Whaley
whaley.russ@gmail.com

Thanks Sanjay... I don't use v8. I'm heavily invested in Spec2 and, well, my apps won't run in v8 :) On Tue, Apr 27, 2021 at 11:15 AM Sanjay Minni <sm@planage.com> wrote: > Don't think it's there in v9. Check in v8 > > On Tue, 27 Apr, 2021, 7:50 pm Russ Whaley, <whaley.russ@gmail.com> wrote: > >> Can you send a screenshot of the plus button? I'm using v9 on MacOS and >> I don't see a class + button... >> >> On Tue, Apr 27, 2021 at 9:47 AM kmo <voxkmp@gmail.com> wrote: >> >>> Doing it by hand is fiddly and error-prone. I know - because that's the >>> way I >>> used to do it before I realised that the plus button at the top of the >>> browser bottom panel did it for me. (I had no idea that there was also a >>> menu option on the refactorings menu). I think you might find the button >>> to >>> be the better way - I did. >>> >>> >>> >>> >>> -- >>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html >>> >> >> >> -- >> Russ Whaley >> whaley.russ@gmail.com >> > -- Russ Whaley whaley.russ@gmail.com
K
kmo
Tue, Apr 27, 2021 4:16 PM

I've attached a screenshot. The button appears when you select the class
definition tab in the browser. Press it and you get a dialog to enter a
subclass name then the text
http://forum.world.st/file/t368903/subclassbutton.png template for that
subclass appears in the browser class definition tab.

This is from Pharo 9 on Linux (this is an older version 9 - not the very
latest)

--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

I've attached a screenshot. The button appears when you select the class definition tab in the browser. Press it and you get a dialog to enter a subclass name then the text <http://forum.world.st/file/t368903/subclassbutton.png> template for that subclass appears in the browser class definition tab. This is from Pharo 9 on Linux (this is an older version 9 - not the very latest) -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
RW
Russ Whaley
Tue, Apr 27, 2021 4:26 PM

Ah, in my v9 version, I see a red circled exclamation point (hovering says
'Refactorings' - which has a menu for the +New subclass.

Good to know!  Thanks!

On Tue, Apr 27, 2021 at 12:17 PM kmo voxkmp@gmail.com wrote:

I've attached a screenshot. The button appears when you select the class
definition tab in the browser. Press it and you get a dialog to enter a
subclass name then the text
http://forum.world.st/file/t368903/subclassbutton.png template for that
subclass appears in the browser class definition tab.

This is from Pharo 9 on Linux (this is an older version 9 - not the very
latest)

--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

--
Russ Whaley
whaley.russ@gmail.com

Ah, in my v9 version, I see a red circled exclamation point (hovering says 'Refactorings' - which has a menu for the +New subclass. Good to know! Thanks! On Tue, Apr 27, 2021 at 12:17 PM kmo <voxkmp@gmail.com> wrote: > I've attached a screenshot. The button appears when you select the class > definition tab in the browser. Press it and you get a dialog to enter a > subclass name then the text > <http://forum.world.st/file/t368903/subclassbutton.png> template for that > subclass appears in the browser class definition tab. > > This is from Pharo 9 on Linux (this is an older version 9 - not the very > latest) > > > > -- > Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html > -- Russ Whaley whaley.russ@gmail.com
K
kmo
Tue, Apr 27, 2021 4:45 PM

This shows the browser button for a subclass on Pharo 9 on Linux (not the
very latest Version 9 by the way). It only appears when you have the class
definition tab selected.

I hope this shows up - I posted it earlier but it just hasn't appeared in
the list - so I'm posting it again. With my luck it will probably appear
twice now.  http://forum.world.st/file/t368903/subclassbutton.png

--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

This shows the browser button for a subclass on Pharo 9 on Linux (not the very latest Version 9 by the way). It only appears when you have the class definition tab selected. I hope this shows up - I posted it earlier but it just hasn't appeared in the list - so I'm posting it again. With my luck it will probably appear twice now. <http://forum.world.st/file/t368903/subclassbutton.png> -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
K
kmo
Tue, Apr 27, 2021 4:58 PM

/ a red circled exclamation point (hovering says 'Refactorings' - which has a
menu for the +New subclass./

That sounds completely horrible. Surely that's never going to remain in the
official release.

--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

/ a red circled exclamation point (hovering says 'Refactorings' - which has a menu for the +New subclass./ That sounds completely horrible. Surely that's never going to remain in the official release. -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
EM
Esteban Maringolo
Tue, Apr 27, 2021 7:52 PM

It's been there as a refactoring for a while. Why a refactoring? Who
knows...

Esteban A. Maringolo

On Tue, Apr 27, 2021 at 1:59 PM kmo voxkmp@gmail.com wrote:

/ a red circled exclamation point (hovering says 'Refactorings' - which
has a
menu for the +New subclass./

That sounds completely horrible. Surely that's never going to remain in the
official release.

--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

It's been there as a refactoring for a while. Why a refactoring? Who knows... Esteban A. Maringolo On Tue, Apr 27, 2021 at 1:59 PM kmo <voxkmp@gmail.com> wrote: > / a red circled exclamation point (hovering says 'Refactorings' - which > has a > menu for the +New subclass./ > > That sounds completely horrible. Surely that's never going to remain in the > official release. > > > > > -- > Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html >
SD
Stéphane Ducasse
Wed, Apr 28, 2021 7:20 AM

Please open issue so that your remarks do not get lost.

On 27 Apr 2021, at 17:15, Christopher Fuhrman christopher.fuhrman@etsmtl.ca wrote:

One thing I find challenging when teaching Pharo to new students -- especially those accustomed to IDEs with files, which is pretty much all of them ;) -- is that there are sometimes menus (depending on the Pharo version) to add a new package, new class, new protocol, but not a new method, etc.

For onboarding new users, I think it's important that these things be intuitive and consistent, especially since updating tutorials takes time. They are super important because inconsistencies become barriers to onboarding new people. My point here is not that a menu option necessarily exists, but that we have a consistent way to explain how to create things even when Pharo changes. Apple used to have 10 commandments for keyboard shortcuts, and I think a similar idea could apply to having consistency in these elements of Pharo.

Here are some related perspectives:
https://stackoverflow.com/questions/48034993/creation-of-a-class-in-pharo-smalltalk https://stackoverflow.com/questions/48034993/creation-of-a-class-in-pharo-smalltalk
https://stackoverflow.com/questions/53374761/how-to-add-a-new-method-in-pharo https://stackoverflow.com/questions/53374761/how-to-add-a-new-method-in-pharo

On Tue, 27 Apr 2021 at 09:47, kmo <voxkmp@gmail.com mailto:voxkmp@gmail.com> wrote:
Doing it by hand is fiddly and error-prone. I know - because that's the way I
used to do it before I realised that the plus button at the top of the
browser bottom panel did it for me. (I had no idea that there was also a
menu option on the refactorings menu). I think you might find the button to
be the better way - I did.

--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

--
Christopher Fuhrman, P.Eng., PhD
Professeur au Département de génie logiciel et des technologies de l'information
ÉTS (École de technologie supérieure)

http://profs.etsmtl.ca/cfuhrman http://profs.etsmtl.ca/cfuhrman
+1 514 396 8638
L'ÉTS est une constituante de l'Université du Québec


Stéphane Ducasse
http://stephane.ducasse.free.fr / http://www.pharo.org
03 59 35 87 52
Assistant: Aurore Dalle
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley,
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France

Please open issue so that your remarks do not get lost. > On 27 Apr 2021, at 17:15, Christopher Fuhrman <christopher.fuhrman@etsmtl.ca> wrote: > > One thing I find challenging when teaching Pharo to new students -- especially those accustomed to IDEs with files, which is pretty much all of them ;) -- is that there are sometimes menus (depending on the Pharo version) to add a new package, new class, new protocol, but not a new method, etc. > > For onboarding new users, I think it's important that these things be intuitive and consistent, especially since updating tutorials takes time. They are super important because inconsistencies become barriers to onboarding new people. My point here is not that a menu option necessarily exists, but that we have a consistent way to explain how to create things even when Pharo changes. Apple used to have 10 commandments for keyboard shortcuts, and I think a similar idea could apply to having consistency in these elements of Pharo. > > Here are some related perspectives: > https://stackoverflow.com/questions/48034993/creation-of-a-class-in-pharo-smalltalk <https://stackoverflow.com/questions/48034993/creation-of-a-class-in-pharo-smalltalk> > https://stackoverflow.com/questions/53374761/how-to-add-a-new-method-in-pharo <https://stackoverflow.com/questions/53374761/how-to-add-a-new-method-in-pharo> > > > On Tue, 27 Apr 2021 at 09:47, kmo <voxkmp@gmail.com <mailto:voxkmp@gmail.com>> wrote: > Doing it by hand is fiddly and error-prone. I know - because that's the way I > used to do it before I realised that the plus button at the top of the > browser bottom panel did it for me. (I had no idea that there was also a > menu option on the refactorings menu). I think you might find the button to > be the better way - I did. > > > > > -- > Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html <http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html> > > > -- > Christopher Fuhrman, P.Eng., PhD > Professeur au Département de génie logiciel et des technologies de l'information > ÉTS (École de technologie supérieure) > > http://profs.etsmtl.ca/cfuhrman <http://profs.etsmtl.ca/cfuhrman> > +1 514 396 8638 > L'ÉTS est une constituante de l'Université du Québec -------------------------------------------- Stéphane Ducasse http://stephane.ducasse.free.fr / http://www.pharo.org 03 59 35 87 52 Assistant: Aurore Dalle FAX 03 59 57 78 50 TEL 03 59 35 86 16 S. Ducasse - Inria 40, avenue Halley, Parc Scientifique de la Haute Borne, Bât.A, Park Plaza Villeneuve d'Ascq 59650 France
RO
Richard O'Keefe
Thu, Apr 29, 2021 8:46 AM

I hadn't actually noticed the "+" sign but it was there in V7 and is there
in V9 on Windows.

On Wed, 28 Apr 2021 at 03:15, Sanjay Minni sm@planage.com wrote:

Don't think it's there in v9. Check in v8

On Tue, 27 Apr, 2021, 7:50 pm Russ Whaley, whaley.russ@gmail.com wrote:

Can you send a screenshot of the plus button?  I'm using v9 on MacOS and
I don't see a class + button...

On Tue, Apr 27, 2021 at 9:47 AM kmo voxkmp@gmail.com wrote:

Doing it by hand is fiddly and error-prone. I know - because that's the
way I
used to do it before I realised that the plus button at the top of the
browser bottom panel did it for me. (I had no idea that there was also a
menu option on the refactorings menu). I think you might find the button
to
be the better way - I did.

--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

--
Russ Whaley
whaley.russ@gmail.com

I hadn't actually noticed the "+" sign but it was there in V7 and is there in V9 on Windows. On Wed, 28 Apr 2021 at 03:15, Sanjay Minni <sm@planage.com> wrote: > Don't think it's there in v9. Check in v8 > > On Tue, 27 Apr, 2021, 7:50 pm Russ Whaley, <whaley.russ@gmail.com> wrote: > >> Can you send a screenshot of the plus button? I'm using v9 on MacOS and >> I don't see a class + button... >> >> On Tue, Apr 27, 2021 at 9:47 AM kmo <voxkmp@gmail.com> wrote: >> >>> Doing it by hand is fiddly and error-prone. I know - because that's the >>> way I >>> used to do it before I realised that the plus button at the top of the >>> browser bottom panel did it for me. (I had no idea that there was also a >>> menu option on the refactorings menu). I think you might find the button >>> to >>> be the better way - I did. >>> >>> >>> >>> >>> -- >>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html >>> >> >> >> -- >> Russ Whaley >> whaley.russ@gmail.com >> >