Skip to content

Add analyzer for gotta-snatch-em-all#451

Merged
jiegillet merged 4 commits intoexercism:mainfrom
kahgoh:exercise/gotta-snatch-em-all
Sep 29, 2025
Merged

Add analyzer for gotta-snatch-em-all#451
jiegillet merged 4 commits intoexercism:mainfrom
kahgoh:exercise/gotta-snatch-em-all

Conversation

@kahgoh
Copy link
Member

@kahgoh kahgoh commented Jul 15, 2025

Analyzer comments in exercism/website-copy#2387

Closes #450

@kahgoh kahgoh force-pushed the exercise/gotta-snatch-em-all branch from f9544bc to 7260296 Compare July 15, 2025 14:33
@kahgoh
Copy link
Member Author

kahgoh commented Jul 19, 2025

I notice is failing, but I think its because the comments aren't yet in the website-copy. Is there anything I need to do?

@angelikatyborska
Copy link
Member

No, there's nothing more that you should do - you have already created the PR with the comments 🙂 when we review this PR, we will first merge the analyzer comments, then rerun the CI to see it all turn green.

I'm currently swamped with life stuff so I was hoping @jiegillet can find the time to review this.

@jiegillet
Copy link
Contributor

I'm also a bit tight these days, but I'll have time soon, I'll get to this :)

Copy link
Contributor

@jiegillet jiegillet left a comment

Choose a reason for hiding this comment

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

Sorry, this isn't an in-depth review yet, and it looks good from a bird's eye view, but we usually add tests for new rules.

The idea for the tests is not to test the mechanics of the analyzer, but to "justify" or explain the rules. If a rule is "don't use X", we commit a test with a solution where X is used, and we can see how the code is worse. If the solution with X is actually better, or if there is no way of finding a solution with X, then it means that the rule itself is not actually helping.

Each test doesn't need to include the full solution, if a rule is about function f, just including the module with f defined is fine.

@kahgoh
Copy link
Member Author

kahgoh commented Aug 20, 2025

No worries @jiegillet 😉. Thanks for taking a look!

Double checking my understanding in regards to the tests - are the tests like the ones in test/elixir_analyzer/test_suite?

@jiegillet
Copy link
Contributor

Yes, exactly!

@kahgoh kahgoh requested a review from jiegillet September 7, 2025 11:20
@jiegillet jiegillet self-assigned this Sep 27, 2025
Copy link
Contributor

@jiegillet jiegillet left a comment

Choose a reason for hiding this comment

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

This looks great, thank you so much.
I really liked your test examples, they really demonstrate the breadth of Elixir, there are so many ways to get the same result and many of the ones you used are completely valid. I think we need to emphasize in the comments that the solutions we recommend are not the only ones, they are just using the concepts we want to teach in this exercise.

Ok, for the next steps:

  • I'll review your website-copy PR
  • we get it merged
  • we re-run the tests in this PR (to make sure we have the right paths to the comments)
  • we merge this PR

Co-authored-by: Jie <jie.gillet@gmail.com>
@jiegillet jiegillet merged commit 81bb2bd into exercism:main Sep 29, 2025
3 of 4 checks passed
@jiegillet
Copy link
Contributor

Fantastic. Thank you again for the contribution and your patience with us, I know it took a while.

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.

Write analysis for concept exercise gotta-snatch-em-all

3 participants