-
Notifications
You must be signed in to change notification settings - Fork 6.1k
C# Strings - Format Strings Block #9025
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
|
This is a great start @hDoubleE I looked at the markdown changes, and added a few small comments. I also updated the title to add the work-in-progress moniker. Once the samples are done, you can remove that. In the meantime, it prevents us from accidentally merging while you're still working. This section of the contributor guide has basics on adding samples. For this article, the new snippets should go in samples/snippets/csharp/programming-guide/strings (the 'strings' component is a new folder suggestion)
Because the dotnet/samples is a different repo, it will be 2 PRs. Add links between them so we merge them together.
That's great. I like the idea of using the same output, but it's not a strong preference. |
|
Thanks for the help and feedback @BillWagner and @pkulikov. I'm going to work through the revisions you've suggested and create a PR for the samples. I'm moonlighting this and am a first timer, so bear with me. I thought if I'm going to try and learn the process it might as well be on a change with some substance. Thanks for the support and the style tips. I'll do my best to keep the work moving. |
|
I went through and made each suggested change. Thanks for all the great input. Please review for accuracy while I work up the samples. Is it preferable to recycle samples from other pages or generate new material? I'm leaning toward making my own, but maybe it's better to stick with whats available? |
|
Hopefully that fixes the relative link paths. I also changed an H3 from "Format Method" to "Composite Formatting" after talking to @pkulikov, it seemed more technically accurate. Agree? I'm working on getting the snippets PR up so we can close this one out. Thanks for all the help! |
|
Still getting warnings in Build: Cannot resolve '~/samples/snippets/csharp/programming-guide/strings/Strings_1.cs' relative to 'docs/csharp/programming-guide/strings/index.md'. The 'strings' folder I made where Strings_1.cs resides in my local fork of dotnet/samples does not exist in samples repo file structure. Please advise what action to take to clear this up. |
Wait. This PR is built against the master branch of the samples repo. So, we need to wait until the supporting dotnet/samples#462 PR is merged. After it's merged, this PR would be closed/reopened to trigger a new build to check if new snippets are picked up. Usually, after addressing all the feedback, contributors @-mention the reviewer in the comment to let them know that changes were addressed and PR is ready for the next round of review. That almost always makes the process faster. |
|
Saw change to review status, then back. What else needs to be done? Any way to include this change? |
|
Thanks for the ping @hDoubleE I'll review it today, and if all's well, I'll |
|
closing and re-opening to force a build (and check the snippet includes) |
BillWagner
left a comment
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.
Thanks for all the work, and all the updates on this @hDoubleE It's an impressive amount of work for your first PR with us. We are grateful to have community members like you working with us. 🌠
Also, thanks to @pkulikov who answered questions and provided guidance.
I've reviewed all the changes, and I'll
now.
Thanks again for contributing to docs.
|
Removed branch: Correction: first PR ever!!! The learning curve was steep. But nothing like diving in to get started! Thanks @pkulikov for all your help and support and feedback throughout this process. I appreciate the chance to contribute! One final thing for the group: What can I do better? What mistakes here (many) should I look to avoid in the future? Thanks again. You guys rock. |
Supported by dotnet/samples#462
Modified the Format Strings section of C# Strings using @pkulikov suggestions from #9002 . This is a learning curve for me so I encourage feedback and modifications to writing as needed.
Samples: Should these be in the same PR or a different one? I have a sample file for interpolation I can include if needed. Also, should the code snips for the two methods output the same for contrast or just keep System.Format sample as is. I didn't want to proceed with the samples without clarification.
#9002 (a start)