In Software Tools, Kernighan and Plauger said that
[g]ood Programming is not learned from generalities, but
by seeing how significant programs can be made clean, easy
to read, easy to maintain and modify, human-engineered,
efficient, and reliable, by the application of common
sense and good programming practices. Careful study and
imitation of good programs leads to better writing.
This, I think, is a good argument in favor of sharing source code.
Note that I am not claiming that my programs are significant or
good: I wish simply to point out that one cannot easily study
and imitate another's program without access to its source code.
Each of these programs is distributed as free software
under either version 2 or version 3 of the GNU General Public License,
which means you may modify and redistribute the programs
under the same terms.
-
Tournier
-
Tournier is
a very simple command-line application written in Java
with which you can schedule matches in
a league with two legs and an even number of teams.
I wrote it in a big hurry for some friends at the University of Lugano's Faculty of Informatics
who were writing a soccer championship simulator.
:-)
[2006]
-
TreDim
-
TreDim is a 3D modeling application
written in Smalltalk for the Squeak environment.
It allows the user to specify
common three-dimensional objects
(such as cubes, cuboids, pyramids, cylinders, cones, and spheres)
and query them for some of their properties
(such as surface area, volume, and bounding box).
It relies on
the
WObjectExtension
and WTestingFramework packages, which
were developed for TreDim and
are included in the TreDim distribution.
[2006]
-
queens
-
My solution, written in Scheme,
to the classic n queens problem.
I wish to thank Mircea Lungu,
a truly swell guy,
for his review of my solution.
[2006]
-
Sepp
-
Sepp is a version of the classic sliding puzzle game in which
the properly ordered tiles form a picture.
The picture is user-selectable, as is the tile-grid geometry.
Additionally,
Sepp implements an innovative kind of player aggravation:
based on a user-configurable degree of evil,
it decides, during each animation frame,
whether it will disturb a tile while the game is in progress.
Sepp is written for the DrScheme environment,
which is available for all major platforms.
[2005]