In software we’ve invented all kinds of terminology to make it sound as if removing a feature is great. Terms like sunsetting and retirement give you a great feeling. Who does not love to see the sun go down with a beer and a loved one.
In reality it means that software that once was is no longer and we’ve had plenty of that in our beloved Navision product, now referred to as Business Central.
FOB is an abbreviation of Financials Object, just like FLF is short for Financials License File.
We use FOB files to move objects from one database to another using C/Side.
In the future of Business Central there is no room for C/Side. Microsoft is currently working very hard to make the Visual Studio Code experience and the ALC.Exe compiler mature enough to replace C/Side. On top of that C/Side also manages the system tables and a lot more that “something else” has to take over.
But this post is not about C/Side. C/Side will be there in October when NAV 2019 is released just like the Windows Client and the Fob option. But that does not mean it is smart to continue using them.
Loyal readers of my blog will not be surprised to read that I am not a fan of how NAV is architected, designed and coded.
I’m not talking about the base design principles and patterns. They are fine and should be used, but also by Microsoft.
NAV is one monolithical application where the functional modules cannot be recognised in the code structure.
This is not a problem in C/Side because here we can easily filter on object names and object numbers and most of us somehow leverage the Version List to filter on objects that have been modified for a project or customer.
When we make a Fob we apply a filter in C/Side and export the files. This export does not necessarily need to contain all changes. We can cherry pick.
I did this for one of my customers this week. We are hybrid in NAV2018 and have close to 2.000 new objects added to NAV. We wanted some of the modifications in DEV to ship to PROD, but not all of them.
This is easy these days by just marking the objects, exporting them, putting them into the Acceptance system, do one final test and go live.
Let’s say that I move all of this customers modifications to an extension. I actually tried this a few times.
When NAV 2018 was just released I ran the ExportToNewSyntax and the Txt2Al and quickly gave up. I had hundreds, if not thousands of compile errors which were caused by many things starting with bugs in the export, the converter and then the fact that NAV 2018 does not support DotNET which crashes a big percentage of our code.
I did the same thing a few weeks ago and to my surprise I was down to 414 errors. Many things had been fixed and DotNET variables no longer error out although they don’t work yet.
When NAV 2019 ships in October these 414 errors are probably down to a number that is overseeable and fixable. DotNET will work and I can migrate everything to an extension.
If I migrate all my changes to one super extension my life will become impossible. It will be very hard to work with Visual Studio Code because finding objects is hard. The compiler will be very slow because it has to evaluate 2.000 objects with each keystroke.
Working on the same database with more than one developer will be hard, even if we use Git and GitLens. Sure, Git will merge but it will make mistakes and I will loose time.
Moving parts of my changes which are finished and testing while leaving out ongoing mods will be extremely hard.
I need to break down my solution into smaller projects with dependencies. If I break down my 2000 objects into groups that belong together and compile together I can ship different versions when they are tested. I can write automated tests for these components and have different developers working on different parts of the application without them running into Git Merge issues.
I can have junior developers working on simple extensions and have senior developers work on the core objects that are difficult to maintain.
I don’t know. Because DotNET is not supported yet I’ve not yet had a chance to move stuff around easily.
In theory it should be as easy as moving .al files around into different projects and have the compiler test if everything still works.
You’ll probably run into the situation where you have to move code from OnValidate triggers to events because they belong in different components.
Right. This is exactly why I am debating this for my customer. For the last 20 years or so we’ve been using NAV as a development environment. The solution has very little dependency on NAV.
With Extensions and Visual Studio Code Microsoft is moving into a more Object Oriented approach with dependencies and a high level of abstraction.
For this reason I am comparing NAV to .Net Core. This allows us to use the full C# stack, Entity Framework and any HTML front end framework like Angular, React or whatever the framework of the day will be in five years.
Whatever I can do today as an Extension I do as an Extension. We have 8 extensions already and none of them have more than 20 objects.
With a little help from the ForNAV Object Explorer it is very easy to manage. Every extension gets 10 numbers assigned from our license. When we need more than 10 numbers the extension get’s too complex and has to be broken up into more components.
We will probably end up with about 30 extensions, maybe less if we move some of our components to .Net Core.
In .Net Core we are going to take the same approach. Small projects on a shared core. We have four projects as we speak that have organically grown over time. This summer the plan is to synchronize them and generate a NUGET package that will allow communication with the Business Central API.
Who knows, this NUGET package might be available for you as well.