Automating Your Application

time to read 2 min | 224 words

I just found this: Adding JScript.NET Macro Support to Your Application [via CraigBlog]

This is a very cool (and simple, and elegant) idea. What I like even more is taking this idea further, and using this to do the last layer glue for the application. Considerring the level of seperation that we usually have, we (hopefully) write an application by creating small parts that are independant of each other, and only at the end we bring them together, this allows to create an application that would be far easier for the user to modify.

For example, let's say that I would do that for NQA, here is how you would translate an HQL statement from an existing project [Uncompiled code]:

var dataMgr = AppDataManager.DefaultAppManager;
var myPrj = dataMgr.GetProjectByName("My NQA Project");
MessageBox.Show(myPrj.TranslateHql("from Customer cst where cst.PayementRecieved = true"));

I might get to that, if/when I'll get NQA to the state that I want it.