CSC/ECE 517 Fall 2013/oss ans: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:


== Introduction ==
== Introduction ==
The response controller creates, edits, and displays responses, that is, rubrics to be filled out, or filled-out rubrics.
The response controller creates, edits, and displays responses, that is, rubrics to be filled out, or filled-out rubrics. Our project requirement entailed the following things to be done.


* Reduce the method complexity in the response controller
* Remove duplicated code
* There were “custom_create” and “custom_update” methods for “custom” (multipart) rubrics.  This is a very bad way of achieving this      functionality, because frequent tests are required as to what kind of a rubric is in use. 
== Design Choices ==
== Design Choices ==



Revision as of 02:58, 30 October 2013

E807 : Refactoring and testing response_controller.rb


Introduction

The response controller creates, edits, and displays responses, that is, rubrics to be filled out, or filled-out rubrics. Our project requirement entailed the following things to be done.

  • Reduce the method complexity in the response controller
  • Remove duplicated code
  • There were “custom_create” and “custom_update” methods for “custom” (multipart) rubrics. This is a very bad way of achieving this functionality, because frequent tests are required as to what kind of a rubric is in use.

Design Choices

Future Work

Appendix