Metaprogramming on web server
Posted
by bobobobo
on Stack Overflow
See other posts from Stack Overflow
or by bobobobo
Published on 2010-05-27T21:00:06Z
Indexed on
2010/05/27
21:01 UTC
Read the original article
Hit count: 156
From time to time, I find myself writing server code that produces JavaScript code as the output result.
I can point out why it is really bad:
- Inextricable tie between server code and client code.
- Can render client code un-reusable.
But sometimes, it just seems to make sense.
And isn't it kinda sorta interesting?
I guess the question is, is writing server code that produces JavaScript code a really bad practice, or "does everyone do it"?
© Stack Overflow or respective owner