Back to the 2022 paper

Module 3: Software Design & Metrics

202214m

Explain coding standards, coding guidelines and code review techniques in detail.

Worked SolutionAI Assisted

Solution

Coding Standards

Rules for code writing (naming, formatting, documentation).

  • Ex: Use camelCase for variables, PascalCase for classes, header comments, max line length 80, indentation 4 spaces.

Coding Guidelines

Best practices (not mandatory) for quality:

  • Avoid goto, limit function length <30 lines, single entry/exit, error handling, reuse.

Code Review Techniques

  1. Inspection (Fagan) - Formal, checklist, moderator, 3-7 people, record defects.
  2. Walkthrough - Author explains, informal feedback.
  3. Peer Review / Pair Programming - Colleagues review via tool (GitHub PR) or driver-navigator.
  4. Static Analysis - Automated tool check (lint, SonarQube).

Benefits: Early defect removal (60-90%), knowledge sharing, standards enforcement.

Similar questions

AI LearningWeb Platform

Coursify — Personal AI Course Generator

Struggling with a difficult subject or concept? Turn any engineering topic into a structured course with interactive lessons, quizzes, and research-backed explanations.