You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Best Practices for BML Scripting

32
Views
0
Comments

Readable code is easier to debug, extend, and modify, thus increasing the productivity.

1. The Function Header should describe the entire script's salient properties.

2. Follow conventional indentation and bracketing practices (alignment).

3. The name and format of a BML local variable should immediately communicate its purpose, intended behavior, and usage.

  Ex: totalListPrice is the sum of all line item list prices

4. There should never be more than one statement on one line that is, never more than one semicolon ending a statement).

5. Print statements should be extricated from convoluted code and separated into a debug-flag controlled if block, and if it doesn't cause the code to become less readable.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!