CSC/ECE 517 Spring 2022 - E2215: Refactor student quizzes controller: Difference between revisions
Line 5: | Line 5: | ||
==Controller Description== | ==Controller Description== | ||
The student_quizzes_controller consists of methods involved in creating, scoring & recording responses of the quizzes taken by reviewers or students of the other teams with the same assignment. This controller has some issues that violate essential Rails design principles such as DRY principle. There are few methods in this controller that should have been in model classes. Some methods share code, which creates code repetition. Some method comments needs to be rewritten. | |||
==Modifications made to the existing code== | ==Modifications made to the existing code== |
Revision as of 16:51, 19 March 2022
About Expertiza
Expertiza is a multi-purpose web application built using Ruby on Rails for Students and Instructors. Instructors enrolled in Expertiza can create and customize classes, teams, assignments, quizzes, and many more. On the other hand, Students are also allowed to form teams, attempt quizzes, and complete assignments. Apart from that, Expertiza also allows students to provide peer reviews enabling them to work together to improve others' learning experiences. It is an open-source application and its Github repository is Expertiza.
E2215. Refactoring student_quizzes_controller.rb in Expertiza
This page is a description of Expertiza OSS project E2215, which is refactoring the student_quizzes_controller.rb file.
Controller Description
The student_quizzes_controller consists of methods involved in creating, scoring & recording responses of the quizzes taken by reviewers or students of the other teams with the same assignment. This controller has some issues that violate essential Rails design principles such as DRY principle. There are few methods in this controller that should have been in model classes. Some methods share code, which creates code repetition. Some method comments needs to be rewritten.