Best practices are not only about technology. They are about patterns. Among developers, we talk about patterns and anti-patterns.

Code Cops and rulesets are natural parts of modern software development.

If you have not enabled Code Cops and rulesets, you do not have modern software development. It is that simple.

Why are standard patterns important?

We know this from everyday life. When something is familiar, we use our intuition and experience. When something is new, we need more time to analyze it. The same applies to AL code.

Developers are often asked to change code written by someone else.

If the code uses:

  • Standard patterns - we can work efficiently and quickly understand the solution. It costs less.
  • Anti-patterns - we must first analyze the code and work out what is happening. It costs more.

Code Cops and rulesets

More than 200 rules can be checked automatically by the Code Cops. Some of the issues can even be fixed automatically.

When I inspect the configuration of your Business Central code, one of the things I check is whether automatic validation of all rules is enabled.

How does this help the developer?

Code Cops and rulesets give the developer immediate feedback. Instead of waiting for code review, they are notified immediately if the code does not follow Microsoft’s recommended guidelines.

This means that the developer:

  • Finds defects earlier - Problems are discovered before review
  • Learns best practices - Automatic feedback helps teach the right patterns
  • Saves time - Many issues can be fixed automatically, allowing the developer to focus on functionality
  • Works more consistently - All developers automatically follow the same standards
  • Simplifies code review - The colleague reviewing the code does not need to worry about these checks

The result is better code, faster development, and fewer defects to fix later.

What does this mean for you?

Best practices are not merely “nice to have”; they are a direct investment in lower costs over time.

When your code follows standard patterns, maintenance costs less. Developers can work faster, defects are found earlier, and new developers become productive sooner.

Code Cops and rulesets automatically ensure that the code follows best practices. This means less risk of defects, lower maintenance costs, and a solution that is ready for the future.

Without best practices and automatic checks, technical debt accumulates. Changing the code becomes more expensive, defects become harder to find, and upgrades become riskier.

Invest in best practices now—it pays off.

Let me help you

Are Code Cops enabled for your solution?

Let me help you enable them.

I look forward to hearing from you.

Finn Pedersen

finn@finnpedersenfrance.com

Phone: +45 21 47 35 74