Default selection when compiling a method

P
pmissech
Fri, Mar 25, 2022 10:40 AM

Hello,

We have worked today with Iona on
https://github.com/pharo-project/pharo/issues/11052.
Basically the hierarchy is reversed by default, which we don't like.
We proposed a PR to change the default behavior.

The issue we want to share with you today is the following.

You select a method that is installed in a class different from your
current class in the Calyspo browser.
You want to change it.
Upon compiling your changes, Calypso asks for where the method should be
installed.

We are wondering whether we should have a default selection in the Class
list.

Two cases that we thought of:
(1) When selecting a subclassResponsibility, We would like to pre select
the current class to install the new method.
(2) When selecting a random method from the hierarchy, we tend to think
that the class in which the method is implemented should be selected by
default.
    When working on your own projects, this makes sense to us.
    When navigating through other projects/core packages, it would make
less sense.

We tend to think that we should select the current class every time.
(basically case (1))
But what do you think ?

Have a nice day

Pierre & Iona

Hello, We have worked today with Iona on https://github.com/pharo-project/pharo/issues/11052. Basically the hierarchy is reversed by default, which we don't like. We proposed a PR to change the default behavior. The issue we want to share with you today is the following. You select a method that is installed in a class different from your current class in the Calyspo browser. You want to change it. Upon compiling your changes, Calypso asks for where the method should be installed. We are wondering whether we should have a default selection in the Class list. Two cases that we thought of: (1) When selecting a subclassResponsibility, We would like to pre select the current class to install the new method. (2) When selecting a random method from the hierarchy, we tend to think that the class in which the method is implemented should be selected by default.     When working on your own projects, this makes sense to us.     When navigating through other projects/core packages, it would make less sense. We tend to think that we should select the current class every time. (basically case (1)) But what do you think ? Have a nice day Pierre & Iona