Quote:
> Dan,
>>What is the (recommended, accepted, best, etc.) way to backup the
>>development image and your applications? So far, I only have one
>>application, but I created two packages. One to hold the application
>>and one to hold some graphic extensions I think are going to be useful
>>elsewhere. Each package has some classes that belong to it, and some
>>loose methods from other classes.
>>In VisualAge ST, I keep a copy of the image after I get it configured to
>>a working condition I.E. IBM features, third-party class libs and my
>>common stuff. Actually, I keep a few backups along the way to that
>>state. I do tend to save my image with my applications, and I also
>>export my applications fairly often.
> There are probably several ways that people use but this is my
> recommendation:
> 1) Assign all your work to packages and save these separately from your
> image. If you are using Dolphin 5 then we'd recommend a scheme whereby you
> save them into a directory with your name (or your company name) under the
> directory where your image is kept. The packages should be the main place
> where you keep your work. You can always rebuild your image from packages if
> it becomes corrupted in any way.
This has been fairly easy to keep up with. I have ended up with some
loose methods assigned to the wrong package, but that got sorted out.
Quote:
> 2) You should regard your image as a temporary work environment but not a
> place where your source is held on a permanent basis (that is the job of
> packages). I tend to save my image every few minutes when working in Dolphin
> (especially before trying anything risky). This means you can always restore
> to your state of a few minutes past should you corrupt your in-memory image
> in any way. If you need to roll back to a saved image then don't forget to
> use Ian Bartholomew's changes browser (www.idb.me.uk) to bring back lost
> changes from your recent change log (.chg).
This is how I tend to work. Regardless of
Smalltalk, there seems to be
a split on this subject. I just wanted to make sure I wasn't dancing
with the devil by working this way.
Quote:
> Having said this, a fair few of our users *always* rebuild the image from
> scratch (with an automatic script) each time they start Dolphin. They never
> save out a modified image, only packages, and always start from afresh by
> reloading all packages on image startup. This, however, is not my preferred
> way of working.
> 3) I would also take a backup of your image (all three files .img, .chg and
> .sml) on a daily basis, probably using your normal backup routine. This will
> allow you to roll back to a fairly working state if your saved image becomes
> corrupt and you have forgotten to save out your packages. This is useful
> since it is possible (although rare) to save out a corrupt image that won't
> load. This additional daily image backup can then be used to get out of
> trouble. Once again you can use Ian's changes browser on the most recent
> change log to bring back lost stuff into the backup image. There are some
> some addtional words about image management in the online help at:
I haven't looked at the change browser yet, that seems like a very nice
tool.
Quote:
> http://www.object-arts.com/Lib/EducationCentre4/htm/managingprojects.htm
> 4) Ideally, you should think about checking your packages into a change
> control system (if you have one). Dolphin supports file based source control
> systems such as MS SourceSafe and CVS (although we have no direct experience
> with the latter). The best way to do this is to enable PAX source format in
> the Package Browser. This saves each package out as a number of separate
> source files suitable for checking in to you SCCS. There are some additional
> details in the D4 online help here:
> http://www.object-arts.com/Lib/EducationCentre4/htm/sourcecontrol.htm
This is good to know, but I will probably wait on that. Can you
manually save versions of packages and load them back in later. I'm
thinking more along the lines of releasing a project, working on the
next version then finding that you have to fix a bug in the earlier
version. Is this as simple as it seems, or would you need a source
managment or source tracking system for this.
Quote:
> 5) You may also like to consider using David Gorisek's Source Tracking
> System which is an integrated change management system for Dolphin with
> similar functionality to ENVY. You can find details of this here:
> www.gorisek.com. If you choose this way of working you can avoid having to
> save out individual package files since your source is held in an external
> object database (Omnibase) repository.
This looks very nice. Have releases of this tracked well with releases
of Dolphin? I guess that's a general question I should ask separately,
but maybe I can get an answer here. So far, I'm working well in this
environment, but (fortunately) I've added a lot of code from other
sources. Has this code transitioned well from version to version of
Dolphin?
Quote:
> I hope all this helps in some way.
Very much so! Thanks.
Dan
Quote:
> Best Regards,
> Andy Bower
> Dolphin Support
> http://www.object-arts.com
> ---
> Are you trying too hard?
> http://www.object-arts.com/Relax.htm
> ---