SM
Sanjay Minni
Tue, Apr 27, 2021 11:03 AM
Hi
is there a way I can create a subclass when I have selected a class in the
System Browser class list (top 2nd panel).
Couldnt see any option - Or is it that no such feature is needed
cheers,
Sanjay
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
Hi
is there a way I can create a subclass when I have selected a class in the
System Browser class list (top 2nd panel).
Couldnt see any option - Or is it that no such feature is needed
-----
cheers,
Sanjay
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
NB
Noury Bouraqadi
Tue, Apr 27, 2021 11:19 AM
It's already available.
On Apr 27 2021, at 1:03 pm, Sanjay Minni sm@planage.com wrote:
It's already available.
On Apr 27 2021, at 1:03 pm, Sanjay Minni <sm@planage.com> wrote:
> Hi
>
> is there a way I can create a subclass when I have selected a class in the
> System Browser class list (top 2nd panel).
>
> Couldnt see any option - Or is it that no such feature is needed
>
>
> -----
> cheers,
> Sanjay
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>
SM
Sanjay Minni
Tue, Apr 27, 2021 11:24 AM
Thanks
Sorry I missed it.
(I did not expect it in refactorings)
Noury Bouraqadi-2 wrote
It's already available.
On Apr 27 2021, at 1:03 pm, Sanjay Minni <
Screenshot 2021-04-27 at 13.18.24.png (142K)
<http://forum.world.st/attachment/5129178/0/Screenshot%202021-04-27%20at%2013.18.24.png>
Thanks
Sorry I missed it.
(I did not expect it in refactorings)
Noury Bouraqadi-2 wrote
> It's already available.
>
> On Apr 27 2021, at 1:03 pm, Sanjay Minni <
> sm@
> > wrote:
>> Hi
>>
>> is there a way I can create a subclass when I have selected a class in
>> the
>> System Browser class list (top 2nd panel).
>>
>> Couldnt see any option - Or is it that no such feature is needed
>>
>>
>> -----
>> cheers,
>> Sanjay
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>
>
>
>
> Screenshot 2021-04-27 at 13.18.24.png (142K)
> <http://forum.world.st/attachment/5129178/0/Screenshot%202021-04-27%20at%2013.18.24.png>
-----
cheers,
Sanjay
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
K
kmo
Tue, Apr 27, 2021 12:43 PM
I'm not surprised you missed it. I think it's not very intuitive having it on
the refactoring sub-menu - especially when you already have "new class" on
the right click menu when you select a class. Why not have "create subclass"
there as well?
By the way, did you have trouble working out the "normal" way of creating a
subclass? You select the class definition tab in the browser bottom panel
and press the + (plus) button. It took me ages and ages to work that out. Am
I just slow or is that also counter-intuitive?
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
I'm not surprised you missed it. I think it's not very intuitive having it on
the refactoring sub-menu - especially when you already have "new class" on
the right click menu when you select a class. Why not have "create subclass"
there as well?
By the way, did you have trouble working out the "normal" way of creating a
subclass? You select the class definition tab in the browser bottom panel
and press the + (plus) button. It took me ages and ages to work that out. Am
I just slow or is that also counter-intuitive?
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
SM
Sanjay Minni
Tue, Apr 27, 2021 1:16 PM
No, I was not aware of the "+" in class definition tab. actually it's not
there (yet) in Pharo 9 Win 64 which I am using.
On Tue, 27 Apr 2021 at 18:13, kmo voxkmp@gmail.com wrote:
I'm not surprised you missed it. I think it's not very intuitive having it
on
the refactoring sub-menu - especially when you already have "new class" on
the right click menu when you select a class. Why not have "create
subclass"
there as well?
By the way, did you have trouble working out the "normal" way of creating a
subclass? You select the class definition tab in the browser bottom panel
and press the + (plus) button. It took me ages and ages to work that out.
Am
I just slow or is that also counter-intuitive?
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
No, I was not aware of the "+" in class definition tab. actually it's not
there (yet) in Pharo 9 Win 64 which I am using.
On Tue, 27 Apr 2021 at 18:13, kmo <voxkmp@gmail.com> wrote:
> I'm not surprised you missed it. I think it's not very intuitive having it
> on
> the refactoring sub-menu - especially when you already have "new class" on
> the right click menu when you select a class. Why not have "create
> subclass"
> there as well?
>
> By the way, did you have trouble working out the "normal" way of creating a
> subclass? You select the class definition tab in the browser bottom panel
> and press the + (plus) button. It took me ages and ages to work that out.
> Am
> I just slow or is that also counter-intuitive?
>
>
>
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>
RW
Russ Whaley
Tue, Apr 27, 2021 1:18 PM
Now I'm wondering if I'm doing something wrong, or short-circuiting the
correct approach...
When I want to subclass - I simply select the class, and update the class
definition page - moving the subclass name (which is the current class) to
the class section, and replacing the subclass name with my new subclass
name. I can also take care of instance and class variables I need... just
save and everything seems to work just fine.
Is there a reason to need to do this with a menu? Many times with menu
options I'm unclear WHAT it's operating ON :)
Nice to know there are multiple ways to get things done in Pharo!!
On Tue, Apr 27, 2021 at 8:43 AM kmo voxkmp@gmail.com wrote:
I'm not surprised you missed it. I think it's not very intuitive having it
on
the refactoring sub-menu - especially when you already have "new class" on
the right click menu when you select a class. Why not have "create
subclass"
there as well?
By the way, did you have trouble working out the "normal" way of creating a
subclass? You select the class definition tab in the browser bottom panel
and press the + (plus) button. It took me ages and ages to work that out.
Am
I just slow or is that also counter-intuitive?
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
Now I'm wondering if I'm doing something wrong, or short-circuiting the
correct approach...
When I want to subclass - I simply select the class, and update the class
definition page - moving the subclass name (which is the current class) to
the class section, and replacing the subclass name with my new subclass
name. I can also take care of instance and class variables I need... just
save and everything seems to work just fine.
Is there a reason to need to do this with a menu? Many times with menu
options I'm unclear WHAT it's operating ON :)
Nice to know there are multiple ways to get things done in Pharo!!
On Tue, Apr 27, 2021 at 8:43 AM kmo <voxkmp@gmail.com> wrote:
> I'm not surprised you missed it. I think it's not very intuitive having it
> on
> the refactoring sub-menu - especially when you already have "new class" on
> the right click menu when you select a class. Why not have "create
> subclass"
> there as well?
>
> By the way, did you have trouble working out the "normal" way of creating a
> subclass? You select the class definition tab in the browser bottom panel
> and press the + (plus) button. It took me ages and ages to work that out.
> Am
> I just slow or is that also counter-intuitive?
>
>
>
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>
--
Russ Whaley
whaley.russ@gmail.com
K
kmo
Tue, Apr 27, 2021 1:47 PM
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
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
RW
Russ Whaley
Tue, Apr 27, 2021 2:19 PM
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
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
SM
Sanjay Minni
Tue, Apr 27, 2021 3:14 PM
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
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
>
CF
Christopher Fuhrman
Tue, Apr 27, 2021 3:15 PM
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/53374761/how-to-add-a-new-method-in-pharo
On Tue, 27 Apr 2021 at 09:47, 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
--
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
+1 514 396 8638
L'ÉTS est une constituante de l'Université du Québec
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/53374761/how-to-add-a-new-method-in-pharo
On Tue, 27 Apr 2021 at 09:47, 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
>
--
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
+1 514 396 8638
*L'ÉTS est une constituante de l'Université du Québec*