CSC/ECE 517 Fall 2023 - E2376. Reimplement student quizzes controller.rb: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
Line 8: Line 8:
* The controller using vague names for variables.
* The controller using vague names for variables.
* Difficulty in setting up a sample quiz and testing
* Difficulty in setting up a sample quiz and testing
* Test Driven Development (TDD) was not followed and tests created after the code.  The code being in a unknown state led to tests that passed possibly buggy code.


== Design ==
== Design ==

Revision as of 17:40, 14 November 2023

Overview

Our team is tasked with creating the backend reimplementation of the student quizzes controller found in student_quizzes_controller.rb. We are to use SOLID principles and adhere to the Guidelines for Reimplementation.

Issues with Previous Functionality

Previous implementations of student quizzes were difficult to understand due to:

  • The controller not following CRUD methodology
  • The controller using vague names for variables.
  • Difficulty in setting up a sample quiz and testing
  • Test Driven Development (TDD) was not followed and tests created after the code. The code being in a unknown state led to tests that passed possibly buggy code.

Design

Solution

Achieved Design Goals

UML Diagram

Class Diagram

Actions performed