CSC/ECE 517 Fall 2023 - E2376. Reimplement student quizzes controller.rb

From Expertiza_Wiki
Revision as of 17:42, 14 November 2023 by Sleaston (talk | contribs) (→‎Design)
Jump to navigation Jump to search

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

Test Driven Development (TDD)

Controller

Create

Read

Update

Delete

Solution

Achieved Design Goals

UML Diagram

Class Diagram

Actions performed