Change sets, images and developing "stand-alone" apps

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

Change sets, images and developing "stand-alone" apps

Rich-18
I'm fairly new to Squeak/Smalltalk, so please forgive the newbie-ness
of this question.

If I understand what I've found online correctly, one can fileOut
various elements that have been developed in the Squeak environment,
changes such as classes in a particular category, or anything done
while in a "project", and the changes will be written to a "change
set", which is if I understand it correctly something like a diff
against the image I started with.

Here is my question:  Suppose I want to develop a web app using
Seaside (this isn't really a Seaside question, mostly I just wanted an
example of a production level application one would develop and want
running independent of their development environment).  I write the
app in a project in such a way that the code accesses/extends Seaside
code, it's dependencies, and whatever is in the Base Squeak image, but
I develop this app in a Squeak environment with the Full image loaded.
 If I want to run my code independent of my development environment,
could I load my project's change set into a Squeak environment that
has the base image loaded, and launch the app from there?

Thank you very much.

-Rich Seagraves

Reply | Threaded
Open this post in threaded view
|

Re: Change sets, images and developing "stand-alone" apps

stéphane ducasse-2

On 13 janv. 06, at 22:50, Rich wrote:

> I'm fairly new to Squeak/Smalltalk, so please forgive the newbie-ness
> of this question.
>
> If I understand what I've found online correctly, one can fileOut
> various elements that have been developed in the Squeak environment,
> changes such as classes in a particular category, or anything done
> while in a "project", and the changes will be written to a "change
> set", which is if I understand it correctly something like a diff
> against the image I started with.

Yes but I suggest you to have a look at Monticello to manage your code.
and squeaksource look inside http://www.iam.unibe.ch/~ducasse/ 
Teaching/CoursAnnecy/0506-AdvancedOOD/OOPAvance.pdf
there is simple description of MC and Squeaksource in the middle.
This is a much better way to manage your code.

Squeak 3.9 is managed with MC, and all big Squeak projects too:  
Tweak, Seaside, Pier.....

> Here is my question:  Suppose I want to develop a web app using
> Seaside (this isn't really a Seaside question, mostly I just wanted an
> example of a production level application one would develop and want
> running independent of their development environment).  I write the
> app in a project in such a way that the code accesses/extends Seaside
> code, it's dependencies, and whatever is in the Base Squeak image, but
> I develop this app in a Squeak environment with the Full image loaded.
>  If I want to run my code independent of my development environment,
> could I load my project's change set into a Squeak environment that
> has the base image loaded, and launch the app from there?

sure!
You can even manage it via VNC...really cool.
Stef


> Thank you very much.
>
> -Rich Seagraves
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Change sets, images and developing "stand-alone" apps

Julian Fitzell
In reply to this post by Rich-18


Rich wrote:
> I'm fairly new to Squeak/Smalltalk, so please forgive the newbie-ness
> of this question.
>
> If I understand what I've found online correctly, one can fileOut
> various elements that have been developed in the Squeak environment,
> changes such as classes in a particular category, or anything done
> while in a "project", and the changes will be written to a "change
> set", which is if I understand it correctly something like a diff
> against the image I started with.

It's not really a diff... just a sequence of method calls that will
recreate the filed-out methods and classes when executed in another image.

Julian

Reply | Threaded
Open this post in threaded view
|

Re: Change sets, images and developing "stand-alone" apps

Giovanni Corriga
In reply to this post by Rich-18
Il giorno ven, 13/01/2006 alle 16.50 -0500, Rich ha scritto:
> I'm fairly new to Squeak/Smalltalk, so please forgive the newbie-ness
> of this question.
>
> If I understand what I've found online correctly, one can fileOut
> various elements that have been developed in the Squeak environment,
> changes such as classes in a particular category, or anything done
> while in a "project", and the changes will be written to a "change
> set", which is if I understand it correctly something like a diff
> against the image I started with.

There's a distinction between a file out and a change set.
The former is a dump to a file of the source code of a method, or of a
protocol (a set of related methods belonging to the same class, e.g.
"accessing"), or of a class definition + all its methods, or of a class
category (a set of related classes, e.g. "Kernel-Objects"). Usually the
file out has a .st file extension.
The latter is a set of changes to your image, including changes in class
definitions, methods added, removed or modified, etc. There's no need
for this changes to be related at all: you can change two methods in two
different classes belonging to different class categories, and have both
this changes in the same change set.

        Giovanni