Whitespace
From NWN Lexicon
Jump to navigationJump to searchUsing whitespace is a matter of preference depending on the developer. It is recommended that white space is used to make your code more legible.
Using tabs (or spaces) to indent blocks of code helps in the readability. Take, for example, the following:
The above is fairly trivial, but using carriage returns and indentation, it can be made much easier to read:
It is generally accepted that after placing a semicolon at the end of the line, one should also insert a carriage return (the [ENTER] key). This is not required, but not using carriage returns can quickly result in hard to maintain code. You can also use a carriage return to break up a long function call, or clarify nested function calls.
becomes
author: Charles Feduke