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

refactor: simplify challenges when answer is fixed #1125

Merged
merged 9 commits into from
Dec 16, 2023

Conversation

nbaars
Copy link
Collaborator

@nbaars nbaars commented Dec 10, 2023

When the answer is always the same we can cache it and the challenge only need to implement one method. This removes the necessity to implement methods spoiler() and answerCorrect() in every subclass.

When the answer is always the same we can cache it and the challenge only need to implement one method. This removes the necessity to implement methods `spoiler()` and `answerCorrect()` in every subclass.
@commjoen
Copy link
Collaborator

deploying the PR to https://arcane-scrubland-42646.herokuapp.com/

Copy link
Collaborator

@commjoen commjoen left a comment

Choose a reason for hiding this comment

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

after doing some testing and reviewing: only a few small comments: can you have a look please?

CONTRIBUTING.md Show resolved Hide resolved
@commjoen commjoen merged commit d26fd0f into master Dec 16, 2023
14 of 15 checks passed
@commjoen commjoen deleted the nbaars/lazy-load-challenges branch December 16, 2023 09:52
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.

3 participants