HelloWorld.al

  • Post category:News
  • Post comments:10 Comments
  • Reading time:3 mins read

Finally. Not quite, but still – finally! We finally get the first public glimpse of future of AL code writing, courtesy of Microsoft Dynamics NAV development team.

As you might know, Microsoft is working around the clock to enable new kind of programming for NAV: using Visual Studio Code instead of Microsoft Dynamics NAV Development Environment. They announced it with due fanfare at Directions US, Directions EMEA, and NAV TechDays, and now the NAV community is biting their fingernails off waiting for Microsoft to actually release the thing.

They said some kind of preview will be made somewhat available sometime in December this year, but for now we have got the first glimpse of the new AL syntax.

To see for yourself, go here:

https://github.com/Microsoft/AL

Just for comparison purposes, take a look at what a simple “Hello, World!” codeunit would look like in the new syntax, as opposed to the (too) verbose text file format:

image

It’s a huge difference. Okay, the editor extension itself is not published yet, so for now we can only behold the syntax, but that’s a great first step.

What I absolutely like:

  • Casing: keywords are lowercase, identifiers are title case. This finally resembles serious programming languages.
  • IDs: or lack thereof. It may seem like a small step for man, but it’s a giant leap for NAV development world.

What I don’t like:

  • Object IDs are still here. Yes, I know it’s a long shot to even hope to lose these pesky little gremlins anytime soon, because it would require a major brain surgery of the entire NAV platform, but I had to put something into the dislike section.

According to Microsoft, the immediate goal of enabling VS Code development is to enable us to write NAV extensions (and D365 apps!) without using the development environment. This means that (for now) we won’t be able to use this tool for general NAV development, but I’ll hope a little more and say that I am looking forward to the moment not only extensions are developed in VS Code.

And, by the way, did you notice that there are no more IDs?

Vjeko

Vjeko has been writing code for living since 1995, and he has shared his knowledge and experience in presentations, articles, blogs, and elsewhere since 2002. Hopelessly curious, passionate about technology, avid language learner no matter human or computer.

This Post Has 10 Comments

  1. Zayed

    Hi Vjeko,
    I just need to understand something would this replace completely the standard C/AL Developing Environment that we are used too? Or such Visual Studio Code will be just an option for extensions?

    I am just worried that in the future we all have to develop using C#??

    Best Regards,
    Zayed

    1. Zayed

      Ps: I mean developing in the future only using C#

    2. Vjeko

      Hi Zayed,

      For now – it’s only for extensions development, only an option for doing that, and it won’t be C#. Don’t worry 🙂

  2. devch

    It looks great and i realy hope general NAV development will be possible with this in the future.
    It would improve our current Git workflow so much! I mean no more changes in txt files because nav thinks it should reorder properties when exporting again for some no good reason!
    Almost like real language/tooling 🙂

Leave a Reply