CSC/ECE 517 Fall 2017/E1752 Refactor assignments controller: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
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.
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'''===
===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.  
The file assignments_controller.rb handles the logic behind Expertiza assignments and enables the creation and managements of assignments by instructional staff.  


==='''Tasks accomplished'''===
===Tasks accomplished===
1. Creating tests for the various methods
1. Creating tests for the various methods



Revision as of 17:44, 26 October 2017

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.