Refactoring the C/AL Code

When we discuss the methodology for refactoring, we need to focus on two areas. The first focus is on the data model—the way we store data in tables. The other is business logic—the code that is executed.

When we refactor the application, the restriction is that we do not introduce new functional features. We should focus on optimizing our application. This makes it easier to test the application, since the functional result of our transactions should match the old application.

Combining refactoring and implementing new features is very possible, but this introduces a substantial risk to our project that should be avoided if possible.

Refactoring tables

There is only a limited set of scenarios where refactoring tables is ...

Get Microsoft Dynamics NAV now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.