Benchmarking AL code

In this blog post we attempt to write a simple micro-benchmark to test execution time of a trivial scenario. Throughout the post the benchmarking code will evolve as the common mistakes are presented, explained, and solved. Finally, a relatively good solution will be presented for public usage together with advice on how to run these benchmarks.

Source : BC Internals
Read more…

Guidelines for Partners: Code Analysis Tools

A code analyzer is a library that builds on the compiler’s functionality to offer enhanced analysis of the syntax and semantics of your code at build time. AL code analyzers are used in order for the code to be more readable and orderly, most of the rules, if enabled, return warnings, but there are information messages and errors as well.

Source : Simplanova
Read more…

Dynamics 365 Business Central: Using AL Code Actions

The AL Language extension offers users the option to help fix issues in code. Code Actions is a Visual Studio Code feature providing the user with possible corrective actions right next to an error or warning. If actions are available, a light bulb appears next to the error or warning. When the user clicks the light bulb (or presses Ctrl+.), a list of available code actions is presented.

Source : Dynamics 365 Lab
Read more…