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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.