On 8 January 2018 at 16:54, Photon <[email protected]> wrote:

> Hello, Folks. As is wrote in the title, I`m somewhat confused.  I`m new to
> programming but I think I understood what OOP is, yessterday before I
> discovered Pharo, was I was able to build a simple city model in Visual
> Studio (C#), with a city class which was build out of other classes wich
> were build out of other classes.
> City<-District<-Street<-House<-Room. So I get the idea that we want to
> discribe real world systems as network of objects to be able to solve
> problems within givin system.
>
> However I have a super hard time to grasp Pharo for some reason. What I
> understood so far is that everything is an object even the classes it self,
> wich  is super cool by the way. I understand that as I use Pharo I have to
> use the libaries aswell since there is no clear cut between language and
> package.
> I know the browser to a slight degree and I read allready a bit code from
> some objects and methods.
> But then when i try to call some methods from the classes there I  fail 90%
> of the time.
>

Be aware that there are methods on the "instance-side" of a class
and also on the "class-side" of a class.  One way to think about the
class-side
is as an implementation of the Factory Pattern.  Since classes are objects
too,
essentially every class in the system has an associated factory-object.
An important class-side factory method is #new. Send this to a class to
get an instance of that class, on which you can invoke instance-side
methods.


>
> I did not find much learning material online. Only a couple talks on Pharo
> and one or two text based tutorials wich were unfortunatly pretty old,
> version 1.5 or something like this.
> So I really want to dig into this wonderfull subject as the concept seems
> fascinating to me. I believe it can be a powerfull tool especially with the
> abillity to change things runtime.
>
> I`d be glad to get a little advice on how to start.
>
>
Do the MOOC and the Pharo By Example book.
http://pharo.org/documentation

cheers -ben

Reply via email to