Re: Test first as specification
- From: Laurent Bossavit <laurent@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 3 Aug 2005 02:46:03 +0200
Daniel,
> Do you know of any prior experience with specifying a programming
> language by tests?
I'm not aware of any attempt to do exactly that, but there are languages
for which a comprehensive test suite was built in parallel with the
language; XSLT comes to mind.
It's much easier to find cases where a comprehensive test suite was
built after the fact, and is useful to the original implementors, to
vendors of "compliant" alternatives, and even to end users. Ada, Lisp,
Fortran, Java - most prominent languages have test suites.
Many TDD practitioners report, and my experience tends to confirm, that
developing comprehensive test suites after the fact and results in tests
that are harder to write and maintain, and which don't read as well. I
wouldn't be surprised if someone finally took the hint and wrote a
language test-first - not necessarily TDD, but at least building the
test suite systematically in parallel with the implementation.
"Specifying by tests" sounds a bit more ambitious, and ambiguous. There
are different areas to specify, more or less independent of each other;
the language syntax, the semantics with respect to some abstract
machine, the binary code generated, features such as garbage
collection...
Laurent
.
- Follow-Ups:
- Re: Test first as specification
- From: paul campbell
- Re: Test first as specification
- From: Daniel Parker
- Re: Test first as specification
- From: Dmitry A. Kazakov
- Re: Test first as specification
- References:
- Re: Test first as specification
- From: Roger L. Cauvin
- Re: Test first as specification
- From: paul campbell
- Re: Test first as specification
- From: Laurent Bossavit
- Re: Test first as specification
- From: Daniel Parker
- Re: Test first as specification
- Prev by Date: Re: OO Design induces an existential crisis
- Next by Date: Re: Language Oriented Programming
- Previous by thread: Re: Test first as specification
- Next by thread: Re: Test first as specification
- Index(es):
Relevant Pages
|