Programming Conventions
-
About Programming Conventions
Programming conventions are important to programmers because they make scripts easier to read and understand. Writing scripts that are easy to understand wil...
-
Comments
CommentsIt is recommended to make extensive use of comments in your scripts. They will help you and others to more quickly understand the way your code works...
-
Spaces and Line Breaks
Except from within string expressions, you can use line breaks and spaces as much as you like when writing JScript .NET code. Use these to make your code eas...
-
Curly Brackets
It is recommended that you always use the curly brackets ({ and }) in the if, switch, while, do while, for and function statements. If you have just o...
-
Semi Colon
Statements are separated with semi colon (;) in JScript .NET. However, if you have line breaks between the statements, the semi colon is not required....
-
Step by Step Approach
It is possible to do a lot of operations in one long statement. However, this makes the scripts hard to read.Compare for example the following code, which ra...
-
Writing Efficient Code
Below are a few tips on how to write code that is efficient:Define types on your variables, constants and functions when possible.Always make sure that the s...