Microsoft Dynamics Ax developer's blog

Thursday, January 25, 2007

Abstract macro

Recently published article about trick, whch I have often used in BAAN and sometimes in Dynamics Ax programming.

read the article at Axaptapedia

Two days ago I have added a new inventory dimension and was impressed how many work can be eliminated using this trick...

But don't overuse macros in can lead to less readability of your code.

One time I have used macros to build something like internal DSL to describe mapping of Ax tables to interface tables on SQL server and now one my ex-collegue claim it is unreadable.

1 comment:

Mkz said...

Hi :)

Really nice trick !

It's true that the code could become unreadable but ... at least in this sample it seems more useful than unreadable ;)

Kind Regards,

A Dynamics Ax tricks site in Spanish language :)