Login  Register

Re: Unintuitive behavior of class-side initialize

Posted by kilon.alios on Aug 28, 2014; 2:19pm
URL: https://forum.world.st/Unintuitive-behavior-of-class-side-initialize-tp4775042p4775255.html

ah nice then you already a contributor and you dont need permission to add to updated pbe repo. 

thank you for the kind words, when I started making them I had some doubts about how good they will be so I am very glad that people find them useful and that motivates me to keep making them. The video tutorials will continue non stop and soon as I finish with the core of pharo I would like to dive into Morphic. 




On Thu, Aug 28, 2014 at 2:05 PM, Ignacio Sniechowski <[hidden email]> wrote:
thanks,
Im familiar with pillar as incontributed some stuff for the pharo for the enterprise.
I will take a look. Also
Thanks for your video tutorials, they are really awesome.
Please please continue to add more.
Take care
Nacho

Enviado desde Molto para iPad

De: kilon alios
Enviado: jueves, agosto 28, 2014 08:02 a.m.
Para: Any question about pharo is welcome
Asunto: Re: [Pharo-users] Unintuitive behavior of class-side initialize

you can read the book here


main repo is here


Sure exercises are always a good idea. We use pillar syntax which is quite simple, drop off to irc chat #Pharo at freenode to discuss the detail though most things are already well documented about the process of contributing to the book. 

I have ported so far 4 chapter and I am in chapter 5 , Damien has port one chapter and Stephan partly ported another so we around 50% of the book. 





On Thu, Aug 28, 2014 at 1:51 PM, Ignacio Sniechowski <[hidden email]> wrote:
Kilon,
Do you have a preview version of the updated book?
I would love to see it.
Also would you consider adding some exercises will be a good addition? I think so....let me know and i guess i can merge the project i've started to the updated book.
Best
Nacho

Enviado desde Molto para iPad

De: kilon alios
Enviado: miércoles, agosto 27, 2014 09:50 a.m.
Para: Any question about pharo is welcome
Asunto: Re: [Pharo-users] Unintuitive behavior of class-side initialize

I will be adding an "Introduction to Object Orientation" chapter to the new updated Pharo By Example online book, so I will add this to the chapter. The chapter will target people not familiar with Object Orientation and people new to coding. Its not an immediate target but it will happen till the end of the year.   


On Wed, Aug 27, 2014 at 3:44 PM, Mariano Martinez Peck <[hidden email]> wrote:



On Wed, Aug 27, 2014 at 8:22 AM, webwarrior <[hidden email]> wrote:
As class is just an object in Smalltalk, it would be reasonable to believe
that #initialize message is always sent to class on creation.

However, that's not true. It is only sent to classes that redefine
#initialize. Also sending super initialize may lead to problems.


Ohhh yes. There is always a time for every Smalltalkers where you discover that doing super for class side initialize is not a good idea.
 
None of these is mentioned in documentation (I assume Pahro By Example is
the official one). It only says that #initialize is sent when class is
loaded into memory.

I think either this behavior should be made more consistent, or excplicitly
mentioned in the docs.


+1 to the documentation 
 



--
View this message in context: http://forum.world.st/Unintuitive-behavior-of-class-side-initialize-tp4775042.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.




--
Mariano
http://marianopeck.wordpress.com