Dynamics Business Central / NAV Developer Digest - Vol. 554

Dynamics Business Central / NAV Developer Digest - Vol. 554

ArcherPoint by Cherry Bekaert’s Developer Digest focuses on Microsoft Dynamics 365 Business Central and Dynamics NAV development. This week’s volume includes security practices for developers using GitHub, using specifications when building apps with agents, managing AL loops, and Easter eggs in AppSource apps.

The Dynamics 365 Business Central community, consisting of developers, project managers, and consultants, collaborates across various platforms to share valuable insights. At ArcherPoint, we greatly value their dedication and expertise. To ensure widespread access to this technical knowledge, we created Developer Digest.

GitHub, malware, and developer security

Recently, GitHub was affected by a malware breach that exfiltrated about 3800 internal repositories.

This was made possible because VS Code extensions are not sandboxed; instead, they run with full IDE privileges to the file system, the environment, the terminal, and more!

Stefano Demiliani walks through several options that developers can use to enforce security in their Visual Studio Code environment.

As Demiliani points out, “Developer machines deserve the same security rigor as production infrastructure. They’re security-critical because they accumulate every secret a developer touches, have unrestricted network access, and control the beginning of the supply chain. A single compromised developer endpoint compromises everything downstream.”

Read the full blog, Be careful with Visual Studio Code extensions…, to learn more.

Give your agents the specifics

Vibe coding is fast, but it can produce sloppy code, particularly when working with multiple developers: patterns are duplicated, decisions are inconsistent, and code is written that duplicates existing BC functions.

To avoid these and other problems, Dmitry Katson proposes defining code specifications that give the agent strict guidelines to follow between chat sessions and enforce them within the development team. This lets you decide the architecture and the standard BC functions to use. The agent might forget everything when you create a new chat, but the specifications won’t.

To learn more, check out Katson’s Spec-Driven Development — The Way to Build Apps with Agents.

Managing AL loops

Loops are an essential part of programming. But sometimes, managing a series of nested loops can get confusing.

Brad Prendergast offers a tutorial on using the continue and break statements effectively in loop situations, such as:

  • repeat…until
  • while…do
  • for…do
  • foreach…in…do

Prendergast also offers recommendations to avoid typical gotchas in loops.

Read Prendergast’s Using the Continue Statement in AL Loops to learn more.

Easter egg hunts in AppSource

“Easter eggs” in software are fun, usually undocumented features intended to make users smile or provide a break. Erik Hougaard provides a short but entertaining video on finding Easter eggs in BC and AppSource code. As he points out, remember, Microsoft was the company that gave you Flight Simulator in Excel at one point.

Check out his video, Can an AppSource App have Easter Eggs in it?

Are you interested in Dynamics NAV and Business Central development? Check out our collection of NAV/BC Development Blogs.

Read “How To” blogs from ArcherPoint by Cherry Bekaert for practical advice on using Microsoft Dynamics NAV and Dynamics 365 Business Central.

Stay Informed

Choose Your Preferences

"*required" indicates required fields

This field is for validation purposes and should be left unchanged.
Subscription Options
By subscribing you are consenting to receiving emails from ArcherPoint and agreeing to the storing & processing of your personal data as described in our Privacy Policy. You can can unsubscribe at any time.