Best Practice for Development
Best Practices for Developers: 1. Variable or constant or parameter declarations should be as local as possible to utilize memory resources in an efficient way. 2. Unused variables, methods, and classes should be removed from the code. 3. The re-usability should be maximized. E.g. rather than repeating lines of code at different places, a single method can be written so that changes in the method can be reflected at all the places where this method is used. 4. A method should perform a single well-defined task and be named according to the task performed. 5. All the text used in Dynamics AX is supposed to be in a label 6. A try or catch deadlock or retry loop should always be created around database transactions that can cause deadlocks. 7. Prefer switch stat...