-
-
Notifications
You must be signed in to change notification settings - Fork 807
Include a blueprint for a function image #242
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
Include a blueprint for a function image #242
Conversation
Improve the function lesson by including an SVG image of a function with annotation. Image helps to break up the text and more easily explain the parts of a function than just reading the text. * An explanation about how to reproduce the image is here, https://gist.github.com/wd15/2b4ffbe5ce0d0ddb8a5b. * This addition is part of the instructor training for Daniel Wheeler.
06-func.md
Outdated
| <!--- see https://gist.github.com/wd15/2b4ffbe5ce0d0ddb8a5b to | ||
| regenerate the above figure ---> | ||
|
|
||
| The function definition opens with the word `def`, |
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.
Maybe you could use "keyword" instead of "word".
|
Looks a good idea to me, but for some minor details. I usually explain this when teach and it's nice to have it in the lesson. Apart from the comments above, you use "signature" for the "def" part. But the signature is defined taking into account the arguments (and the return type in some other languages at least) [1]. I think better alternatives could be:
|
|
@iglpdc, thanks for the feedback -- will update the pull-request soon. |
Address swcarpentry#242 Change `signature` to `def keyword` in image and update associated sentence in text.
|
@iglpdc, updated without adding "function prototype", but used "def keyword" and modified the associated sentence. |
|
Looks good! Thank you for your contribution. |
Add note about the version of the style
Address #242 Change `signature` to `def keyword` in image and update associated sentence in text.
Include a blueprint for a function image
Improve the function lesson by including an SVG image of a function
with annotation. Image helps to break up the text and more easily
explain the parts of a function than just reading the text.
https://gist.github.com/wd15/2b4ffbe5ce0d0ddb8a5b.