What to read as a good introduction and quick start for aspect-oriented programming and metaprogramming?

As I repeated myself many times, writing very similar queries and classes for different objects (despite doing strong object and relational normalization), etc., I came up with the idea so that I could and should automate most of this and write an engine that will compile simple declarative models that I will point to all the code that constrains my work to describe the task, and finally just tweak the result as needed.

As far as I know, this is about metaprogramming and aspect-oriented programming. How can I become familiar with modern tools available quickly so I don't have to reinvent another wheel designing my own?

+2


a source to share


3 answers


For a good book introducing these concepts, see Domain Specific Modeling: Enabling Full Code Generation by DSM Tool Creators, MetaEdit +

Domain specific modeling is a way of translating your concepts into a code generation model and encompasses AOP and metaprogramming.



I'm working on ABSE, a system that allows you to define aspects and concepts and then automate your tasks with a code generation framework.

+1


a source


The most common background for understanding metaprogramming is programmatic transformations . These are actions that convert a program (fragments) to another program (fragments). All metaprogramming can be explained in the following terms: generation, template metaprogramming, code optimization, aspect-oriented programming, ...



0


a source


Even though it targets a specific programming language, the discussion on generics in the ConceptC ++ tutorial is excellent. The conceptual approach they take is applicable to just about any generic programming - I was able to adapt it for use in generics at the functional level in J, which is about as far away from C ++ programming experience as I got it.

0


a source







All Articles