News for hackers. Stuff that matters.
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.
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:

Re:Amber Smalltalk by _ph_ on Sunday February 14, 2021 @03:07AM (#26130514)
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.
Re:Amber Smalltalk by Qem on Thursday February 18, 2021 @12:56PM (#26183154)
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".
Re:Amber Smalltalk by homarp on Sunday February 14, 2021 @06:04AM (#26131300)
which browswer you used? on both Firefox and Chrome, pressing "DoIt" gives popup error "Cannot add self to a string."
Re:Amber Smalltalk by leaveyou on Sunday February 14, 2021 @06:46AM (#26131560)
Looks like you need to select only the line of code that you want to execute before you press "Do it". Works on Firefox for me.