web10199_worksheets

Exercises and examples


Project maintained by ebajcar Hosted on GitHub Pages — Theme by mattgraham

Coding style

Our code must be as clean and easy to read as possible. That is the art of programming – to take a complex task and code it in a way that is both correct and human-readable. One thing to help is a good code style.

Syntax

This is a set of rules used in this class.

  1. No space between the function name and the bracket between the bracket and the parameter.
  2. A space between parameters.
  3. Figure bracket { on the same line, after a space.
  4. Spaces around operators.
  5. A semicolon ; is mandatory.
  6. Lines are not very long (less than 80 characters).
  7. } else { without a line break.
  8. Spaces around a nested call.
  9. An empty line between logical blocks.
  10. A space after for/if/while.
  11. Indentation 2 spaces.

The materials provided in class and in SLATE are protected by copyright. They are intended for the personal, educational uses of students in this course and should not be shared externally or on websites such as Course Hero or OneClass. Unauthorized distribution may result in copyright infringement and violation of Sheridan policies.

SYST10199 Web Programming @ Sheridan College