[squeak-dev] Advice on new projects

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

[squeak-dev] Advice on new projects

Ross Boylan
I'm starting some new projects, one on squeak and the other on seaside.
Both use magma, and the latter will probably use the pharo-based images,
since seaside is using that as a development platform.

Is there any namespace or similar mechanism that it would be advisable
to use?

I'm using Monticello, as distributed in the image, for managing the
project.  Is that a sensible choice?  Should I use MC 2? Despite its age
it seems to still be a bit unfinished, certainly with respect to
documentation.

I'm putting my classes in MC type class categories, and prefixing them
with an indentifying code (MI for one, undecided for the other).  This
seems a weak substitute for namespaces, however.

I'm also toying with the idea of using traits.

Thanks for any advice or perspective you can offer.

Ross Boylan


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Advice on new projects

Colin Putney




On 2009-09-17, at 11:24 AM, Ross Boylan <[hidden email]> wrote:

> I'm using Monticello, as distributed in the image, for managing the
> project.  Is that a sensible choice?

Yes. Monticello 1 is quite stable, and in wide use. The documentation  
is here:

> Should I use MC 2? Despite its age
> it seems to still be a bit unfinished, certainly with respect to
> documentation.

That's right. MC2 is still experimental. There is a tool for  
converting repositories so you'll be able to move to MC2 when it  
becomes more mainstream.

> I'm putting my classes in MC type class categories, and prefixing them
> with an indentifying code (MI for one, undecided for the other).  This
> seems a weak substitute for namespaces, however.

Yes, that's a good way to do things.


Colin




Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Advice on new projects

Michael van der Gulik-2
In reply to this post by Ross Boylan


On Fri, Sep 18, 2009 at 6:24 AM, Ross Boylan <[hidden email]> wrote:
I'm starting some new projects, one on squeak and the other on seaside.
Both use magma, and the latter will probably use the pharo-based images,
since seaside is using that as a development platform.

Is there any namespace or similar mechanism that it would be advisable
to use?

Not really. People usually prefix their class names to avoid naming collisions.

I'm developing a namespaces architecture that will run on Squeak. It works and I'm writing namespaced code using it, but it is not ready for general use. If people are interested, I could concentrate my efforts on making it usable, but so far I've seen more disinterest than interest.

http://gulik.pbworks.com/Namespaces - including links to an image.

Gulik.

--
http://gulik.pbwiki.com/


Reply | Threaded
Open this post in threaded view
|

Re: [SPAM] Re: [squeak-dev] Advice on new projects

Daniel P Zepeda

On Sep 20, 2009, at 7:47 PM, Michael van der Gulik wrote:



On Fri, Sep 18, 2009 at 6:24 AM, Ross Boylan <[hidden email]> wrote:
I'm starting some new projects, one on squeak and the other on seaside.
Both use magma, and the latter will probably use the pharo-based images,
since seaside is using that as a development platform.

Is there any namespace or similar mechanism that it would be advisable
to use?

Not really. People usually prefix their class names to avoid naming collisions.

I'm developing a namespaces architecture that will run on Squeak. It works and I'm writing namespaced code using it, but it is not ready for general use. If people are interested, I could concentrate my efforts on making it usable, but so far I've seen more disinterest than interest.

http://gulik.pbworks.com/Namespaces - including links to an image.

I think this work is important for more wide-spread acceptance of Squeak Smalltalk and its forks. I know it is only anecdotal evidence, but one of the first things I missed when starting an actual project was namespaces. After using languages that have support for namespaces, using the widely accepted practice of "just prefixing your classes with a two letter prefix" seems quaint and archaic. While that practice gets the job done, it's a turn-off to me, and I imagine that others coming to the language feel the same. 

So while you may be getting disinterest from the established community, again, I think that it would boost the popularity and acceptance by experienced programmers coming to Smalltalk from other 'namespaced' languages. 

DZ




Reply | Threaded
Open this post in threaded view
|

Re: [SPAM] Re: [squeak-dev] Advice on new projects

Göran Krampe
Hi!

Daniel P Zepeda wrote:

> On Sep 20, 2009, at 7:47 PM, Michael van der Gulik wrote:
>> On Fri, Sep 18, 2009 at 6:24 AM, Ross Boylan <[hidden email]>
>>> Is there any namespace or similar mechanism that it would be advisable
>>> to use?
>>
>> Not really. People usually prefix their class names to avoid naming
>> collisions.
>>
>> I'm developing a namespaces architecture that will run on Squeak. It
>> works and I'm writing namespaced code using it, but it is not ready
>> for general use. If people are interested, I could concentrate my
>> efforts on making it usable, but so far I've seen more disinterest
>> than interest.
>>
>> http://gulik.pbworks.com/Namespaces - including links to an image.
>
> I think this work is important for more wide-spread acceptance of Squeak
> Smalltalk and its forks. I know it is only anecdotal evidence, but one
> of the first things I missed when starting an actual project was
> namespaces. After using languages that have support for namespaces,
> using the widely accepted practice of "just prefixing your classes with
> a two letter prefix" seems quaint and archaic. While that practice gets
> the job done, it's a turn-off to me, and I imagine that others coming to
> the language feel the same.
>
> So while you may be getting disinterest from the established community,
> again, I think that it would boost the popularity and acceptance by
> experienced programmers coming to Smalltalk from other 'namespaced'
> languages.

Just a few notes:

- The "established community" has a different view on namespaces in the
sense that most of us value the absence of a lot of "pain" that the
other "namespaced languages" thrust upon us.

- I too :) have implemented a namespace proposal for Squeak, perhaps the
best article I wrote about it is here:

        http://swiki.krampe.se/gohu/32

It is written in a cheeky style because as you may guess, the subject is
slightly touchy :). I wrote that stuff because it was a fun experiment.

And oh, I did fire up my code in latest trunk when I was down in Brest,
and it seemed to work fine.

Regarding the "boost" you mention... well, perhaps. But it is hard to
make a really good non-intrusive namespace system that doesn't sabotage
the rest of the Smalltalk experience.

regards, Göran

PS. No, I don't really think we NEED Namespaces that much (compared to
other things). But if we do end up adding them I really, really, REALLY
think we should do them in a lightweight smart manner and not just
blindly copy some approach from another language with drastically
different characteristics.


Reply | Threaded
Open this post in threaded view
|

Re: [SPAM] Re: [squeak-dev] Advice on new projects

Casey Ransberger
Having a solid (optional) name spacing mechanism would make it much
easier to sell my way into using it at work, I think.

2009/9/21 Göran Krampe <[hidden email]>:

> Hi!
>
> Daniel P Zepeda wrote:
>>
>> On Sep 20, 2009, at 7:47 PM, Michael van der Gulik wrote:
>>>
>>> On Fri, Sep 18, 2009 at 6:24 AM, Ross Boylan <[hidden email]>
>>>>
>>>> Is there any namespace or similar mechanism that it would be advisable
>>>> to use?
>>>
>>> Not really. People usually prefix their class names to avoid naming
>>> collisions.
>>>
>>> I'm developing a namespaces architecture that will run on Squeak. It
>>> works and I'm writing namespaced code using it, but it is not ready for
>>> general use. If people are interested, I could concentrate my efforts on
>>> making it usable, but so far I've seen more disinterest than interest.
>>>
>>> http://gulik.pbworks.com/Namespaces - including links to an image.
>>
>> I think this work is important for more wide-spread acceptance of Squeak
>> Smalltalk and its forks. I know it is only anecdotal evidence, but one of
>> the first things I missed when starting an actual project was namespaces.
>> After using languages that have support for namespaces, using the widely
>> accepted practice of "just prefixing your classes with a two letter prefix"
>> seems quaint and archaic. While that practice gets the job done, it's a
>> turn-off to me, and I imagine that others coming to the language feel the
>> same.
>>
>> So while you may be getting disinterest from the established community,
>> again, I think that it would boost the popularity and acceptance by
>> experienced programmers coming to Smalltalk from other 'namespaced'
>> languages.
>
> Just a few notes:
>
> - The "established community" has a different view on namespaces in the
> sense that most of us value the absence of a lot of "pain" that the other
> "namespaced languages" thrust upon us.
>
> - I too :) have implemented a namespace proposal for Squeak, perhaps the
> best article I wrote about it is here:
>
>        http://swiki.krampe.se/gohu/32
>
> It is written in a cheeky style because as you may guess, the subject is
> slightly touchy :). I wrote that stuff because it was a fun experiment.
>
> And oh, I did fire up my code in latest trunk when I was down in Brest, and
> it seemed to work fine.
>
> Regarding the "boost" you mention... well, perhaps. But it is hard to make a
> really good non-intrusive namespace system that doesn't sabotage the rest of
> the Smalltalk experience.
>
> regards, Göran
>
> PS. No, I don't really think we NEED Namespaces that much (compared to other
> things). But if we do end up adding them I really, really, REALLY think we
> should do them in a lightweight smart manner and not just blindly copy some
> approach from another language with drastically different characteristics.
>
>
>



--
Ron

Reply | Threaded
Open this post in threaded view
|

Re: [SPAM] Re: [squeak-dev] Advice on new projects

Miguel Cobá
El mar, 22-09-2009 a las 20:49 -0700, Ronald Spengler escribió:
> Having a solid (optional) name spacing mechanism would make it much
> easier to sell my way into using it at work, I think.
>
It doesn't really matter that much. I also at the beginning was worried
by this, after several years of indoctrination in the java world.
Until now I have never had a collision with other packages using the
same name that mine. And if that were to happen someday, well,
refactoring tools are very handy to do a rename. Indeed is a non-issue.

--
Miguel Cobá
http://miguel.leugim.com.mx