Categories and Packages

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Categories and Packages

Geert Claes
Administrator
Categories are used to group related Classes together in an Image.  The notion of Repositories and Packages were probably introduced to manage saving versions of code outside the Image and sharing this code easier.

I am only trying to understand the reason why Classes are grouped in Categories as well as Packages especially since by convention the Package name is the same as the Class name?
Reply | Threaded
Open this post in threaded view
|

Re: Categories and Packages

Stéphane Ducasse
packages were added on top and use categories.
Ideally I would like to remove categories. The problme is that it is not that simple because you may have large packages
and want to structure it inside.

Stef
On May 14, 2010, at 4:08 PM, Geert Claes wrote:

>
> Categories are used to group related Classes together in an Image.  The
> notion of Repositories and Packages were probably introduced to manage
> saving versions of code outside the Image and sharing this code easier.
>
> I am only trying to understand the reason why Classes are grouped in
> Categories as well as Packages especially since by convention the Package
> name is the same as the Class name?
> --
> View this message in context: http://forum.world.st/Categories-and-Packages-tp2216632p2216632.html
> Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Categories and Packages

Geert Claes
Administrator
Stéphane Ducasse wrote
packages were added on top and use categories.  Ideally I would like to remove categories. The problme is that it is not that simple because you may have large packages and want to structure it inside.
I guess having packages that are that large that they need additional structure may not be a good idea though no?  Having both Categories and Packages is very confusion from a usability point of view.

Reply | Threaded
Open this post in threaded view
|

Re: Categories and Packages

Lukas Renggli
In reply to this post by Geert Claes
On Friday, May 14, 2010, Geert Claes <[hidden email]> wrote:
>
> Categories are used to group related Classes together in an Image.  The
> notion of Repositories and Packages were probably introduced to manage
> saving versions of code outside the Image and sharing this code easier.
>
> I am only trying to understand the reason why Classes are grouped in
> Categories as well as Packages especially since by convention the Package
> name is the same as the Class name?

The package name is normally a prefix of the category name. The class
name has nothing to do with it.

Lukas

> --
> View this message in context: http://forum.world.st/Categories-and-Packages-tp2216632p2216632.html
> Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>

--
Lukas Renggli
www.lukas-renggli.ch

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Categories and Packages

Geert Claes
Administrator
Lukas Renggli wrote
> I am only trying to understand the reason why Classes are grouped in
> Categories as well as Packages especially since by convention the Package
> name is the same as the Class name?

The package name is normally a prefix of the category name. The class
name has nothing to do with it.
Sorry, that was supposed to be "... the same as the Category name" :)