AAC20 - App - How to organize Logic components in AAC20
Introduction
Proper organization of logic components in AAC20 enhances readability and maintainability of the system.
Good Practice
For optimal organization of logic components within the AAC20 system, adhere to the following guidelines:
Use the Logic Folder:
Primarily, store all logical components in the 'Logic' folder. This centralization simplifies navigation and understanding for anyone who works with or maintains the system.
Create Subfolders:
Within the 'Logic' folder, create subfolders that are named according to their function or the specific driver they relate to (e.g., AHU, BACnet). This method helps in segregating and categorizing the logic for different functionalities or protocols, making it easier to locate and manage.
Avoid Miscellaneous Placement:
Refrain from placing logic components in non-standard locations such as 'drivers/localIO' or under specific driver folders unless absolutely necessary. Keeping logic in unexpected places can lead to confusion and difficulty in maintenance.