-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exercise-17 #23
Exercise-17 #23
Conversation
v-kolesnikov
commented
Aug 24, 2015
- Implemented SuperMemo2 algorithm as Service Object
cb489c2
to
bc1e59a
Compare
self.e_factor = 2.5 | ||
self.interval = 0 | ||
self.quality = 0 | ||
self.repetitions = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
все эти defaults лучше бы сделать default значениями в БД (кроме review_date)
А бонусное чего? |
3d6e247
to
2f552b6
Compare
increment(:correct_answers) if correct_answers < MAX_CORRECT_ANSWERS | ||
update_attributes(incorrect_answers: 0) | ||
update_review_date | ||
def repetition_by_sm2(quality) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"повторение по sm2" - это название метод мне тоже всё ещё ни о чём не говорит
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вторая великая проблема программирования, однако) Незнаю пока как назвать этот метод лучше, пойду продышусь, может что придумаю.
не считая замечаний можно мержить |
* Implemented SuperMemo2 algorithm as Service Object
2f552b6
to
7d636dd
Compare