<div dir="auto">It is fine for me to use private but I would put a footnote with the protected explanation, nothing complex.</div><div dir="auto">About all the other things you say, I completely agree with you</div><div dir="auto">About an appendix, I would love to, but I do not really have the time now, I’ll put it in my never ending to do list 🙂</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 26 Feb 2023 at 10:31 <<a href="mailto:ken.dickey@whidbey.com">ken.dickey@whidbey.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2023-02-25 12:54, Hernán Wilkinson via Cuis-dev wrote:<br>
..<br>
> About the scope of inst vars, they are protected in the c++/java/c# <br>
> parlance... I think the word protected should be use and reference the <br>
> other languages<br>
<br>
This is a good observation, but I think it is simpler to assume common <br>
language use for "private".<br>
<br>
In a "stand-alone" introduction, we could introduce a chapter describing <br>
differences between programming languages and the world views they <br>
present, but I think this is best left to contexts where multiple <br>
languages are used (see comment below).<br>
<br>
I went to high school before we had calculators or computers and I like <br>
to use programming languages which do something close to what I think of <br>
as "high school math"<br>
<br>
In Smalltalk:<br>
<br>
(1/2) + (1/3) + (1/6). "--> 1 "<br>
<br>
(100 factorial) / (99 factorial). "--> 100 "<br>
<br>
Feature require: #Complex.<br>
-4 sqrt squared. "--> -4 + 0 i "<br>
<br>
Pointing to C++/Java/C#, one has to take time and energy to explain how <br>
broken their math is and how to work around the breakage.<br>
<br>
I think it much better to show how to extend the math support in <br>
Smalltalk by adding complex numbers than it is to explain why/how <br>
implementing and using numbers in C++/Java/C# is so broken.<br>
<br>
BTW, we can do better. I think -4+0i above should be and print as -4. <br>
I am willing to take a look at this.<br>
<br>
Again, the great thing here is the ability to "make it better", which is <br>
really, really hard in C++/Java/C#.<br>
<br>
These days, I am sure many students come from a context where they <br>
already know multiple programming languages. Hernán, would you be <br>
willing to write an appendix chapter comparing Smalltalk to other <br>
programming languages which students are probably familiar? Perhaps <br>
more questions and hints?<br>
<br>
$0.02,<br>
-KenD<br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="font-size:small"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal"><span style="font-weight:bold">Hernán Wilkinson</span><br>Agile Software Development, Teaching & Coaching</span></font></span></span></strong></span></div><div style="font-size:12.8px"><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">Phone: +54-011</span></font></span></span></strong></span><font face="tahoma, sans-serif" size="2">-4893-2057</font></div><div style="font-size:12.8px"><strong style="font-family:tahoma,sans-serif;font-size:xx-small"><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">Twitter: @HernanWilkinson</span></font></span></span></strong></div><div style="font-size:12.8px"><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">site: <a href="http://www.10pines.com/" style="color:rgb(17,65,112)" target="_blank">http://www.10Pines.com</a></span></font></span></span></strong></span></div><div style="font-size:12.8px"><font face="tahoma, sans-serif"><span style="border-collapse:collapse">Address: Alem 896</span></font>, Floor 6, Buenos Aires, Argentina</div></div></div></div></div></div></div></div>