Skip to content
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

Finding and reading source code a.k.a. learning from other developers #4

Open
stefaniebutland opened this issue Sep 23, 2019 · 3 comments

Comments

@stefaniebutland
Copy link
Contributor

stefaniebutland commented Sep 23, 2019

Who is the audience?

Who might want to know this? What other groups or organizations might be interested?

  • R users and developers
  • the concepts are relevant beyond the R community

Why is this important?

Quoted from Jenny Bryan:

At some point in package development, your problems get more and more specific. There may not be a targeted piece of documentation, blog post or book chapter about your exact problem. Now what?

There are various methods of finding other people's relevant and working source code. Learning how to find and learn from such examples is a very handy meta-skill.

What should be covered?

  • GitHub searches, esp. limiting to user:cran, path:R, etc.
  • The lookup package
  • Debugging techniques that reveal which function's source you need to be reading
  • RStudio IDE gestures for revealing source

Suggested speakers or contributors

Resources you would recommend to the audience

@stefaniebutland stefaniebutland changed the title Finding and reading source code Finding and reading source code a.k.a. learning from other developers Nov 26, 2020
@maelle
Copy link

maelle commented Dec 9, 2021

"Improving GitHub code search" on GitHub blog (still in preview i.e. not available for everyone)

@Bisaloo
Copy link

Bisaloo commented Dec 9, 2021

On this topic, I like to use the 'Source: XXX.R' link in the pkgdown documentation.

Maybe only tangentially related but showing how to use git blame (e.g., in the GitHub web interface) is very useful to learn when and why something has been changed.

@maelle
Copy link

maelle commented Dec 9, 2021

I really like @Bisaloo's idea to explain how to explore repo history!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants