Pharo 12 or 13 or 11 Pharo 9 is quite old S
On 24 Jul 2024, at 04:06, Richard O'Keefe <raoknz@gmail.com> wrote:
Thanks for the advice about Spec2. I was keen to try Class-diff out, so I fired up Pharo, followed the installation instructions with no problems, and then tried the example. The example got a run-time error, and I expect that it's because the Pharo release I fired up was Pharo 9.
Which release(s) of Pharo is Class-diff intended to work with?
On Tue, 23 Jul 2024 at 23:38, Hernán Morales Durand <hernan.morales@gmail.com> wrote:
Thanks for your nice feedback Richard, I will sketch something and see how it goes.
About learning Spec2, for me, the best resource is to directly use the image examples. In the main menu, you have "Help -> Spec 2 demo" and "Help -> Spec 2 examples". And you also have the book in https://github.com/SquareBracketAssociates
Hernán
El mar, 23 jul 2024 a las 10:30, Richard O'Keefe (<raoknz@gmail.com>) escribió:
That's a very nice tool. There are two tweaks I'd like to see. Two classes having methods with the same *name* isn't the same as two classes having the same *method*. When the two classes have a method with the same name, there are at least three possibilities:
- The methods are the same method
- The methods are different, but the name is defined in some common superclass, so they had better be related methods.
- The methods are completely unrelated, like #next in ReadStream and LIFOQueue.
The third case applies to every method. Perhaps the best way therefore is to show something in the header, like
(score) diff of descendants of <nearest common superclass> <column> <column>
The first and second cases are the ones I want to tell apart so that I don't spend any time looking for differences that aren't there.
What's the best way to learn how to use Spec2?
On Mon, 22 Jul 2024 at 18:58, Hernán Morales Durand <hernan.morales@gmail.com> wrote:
Dear Pharo community,
I am happy to present a new tool designed specifically for comparing classes in Pharo. It provides a two-sided list of methods, so you can quickly understand the relationships between two classes.
The project location is on GitHub:
https://github.com/hernanmd/class-diff
Feel free to send comments and contributions via PRs. Have a great day,
Hernán
Stéphane Ducasse http://stephane.ducasse.free.fr 06 30 93 66 73 "If you knew today was your last day on earth, what would you do differently? ....ESPECIALLY if, by doing something different, today might not be your last day on earth.â Calvin & Hobbes