-
-
Notifications
You must be signed in to change notification settings - Fork 947
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
[c++/atbash-cypher] Create mentoring.md #2331
base: main
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,4 @@ | |||
The atbash cipher is symmetrical that is why it is possible to use one function to encode and decode. |
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.
- This doesn't follow the structure of other mentoring notes.
- These notes are very sparse. If you'd like to tackle creating new notes, it would be nice to have them a bit more fleshed out.
Thank you! There is one subtle issue and two stylistic things. I also have some questions:
I'm not sure what this means. Are you arguing that functions should take "non-POD"-type arguments always by value or always by reference to
Sorry, I don't understand. Do you mind rephrasing that (at least here in a comment, for me)?
That sounds like you want students to solve this exercise in a way similar to yours. |
Thank you. I've never seen this remark before. Live and learn.
As I can understand task template provoke to copy/paste function interface and students write helper functions passing string by value. My tactic depends from student's code idea, usually explain penalties and give other possibilities to make a choice. But they leave as it is.
Something like this: std::map<char,char> table ={{a,z},{b,y},...};
// or
const std::string alphabet {"abcd..yz"}; //-> to to find character index in a loop
const std::string rev_alpha {"zy...cba"};
I thought that these tips just variants to start dialog. Prefer a single purpose function with corresponding name if no big time/memory penalty in general. |
I agree, discussing pass-by-value vs. pass-by-reference is always a good idea.
IMHO there's a small difference between "Common Suggestions" and "Talking Points". I'm probably not the only mentor who is not a native English speaker. I'd really like these suggestions and talking points to be easy to read, even by people like me. Do you mind fleshing them out or rephrasing them to make them unambiguous and easy to understand? But this all might just be a misunderstanding on my side. Maybe somebody else reading this can weigh in. |
Native English speaker. I agree these bullet points are very terse and hard to understand. |
I have read some |
Short proposal to use one function for symmetrical cipher.