Quantcast
Channel: Microsoft Dynamics 365 Community
Viewing all articles
Browse latest Browse all 64797

Setting AX coding standards for contractors and consultants

$
0
0
Maintaining a consistent code base in your application is very important. When dealing with external resources to provide code for your environment it is important they understand what you expect beyond "code that works". It needs to work with everything else you have done. To help ensure I provide the following to everyone to agree to before they provide code. 


  1. All custom development requires an approved functional design and technical design document.  These can be part of the same document, but customer sign-off is required before any coding is started.
  2. Code is to:
    1. Be written on the CUS layer of the development environment.
    2. Compile error free.
    3. Not have any best practices errors.
    4. Be fully commented including name, date, short description of functionality, and definition of any parameters.
    5. All custom tables, enums, EDT's, classes, forms, etc are to be prefaced with PREFIX
    6. Any custom methods on existing items are to be prefaced with PREFIX
    7. Fields on tables and forms are NEVER to be repurposed. Create a new field as needed.
    8. Make names as descriptive as possible.
    9. Use a label file for all labels
    10. Follow Microsoft X++ Coding standards (http://msdn.microsoft.com/en-us/library/aa855488.aspx)
  3. Performance:
    1. All code is to be designed with performance execution in mind. Eliminating unnecessary code calls and validation. 
    2. Any tables created are required to have a clustered index and additional indexes as required
    3. Code should be tested under expected load and optimized as appropriate.
  4. Upon completion and unit testing of code, a code review will be completed by our technical resources before moving to the test environment. Any technical issues will need to be addressed before the code is accepted.
  5. Code Moves
    1. AX 2009 – Regular code is to be moved via Layer files, not XPO.  XPO can only be used for emergency hot fixes.
    2. AX 2012 – Regular code is to be moved via AX Model Stores, not XPO.  XPO can only be used for emergency hot fixes.
  6. When in doubt, ask a question.



Viewing all articles
Browse latest Browse all 64797

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>