CSC/ECE 517 Fall 2017/E1752 Refactor assignments controller

From Expertiza_Wiki
Revision as of 17:17, 26 October 2017 by Pmusyok (talk | contribs)
Jump to navigation Jump to search

Introduction

Expertiza is an open source webapp built on Ruby on Rails stack. It provides a platform to students with various features like peer-reviewing projects, submitting work, form teams, viewing grades etc. The project is being built and maintained by students and faculty at NCSU.

About assignments controller

The file assignments_controller.rb handles the logic behind Expertiza assignments and enables the creation and managements of assignments by instructional staff.

Tasks accomplished

1. Creating tests for the various methods

Included:

  • Creating new tests for each method,
  • Testing the each method and making sure the tests pass,
  • Creating functions to reuse chunks of code that were previously written multiple times.

2. Refactoring assignemnts_controller.rb

Included:

  • Formatting the code for readability and convention
  • Breaking down large chunks of code in to smaller manageable chunks.