Write a note on Coding guidelines Guidelines for developing-00721
This subjective question is related to the book/course vu cs501 Advance Computer Architecture. It can also be found in vu cs501 Mid Term Solved Past Paper No. 1.
Question 1: Write a note on:
- Coding guidelines
- Guidelines for developing short programs.
Answer:
Coding guidelines- Always use semicolons to end statements
- Indent blocks of code (2 to 5 spaces)
- Identifiers
- Use the camel back scheme
- Variables: nouns
- Functions: verbs
- Comment Liberally
- Make them descriptive but concise
- Read and understand the problem
- Do you have all the required data?
- No: Get it
- Else assume it. State it explicitly
- Do the design