-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Daniel Rall <[EMAIL PROTECTED]> writes:

> [EMAIL PROTECTED] (Kevin A. Burton) writes:
> 
> > I also don't like generated APIs.  This is
> > one of the main reasons not to use something like Castor/Antlr.
> 
> Bah.  Generated APIs just need proper encapsulation (shocking that the
> rest of the program works like that too, eh?).  Use of a parser
> generator is a very good suggestion.
<snip>

... it can get pretty dirty.

- - do you put the APIs in CVS?  What if you make subtle modifications to them.
- - if you don't put them in CVS you have to generate them at build time.
- - if you put them in CVS then every time you change the API generator you get
  redundant CVS commit messages

- - generated APIs don't follow your coding conventions.

- - javadoc for generated APIs is usually terrible.

I think the solution to some of these is to expose your generation via XSLT.  My
xjay (http://xjay.sourceforge.net) project solve some of these but I didn't have
a chance to take it too far.

Kevin

- -- 
Kevin A. Burton ( [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] )
        Cell: 408-910-6145 URL: http://relativity.yi.org ICQ: 73488596 

Resistance is *not* futile!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt

iD8DBQE64zcpAwM6xb2dfE0RArsvAJ9Vqey/iegyNd4jHLOD3YjKoZpNrwCgy59v
XCffuxzJTw3cQN7jTmL8b5c=
=V3TP
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to