Closed nhocki closed 9 years ago
I don't think we actually need a join table between difficulties and solutions, instead we could save difficulty directly on the solutions table, and have a column on the problems table with the average (which could be re-calculated each time a solution is submitted). That column could be a float instead of integer and we could define some ranges. This way we can show a color-bar or simply the difficulty label, or even both. What do you think?
For the following things, do we want to build it from scratch or should we go with something like acts_as_follower. Same for the "wall" functionality, we could use something like public_activity.
Question...
Are you ok with models annotation (annotate_models)?
@esbanarango I merged this just to get it out, we can update the logic later...
@esbanarango moving the discussion here to keep it "next" to the code...
About your comment of showing the average, I like the idea of having the difficulty be "what most people think" but that'll make it more complex and I'm not sure is worth it for now...
Do you have an idea of making this super easy? Maybe we can use Redis for the scores instead of having the join table between difficulties and solutions? And what would happen when the user solves the problem twice? Can they vote twice? Or only once?
I'd like to get this out soonish and focus on other things before next year so it can be used in the training program at EAFIT...
From the things that I think are most important are (not necessarily in that order):