[squeak-dev] The Inbox: Graphics-nice.446.mcz

Marcel Taeumel marcel.taeumel at hpi.de
Mon Feb 22 15:55:05 UTC 2021


Hi Stef.

> Real pedagogical value comes from explaining complex topics clearly, not from simplifying them.

Slightly disagree in this context. If you sacrifice readable abstraction (or modularity or information hiding in that sense) for performance, code comments can only try to alleviate the actual issue. First and foremost, source code should be written for humans, not machines, to understand. Otherwise systems with a lot of inherent complexity would be very challenging -- if not impossible -- to build and maintain.

We should be very careful with every low-level detail we burden the high-level programmer with. I find the phrase "[...] problems that users will have to learn sooner or later [...]" very problematic in the sense that it seems to "just give up" on readable, high-level abstractions altogether. Of course, one should not be too naive about this. 

Still, we can do better that comments. And we still need more bytecodes/sec and sends/sec. :-D

Best,

Marcel
Am 22.02.2021 16:36:31 schrieb Stéphane Rollandin <lecteur at zogotounga.net>:
> Eliminating all the intermediate objects gives much less expressive
> code as Tom underlined
> But providing only naive implementations hides the performance
> problems that users will have to learn sooner or later...

Exactly.

And code expressivity is a dubious criterion IMO: especially in
Smalltalk, the readability of a specific algorithm can be improved by
refactoring/renaming its primitive methods, or more simply by commenting
the non-obvious parts.

Real pedagogical value comes from explaining complex topics clearly, not
from simplifying them.

Stef

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210222/06f157e7/attachment.html>


More information about the Squeak-dev mailing list