pharo-project / pharo

Pharo is a dynamic reflective pure object-oriented language supporting live programming inspired by Smalltalk.
http://pharo.org
Other
1.22k stars 358 forks source link

Code Assistant suggestions for the Learning OOP #5649

Open offray opened 4 years ago

offray commented 4 years ago

I have been talking with Stéphane about the Learning OOP with Pharo and the idea of having a text in the book that reflects better the suggestions of the code Assistnat or a Novice Mode for Code assistant so while a reader is following the book, s/he doesn't get warnings for following the examples in the book.

I'm working with the "master @ 0638b16" PDF of the book over Pharo 7.0 (but I don't think warnings have been updated for Pharo 8.0) and in this issue I will document the warnings you get while following the book.

Page 34:

Counter >> printOn: aStream
  super printOn: aStream.
  aStream nextPutAll: ' with value: ', self count printString.

Produces:

Page 35:

CounterTest >> testValueAtCreationTimeIsZero
  self assert: Counter new count = 0

Produces:

Those are the ones I have found so far. In this issue thread I'll document the ones I could find, as far as is being discussed.

welcome[bot] commented 4 years ago

Thanks for opening your first issue! Please check the CONTRIBUTING documents for some tips about which information should be provided. You can find information of how to do a Pull Request here: https://github.com/pharo-project/pharo/wiki/Contribute-a-fix-to-Pharo

GitHub
pharo-project/pharo
Pharo is a dynamic reflective pure object-oriented language supporting live programming inspired by Smalltalk. - pharo-project/pharo
kasperosterbye commented 4 years ago

Awesome idea offray!