views:

99

answers:

1

I am going to write a groovy script to generate a buttload of constants in a javascript file. ;)

Maybe cross-language metaprogramming? meta-language meta-programming?

To be clear, I am asking what category this falls under

+6  A: 

It's more like code generation or generative programming, which happens to be a subset of metaprogramming. So I guess you could call it "metaprogramming", but it is a little bit of a stretch. Most people refer to this kind of programming as simply "code generation".

What most people consider metaprogramming would be a program that modifies itself (or its code) during runtime.

More information is available here.

Vivin Paliath
ahh yeah, you are right. First time I did something like this, kind of excited about it...tee hee
hvgotcodes
+1, but isn't reflection only looking back (reflecting) on the code but not modifiying it?
mathepic
@mathepic Oops you are right. Will fix.
Vivin Paliath