Extreme programming - module template

Luke Gorrie luke@REDACTED
Fri May 2 17:37:35 CEST 2003


> I would like to present and ask for suggestions on an updated
> template that we want to introduce in the extreme programming
> environment - having had a look at Dunit (delphi) and Junit (java)
> and a few others - I started thinking of extending the current stuff
> we have.  All suggestions welcome :)

It looks really bureaucratic to me, with all the boilerplate. (Sorry,
you asked! :-))

I also think that is a lot of real code to be including in a template
(e.g. module_test/1). I think you should Refactor as much as possible
into a library, so you can have it Once-And-Only-Once in the source
code and change it more easily. Templates are really copy-and-paste

You could also write the version/0 function as a library routine if
you like. It could call YourModule:module_info(attributes) to extract
the 'revision' attribute, and then parse that.


More information about the erlang-questions mailing list