-
-
Notifications
You must be signed in to change notification settings - Fork 36k
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(curriculum): updating step 22 of stats calculator project #54312
refactor(curriculum): updating step 22 of stats calculator project #54312
Conversation
merge latest changes into main
Not sure why the test for the Build new API container is failing 🤔 |
Hi @jdwilkin4 , may I work on this one? I had similar issues with CI - Node.js / Test italian and portuguese |
Any issues dealing with CI/CD stuff is handled by the dev team |
@jdwilkin4 I think it was a Jest hiccup (it sometimes fails to handle a large amount of tests at the same time). I reran the job and CI is green now. |
Sorry @jdwilkin4 I merged the step 27 PR and turned this into a mess. |
Pulled this one down. I'm not sure about these changes - I do worry that step 22 has now become a LOT to parse/understand at once. |
There might be a way to experiment with breaking this up into multiple steps. I would have to play around with it. Also, we could still test the final result so it allows for more flexibility in answers like this one |
Yes, I'd definitely love to address the consistent tripping points on the forum. But I also struggled with the state of step 22 here, myself 😅 |
I broke up the step, into a few steps. The first one focuses on how to check if array length is even or not. Then the last one asks them to put all they learned together to check if array is even. If so return the median for that, otherwise return the median for odd list. This lets campers write whatever solution they want to. I removed the requirement for create the median variable and ternary. I tested it out with if/else solution, a ternary solution, the original solution, and a solution created different variables for middle numbers with an if/else. They are passing on my end |
...learn-advanced-array-methods-by-building-a-statistics-calculator/661890c4abae9f2a0eddad6b.md
Outdated
Show resolved
Hide resolved
…a-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/661890c4abae9f2a0eddad6b.md Co-authored-by: Naomi <nhcarrigan@gmail.com>
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.
Well done, @jdwilkin4!
...learn-advanced-array-methods-by-building-a-statistics-calculator/635090f47eb6d9563a6fed05.md
Outdated
Show resolved
Hide resolved
...learn-advanced-array-methods-by-building-a-statistics-calculator/635090f47eb6d9563a6fed05.md
Outdated
Show resolved
Hide resolved
...learn-advanced-array-methods-by-building-a-statistics-calculator/661899113600ef307d8a7487.md
Outdated
Show resolved
Hide resolved
...learn-advanced-array-methods-by-building-a-statistics-calculator/6618a3264f955339063d3328.md
Outdated
Show resolved
Hide resolved
...learn-advanced-array-methods-by-building-a-statistics-calculator/6618abf6368d073f0f659780.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Sem Bauke <semboot699@gmail.com>
This has two approvals already. Why is not yet merged? |
When someone requests changes that need to be made, the person who requested them needs to approve those changes before it can be merged in. Otherwise, merging is blocked for the PR. That is how the fcc repo is setup |
…reeCodeCamp#54312) Co-authored-by: Naomi <nhcarrigan@gmail.com> Co-authored-by: Sem Bauke <semboot699@gmail.com>
Summary of changes
This step comes up a lot on the forum. The issues seem to be the strictness of the tests and the understanding of the problem. The original step had a lot of the answer baked into the hints. But based on forum interaction, it looks like people are copying the answer from the hints without understanding what it means. So I moved the answers out of the hints and expanded the description instead. Also, I removed the separate step to return median and just moved that into step 22.
That way are tests just check for the correct return value without a regex test. This will allow for greater flexibility in correct answers from campers.
Checklist:
main
branch of freeCodeCamp.