Construction
βΉοΈSummary
This phase is where development begins. Good coding practices, good code comments, and how to do good code reviews are outlined and explained.
The code step concerns the implementation of the structures modeled in the design phase. This phase is where development begins, and probably the main reason why you are on this course. Tutorials on how to code e.g. syntax of languages is not greatly covered in here, instead, good coding practices, good code comments, and how to do good code reviews are outlined and explained.
Writing your first code? Need a syntax refresher?
Donβt forget to check your seminar and lecture resources on Blackboard. You might also try flowgorithm (Windows-only) to turn flowcharts into code.
Coding Standards
Coding standards & conventions serve the following purposes:
- They create a consistent look to the code, so that readers can focus on content, not layout
- They enable readers to understand the code more quickly by making assumptions based on the previous experience
- They facilitate copying, changing, and maintaining the code
- They demonstrate C# and C++ best practices
This is because:
- 80% of the lifetime cost of a piece of software goes to maintenance
- Hardly any software is maintained for itβs whole life by the original author
- Code conventions improve the readability of the software, allowing engineers to understand new code more quickly and thoroughly
- If you ship your source code as a product, you need to make sure it is well packaged and clean as any other product you create
For guidance and further references on coding standards for some of the languages you may encounter at university, visit:
- C#/C++ Coding Standards
- Java Coding Standards
- JavaScript Coding Standards (An example from AirBnb)
- PHP Coding Standards