[squeak-dev] Object>>printOn: refined.

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Fri Jun 5 14:37:30 UTC 2020

> Morph new printString 'a Morph(3577889)'

Yes, but an important difference is that this hash is appended to the original representation, not prepended. This is less obtrusive.

> Do as I do. Make your own tools.

True, but it ever hurts me if I write a piece of closed source that is not reusable. And it makes harder synchronizing your image with Trunk/Inbox.


Von: Trygve Reenskaug <trygver at ifi.uio.no>
Gesendet: Freitag, 5. Juni 2020 15:52:22
An: The general-purpose Squeak developers list; Thiede, Christoph; Taeumel, Marcel
Betreff: Re: [squeak-dev] Object>>printOn: refined.

Do as I do. Make your own tools. Then you get tools you like, you know them intimately, and you can change them at whim. It's often much easier than having a general tool with a billion options.

On 2020.06.05 13:45, Thiede, Christoph wrote:

Hi all,

personally, I am not convinced by displaying the identityHash in each and every inspector window title as shown in Trygve's screenshot. They just make the overall inspector experience a lot more cryptical, compared to a rather small benefit. Also, in my image #asOop returns seven-digit numbers which would cost too much space in the title bars. I think identity comparison is only actually redundant in certain domains or situations, most time you will only open a few inspectors at all.

Isn't there any possibility to show these IDs only on demand? Or can we find a better way to visualize identity than numbers? Maybe a small individual pixel pattern, or shorter IDs that are only unique amongst the class of the inspected object?

Also, please note that having the #reuseWindows preference enabled, this hash is redundant at all because it is not possible to inspect the same object twice.



Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org><mailto:squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Chris Muller <ma.chris.m at gmail.com><mailto:ma.chris.m at gmail.com>
Gesendet: Donnerstag, 4. Juni 2020 21:58:51
An: Taeumel, Marcel
Cc: squeak-dev
Betreff: Re: [squeak-dev] Object>>printOn: refined.

> You +1'd the idea of sending #asOop from #printOn:.

Nope. I +1'd the idea to be applied to #defaultLabelForInspector because of that "super" issue.

Ah, I beg your pardon.  My mistake.
 - Chris

The essence of object orientation is that objects collaborate  to achieve a goal.
Trygve Reenskaug      mailto: trygver at ifi.uio.no<mailto:%20trygver at ifi.uio.no>
Morgedalsvn. 5A       http://folk.uio.no/trygver/
N-0378 Oslo             http://fullOO.info
Norway                     Tel: (+47) 468 58 625
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200605/836fa3e8/attachment.html>

More information about the Squeak-dev mailing list