Typical Croquet Development Session

From Croquet Consortium

Jump to: navigation, search

Croquet is based on the Squeak implementation of the Smalltalk language. The current Squeak and Croquet development tools are described on the Squeak swiki.

There are several different strategies that have been used for maintaining code in Squeak and Croquet. This page describes a progression from a very simple strategy to a more complex one. These are just general examples, your mileage may vary.


Contents

Some basic guidelines

  1. It is very important to keep a clean backup image to have a reasonable point to fall back to should problems be encountered.
  2. Note that saving the new code before testing is the safest way to make sure that major changes are not lost if a disasterous error occurs.
  3. It is generally not a good idea to save a working image with a 3D/OpenGL display active.


Very simple Squeak session

A very simple Squeak development session would just load an image, make some changes using a class browser, save a new or the same working image, and test out the changes.


More advanced Squeak session

A more advanced Squeak development cycle uses changeSets as code deltas and probably at least 2 saved images, a clean stable image and a working development image. The biggest reason for using changeSets is that they are usually much smaller than a full image file, and therefore easier to exchange with other developers.

So a more advanced development session using traditional Squeak goes like this:

  1. Start up Squeak with a clean image file.
  2. Optionally use a file browser to open a local working directory and load the changeSet(s) under development.
  3. Using a class browser and possibly other development tools, make changes to the code in the class(es) being developed.
  4. Save a working image.
  5. Test the new code.
  6. Repeat the last few steps until the desired consistency is reached.
  7. Using a single or dual change sorter, save a newly updated version of the changeSet(s) under development back to the working directory. ChangeSets with the same name have an automatically incremented version number in the file name.


Simple Croquet session

Instead of changeSets, current Croquet development uses Monticello as the code repository because of its more flexible versioning capability. There are two sets of shared repositories that are used by the Croquet community. One set is for the current stable release and one set is for the new development release. It is also recommended to use one or more local repositories for your own use.

A very simple development session using Monticello goes like this:

  1. Start up Croquet with a clean image file.
  2. Using the Monticello browser, open a local or shared repository and load the package(s) under development.
  3. Using a class browser and possibly other development tools, make changes to the code from the package(s).
  4. Using the Monticello browser, save a newly updated version of the package(s) under development back to its original repository.
  5. Test the new code.


More advanced Croquet session

It is entirely possible to use a hybrid of the traditional Squeak development and the Croquet development, possibly saving a working image during intermediate development sessions and then saving the Monticello package only when development and testing reaches a milestone.

So a more advanced development session using Croquet would go like this:

  1. Start up Croquet with a clean image file.
  2. Optionally use the Monticello browser to open a local or shared repository and load the package(s) under development.
  3. Using a class browser and possibly other development tools, make changes to the code in the class(es) being developed.
  4. Save a working image.
  5. Test the new code.
  6. Repeat the last few steps until the desired consistency is reached.
  7. Using the Monticello browser, save a newly updated version of the package(s) under development back to its original repository.
Views
Personal tools