Skip to content
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

Merged
merged 1 commit into from
Aug 26, 2015
Merged

Exercise-17 #23

merged 1 commit into from
Aug 26, 2015

Conversation

v-kolesnikov
Copy link
Owner

  • Implemented SuperMemo2 algorithm as Service Object

@v-kolesnikov
Copy link
Owner Author

Заодно поупрожнялся с rdoc)
screenshot-localhost 8808 2015-08-25 02-44-11

self.e_factor = 2.5
self.interval = 0
self.quality = 0
self.repetitions = 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

все эти defaults лучше бы сделать default значениями в БД (кроме review_date)

@mkdev-mentor-1
Copy link
Collaborator

А бонусное чего?

@v-kolesnikov v-kolesnikov force-pushed the exercise-17 branch 2 times, most recently from 3d6e247 to 2f552b6 Compare August 25, 2015 10:08
increment(:correct_answers) if correct_answers < MAX_CORRECT_ANSWERS
update_attributes(incorrect_answers: 0)
update_review_date
def repetition_by_sm2(quality)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"повторение по sm2" - это название метод мне тоже всё ещё ни о чём не говорит

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вторая великая проблема программирования, однако) Незнаю пока как назвать этот метод лучше, пойду продышусь, может что придумаю.

@mkdev-mentor-1
Copy link
Collaborator

не считая замечаний можно мержить

* Implemented SuperMemo2 algorithm as Service Object
v-kolesnikov added a commit that referenced this pull request Aug 26, 2015
Сщьздуеу Exercise 17
@v-kolesnikov v-kolesnikov merged commit e50baba into master Aug 26, 2015
v-kolesnikov added a commit that referenced this pull request Aug 26, 2015
@v-kolesnikov v-kolesnikov deleted the exercise-17 branch August 30, 2015 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants