-
-
Notifications
You must be signed in to change notification settings - Fork 946
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
Create mentoring.md #2366
base: main
Are you sure you want to change the base?
Create mentoring.md #2366
Conversation
You may want to review other mentoring notes. This PR looks like a walk through of one specific implementation. The mentor notes are supposed to contain notes mentors can use when mentoring solutions; it is not a place to show off any one specific solution. |
Thanks for the feedback - I will take a look. My intent wasn’t to show off
a particular implementation so much as provide a framework for approaching
the functions
…On Mon, Jan 20, 2025 at 03:24 Isaac Good ***@***.***> wrote:
You may want to review other mentoring notes. This PR looks like a walk
through of one specific implementation. The mentor notes are supposed to
contain notes mentors can use when mentoring solutions; it is not a place
to show off any one specific solution.
—
Reply to this email directly, view it on GitHub
<#2366 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEAT5UN5CHWIH2X45HNU7GT2LSXCDAVCNFSM6AAAAABVPXQTRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBRG4ZDKMZYHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
The mentoring notes aren't about helping mentors solve the exercise, either :) It's fair to assume mentors already know how to solve the exercise and probably have solved it. |
@IsaacG, thanks - re-created based on a sample mentoring request. Please let me know what you think |
Hi @j-abed 👋🏽 Python track maintainer here. Thanks for your work on this! As a point of reference, take a look at these mentoring notes for the high-scores practice exercise. Note that the first section is titled I will leave it to @IsaacG to go through more of the details as he sees fit, but here is some general feedback:
Thanks again for the PR. 🙂 |
Thanks @BethanyG this is all great feedback. Allow me a bit of time to build an alternate example of the solution to poker in python and I will resubmit with these updates. P.S. i did a quick repo search for a mentoring.md file, and it yielded a readme with the below post. That was where I had gotten the change guide section from, though i could not agree with you more re: version control. I don't know if that file is worth updating, or if its just bad luck that I grabbed a page no longer being used: Here's an example for Ruby's Isogram. |
additional changes based on guidance
I am not sure what the convention is on the Ruby track, you will have to ask the Ruby maintainers about what they prefer and whether or not they want to keep the the changelog section. I did a quick look at the files here for Ruby exercises, and the Ruby track does indeed have changelogs for many of the files. The preference for the Python track is to not have a changelog section. Python's mentoring notes can be found here for Python exercises, and none have changelogs. Some are missing the |
Create a mentoring.md file for the python practice exercise: "Poker"
This pull request includes the creation of/ a comprehensive update to the
tracks/python/exercises/poker/poker/mentoring.md
file. The changes focus on explaining the key components of the poker hand evaluation code, detailing the logic and efficiency improvements, and providing a summary of the overall approach.Key components and improvements explained:
CARD_VALUES
to map card ranks to numerical values for easier comparisons.parse_hand
function to process a poker hand, extracting sorted values and checking for a flush.is_straight
function to check if card values form a consecutive sequence.rank
function, which assigns a rank and relevant details to a hand using amatch-case
statement for different hand combinations.best_poker_hands
function to identify the highest-ranking hand(s) among a list of hands.Efficiency and optimization improvements:
parse_hand
to improve efficiency.