Morph X Best Practices Microsoft Dynamics TM AX

Morph. X Best Practices Microsoft Dynamics. TM AX 4. 0 SCREENCAST Michael Fruergaard Pontoppidan Partner Productivity – Microsoft Dynamics AXTM Microsoft Corporation

Best Practices in Morph. X • Two components • SDK Documentation • Throughout documentation of all best practices • When printed >200 pages • Static code analysis tool • Verifies <50% of all best practices

Static code analysis tools C/C++ Compiler PREfast PREfix C# C# Compiler FX Cop X++ Compiler Best Practice Tool

Defect removal Risk of extra cost Time saved Time Defect introduction Defect removal Time

Best Practice Check Tool in Morph. X • Contains ~350 rules § Model definitions § Source code (X++) • Severity § Errors Unacceptable! § Warnings 95/5 rule § Infos Useful info • Integrated with X++ compiler • Integrated with check-in system O M E D

AX succes story • AX 4. 0 shipped with Source date 1 st of April 2004 § 0 compiler warnings § 0 BP errors

Suppressing Best Practice Deviations • Design time //BP Deviation Documented § Sys. Bp. Check. Ignore macro § • Run time § Sys. Bp. Check: : ignore(<errorcode>); O M E D

Creating new rules • Best Practice tool implementation § In X++ in Sys. BPCheck* elements § Fully customizable/extensible O M E D

© 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.
- Slides: 9