exercism.io

https://github.com/exercism/exercism.io

Ruby

Quickly ramp up in new programming languages.

ActivityStream#query_exercises

This becomes unbearably slow if we do a left join on views to get the unread value
up front.
If performance is still a problem, remove the join on user and do a separate lookup
for that as well.
rubocop:disable Metrics/AbcSize, Metrics/MethodLength

Source | Google | Stack overflow

Edit

git clone [email protected]:exercism/exercism.io.git

cd exercism.io

open lib/exercism/activity_stream.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ActivityStream-query_exercises-for-pr


# Commit to git

git add lib/exercism/activity_stream.rbgit commit -m "better docs for ActivityStream#query_exercises"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-ActivityStream-query_exercises-for-pr

hub pull-request


# Celebrate!