-
Notifications
You must be signed in to change notification settings - Fork 2
docs: add some notes about best practices #51
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
Conversation
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.
Generally structure of this change looks good. I think doc.go is missing a kind of quick, friendly & familiar example to set the ball rolling — something mostly contrived, but not quite as bad as "here's three string types". Maybe something with strconv.ParseInt()
and/or Context
?
I'd imagine something like:
- Explain generally what dependency injection does (done)
- Say something like "here's a simple example that does XYZ" - it shoud be <= 15 lines, but commented to explain how data is passed from one function to another.
- From there, start talking about injectors, providers, etc — readers should have a basic idea to build from, first. And as you introduce concepts, you can link back to the first example — like "ABC was an example of a DEF" or "DEFs are more flexible than just ABC"
Co-authored-by: sharnoff <29154784+sharnoff@users.noreply.github.com>
Codecov ReportBase: 83.70% // Head: 83.70% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #51 +/- ##
=======================================
Coverage 83.70% 83.70%
=======================================
Files 21 21
Lines 2989 2989
=======================================
Hits 2502 2502
Misses 317 317
Partials 170 170 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Co-authored-by: sharnoff <29154784+sharnoff@users.noreply.github.com>
No description provided.