Skip to content

Blog

Splatting in PowerShell

PowerShell "splatting" is a technique that allows you to bundle command-line parameters - typically in a hashtable - so you can pass them as a group to a cmdlet. This practice results in cleaner, more readable, and easier-to-maintain scripts. In the world of Business Central automation and container management, using splatting makes it easier to work with long lists of parameters that Business Central PowerShell modules, like BcContainerHelper, require. It’s a game changer for those who build and manage large script files or even modules.

Isolated Storage is no guarantee of security

During code reviews and the analysis of partner apps, I have often noticed that centralized "Isolated Storage Management” codeunits are created which have getter and setter procedures. This is certainly nice from a code structuring point of view, but from a security point of view it's a nightmare.

The AppSourceCop gives an indication of the security problem:

AppSourceCop Warning AS0081 - InternalsVisibleTo should not be used as a security feature.

The InternalsVisibleTo setting will expose your internal objects to any extension with the given name, publisher, and ID. Access modifiers are not designed to be used as a security boundary, but for API development.

Source

This message is unfortunately ignored far too often, but it is really important!

Using GitHub Codespaces for AL development

From an DevOps and develop experience (DX) point of view, the announcement that the Visual Studio Code extension for AL development now runs on linux (src) was super exciting for me. At first glance this is not a great thing as most of us have little contact with ubuntu and its ilk in our professional lives. But the Linux support is the basis for remote development and GitHub Codespaces.

Hello World

After i have been thinking about it for a long time i have decided to start a blog.

Let me introduce myself and explain what to expect.