[Haskell-cafe] Code that writes code
Brandon S Allbery KF8NH
allbery at ece.cmu.edu
Wed Aug 25 13:41:23 EDT 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 8/24/10 17:51 , Richard O'Keefe wrote:
> On Aug 22, 2010, at 7:34 PM, Jesse Schalken wrote:
>> I would also like to strongly discourage code generators.
>
> I've used ad hoc code generators a lot, and never had
> reason to regret it.
>
> The key point is that ALL maintenance of the generated code
> must be done by maintaining the generator and its input,
> NOT by patching the output.
I have one additional exception: I will sometimes autogenerate a skeleton
by e.g. grepping over a source tree. This has the opposite constraint:
once generated, you don't regenerate it unless you can characterize it well
enough that you can treat it as above; but usually it's a one-time code
refactoring.
- --
brandon s. allbery [linux,solaris,freebsd,perl] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkx1VcMACgkQIn7hlCsL25WYTQCglf5U3GZNVLO/Zta42IXcztzj
uJQAnRKE5svSoYMag0gb3YIeDfuc3AMn
=52i1
-----END PGP SIGNATURE-----
More information about the Haskell-Cafe
mailing list