CSC/ECE 517 Spring 1989/oss E1503 RSA: Difference between revisions
Jump to navigation
Jump to search
(Created page with "= Project Description = '''Classes involved:''' leaderboard.rb leaderboard_controller.rb '''Modules involved: ''' leaderboard_helper.rb =What they do= This class is respons...") |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= Project Description = | ==== Project Description ==== | ||
'''Classes involved:''' | '''Classes involved:''' | ||
leaderboard.rb | leaderboard.rb | ||
Line 7: | Line 7: | ||
leaderboard_helper.rb | leaderboard_helper.rb | ||
'''What they do''' | |||
<p>This class is responsible for calculating top 3 individuals which is to be displayed as the leaderboard for the class and generates a metric which aggregates peer review scores for all course assignments and then sorts individuals.</p> | |||
'''What needs to be done''' | |||
<p>Methods like <i>getParticipantsScore</i> and <i>extractPersonalAchievements</i> needs to be refactored as these single functions have multiple responsibilities. They can be modularized delegating single resposibility to one function. <i>sortHash</i> method is not an explicit leaderboard model and can be moved to helper functions. Some snippets of code are redundant and have no effect on functionality. They can be removed.</p> |
Latest revision as of 21:16, 22 March 2015
Project Description
Classes involved:
leaderboard.rb leaderboard_controller.rb
Modules involved:
leaderboard_helper.rb
What they do
This class is responsible for calculating top 3 individuals which is to be displayed as the leaderboard for the class and generates a metric which aggregates peer review scores for all course assignments and then sorts individuals.
What needs to be done
Methods like getParticipantsScore and extractPersonalAchievements needs to be refactored as these single functions have multiple responsibilities. They can be modularized delegating single resposibility to one function. sortHash method is not an explicit leaderboard model and can be moved to helper functions. Some snippets of code are redundant and have no effect on functionality. They can be removed.