- A model that describe your application - you don't need to define it yourself, you can use XMI or XML schema as the reference model. The only problem is how you parse them to the object model.
- A template engine - Velocity or Freemaker are good template engines in Java.
- Templates that corresponding to the model - Generate code Java, PHP, C#, etc.
- A configuration of templates - There would be configurations for desktop app, web app, RIA, or web services, etc.
- A parser that parse the configuration - If the configuration is an XML file, Apache's commons-digester library can help.
- A driver to glue up everthing.
- Optionally, a validator for the template is good - JavaCC or ANTRL for syntax validation. For the extreme, use a compiler to verify the correctness of the generated code.
Sunday, January 29, 2006
How to build a source code generator
Tuesday, January 24, 2006
Web 2.0 is Just a Milestone
After reading some articles and blogs, I found that Web 2.0 is not really new thing. It's just a milestone that saying the internet has evolved into new phases. People are not working alone but collaborated. XML and HTTP make different platforms more integrated comparing to the DCOM and COBRA. Thanks to AJAX, web applications are almost as dynamic as desktop applications. Whenever you go, whereever your are. You can access the application with your electronic devices (mobile phone, PC, PDA, etc). No more deployment and update patches is need.
If Web 2.0 is a milestone, what else we can do with it? Just celerbrate and get back to work! Have we rearched the milestone yet? Not really! Let's work harder for it.
If Web 2.0 is a milestone, what else we can do with it? Just celerbrate and get back to work! Have we rearched the milestone yet? Not really! Let's work harder for it.
Subscribe to:
Posts (Atom)