Re:Amber Smalltalk
by remexre on Saturday February 13, 2021 @11:59PM
(#26129822)
Hey, finally got around to playing with Smalltalk; their interactive tutorial makes a great appetizer.
[ Parent
| on HN ]
Re:Amber Smalltalk
by narcissismo on Sunday February 14, 2021 @07:35AM
(#26131869)
Please keep going :)
Using Smalltalk (particularly Pharo) has been an eye-opening experience for me.
Its interesting to see that Amber has a Boolean class which I suppose corresponds to the JS boolean primitive. In other Smalltalks, I've seen a wonderful design where True and False are subclasses of Boolean. This way, there are no conditionals in the implementation of ifTrue: and ifFalse:
Yes, it is a great appetizer. However, that there are no navigation buttons quickly becomes an annyoance. I once pressed a wrong key and had to select ProfStef next. 10 times to get back to where I was :(
One page (21?) seems to have a parsing bug.
You could just execute 10 timesRepeat: [ ProfStef next ], at least in Pharo.
Re:Amber Smalltalk
by mark_l_watson on Sunday February 14, 2021 @04:56PM
(#26136641)
on my Mac, control-p prints and control-d is a "DoIt."
Re:Amber Smalltalk
by DonHopkins on Monday February 15, 2021 @02:15AM
(#26140018)
That menu item is traditionally rendered in a sans serif font, so it look like "Dolt".
which browswer you used?
on both Firefox and Chrome, pressing "DoIt" gives popup error "Cannot add self to a string."