Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Programming Microsoft Dynamics 365 Business Central

You're reading from   Programming Microsoft Dynamics 365 Business Central Build powerful, robust, and scalable extensions customized for your business requirements

Arrow left icon
Product type Paperback
Published in Oct 2024
Publisher Packt
ISBN-13 9781803236414
Length 466 pages
Edition 7th Edition
Arrow right icon
Authors (4):
Arrow left icon
David Studebaker David Studebaker
Author Profile Icon David Studebaker
David Studebaker
Marije Brummel Marije Brummel
Author Profile Icon Marije Brummel
Marije Brummel
Natalie Karolak Natalie Karolak
Author Profile Icon Natalie Karolak
Natalie Karolak
Christopher D. Studebaker Christopher D. Studebaker
Author Profile Icon Christopher D. Studebaker
Christopher D. Studebaker
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Chapter 1: Introduction to Business Central 2. Chapter 2: Tables FREE CHAPTER 3. Chapter 3: Data Types and Table Fields 4. Chapter 4: Pages – The Interactive Interface 5. Chapter 5: Reports and Queries 6. Chapter 6: Introduction to AL 7. Chapter 7: Intermediate AL 8. Chapter 8: Extensibility beyond AL 9. Index 10. Other Books You May Enjoy

Development backups and documentation

As with any system where we can do development work, paying careful attention to documentation and backing up our work is very important. Visual Studio Code provides a variety of techniques for handling each of these tasks.

The first area where we can place documentation is in line with modified AL code. Individual comment lines can be created by starting the line with double forward slashes, //. Whole sections of comments (or commented-out code) can be created by enclosing the section with /* ... */. Depending on the type of object and the nature of the specific changes, we should generally annotate each change inline with forward slashes rather than wherever the code is touched so that all the changes can be easily identified by the next developer who will work on this code.

Tip

The easiest way to add – and remove – double forward slashes at the beginning of the current line or for a marked range of lines is to press Ctrl + / or Ctrl + #, depending on your environment’s language.

The best documentation resides outside of our source code. Visual Studio Code has built-in support for Git, which means that we can use any source code control system that supports Git repositories, including, but not limited to, GitHub, GitLab, or Azure DevOps.

There are some great resources on how to get started with Git, such as the ones we mentioned earlier in this chapter. A good explanation of using Git source control in VS Code can be found at https://code.visualstudio.com/docs/sourcecontrol/overview.

In short, when doing development in Business Central VS Code, everything we have learned earlier about good documentation practices applies. This holds true, regardless of whether development involves new work or modifying existing logic.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime