-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
review github files #4
Conversation
Reviewed the following files: Readme.md was fine Contributing.md was created and points to the docs repo. Code_of_conduct.md was created and follows the docs repo. .gitignore Created for samples and projects. .github folder: created pull request template and codeowners file based on docs repository.
@BillWagner Readme.md file also can be improved:
|
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.
Current changes look good but readme.md file should also be changed. That file was written when we didn't have the snippets folder with samples that are specific to .NET Framework or written using the old SDK style. So it should probably be reviewed to be more generic and include some guidance for snippets. It also mentions .NET Core.
# C++ snippets | ||
/snippets/cpp/** @rpetrusha | ||
# C# Snippets: | ||
/snippets/csharp/** @BillWagner |
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 will be a lot of samples for you and Ron to review if you set the entire snippets/language to one of you
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 is true, but that's what we had in the docs repo.
It has not been a lot of change so far.
@rpetrusha What do you think?
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.
Sorry, @BillWagner. I didn't get email notification with your question. But I think that this is fine; there haven't been many changes.
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.
If you guys are ok with it, I'm good
@mairaw I made a first stab at updating the readme. Let me know what you think should be added. |
Snippets are smaller samples, but otherwise should be the same.
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 looks good, @BillWagner. I did leave a couple of comments, but you can merge when you decide what you'd like to address.
# C++ snippets | ||
/snippets/cpp/** @rpetrusha | ||
# C# Snippets: | ||
/snippets/csharp/** @BillWagner |
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.
Sorry, @BillWagner. I didn't get email notification with your question. But I think that this is fine; there haven't been many changes.
README.md
Outdated
|
||
Some of the articles will have more than one sample associated with them. | ||
|
||
The readme.md file for each sample will refer to the article so that | ||
you can read more about the concepts covered in each sample. | ||
|
||
There are two classes of samples in this repository: |
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.
perhaps "two classes of code" rather than two classes of samples, since one of the classes is samples
README.md
Outdated
@@ -31,15 +42,14 @@ Except where noted, all samples build from the command line on | |||
any platform supported by .NET Core. There are a few samples that are | |||
specific to Visual Studio and require Visual Studio 2017 or later. In | |||
addition, some samples show platform specific features and will require | |||
a specific platform. | |||
a specific platform. Other samples and snippets require the .NET Framework | |||
and will run on Windows platforms, and will need Visual Studio to build. |
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.
VS isn't required; the Developer Pack for a particular .NET Framework version is. (You can then compile with the command line.)
.github/CODEOWNERS
Outdated
# Order is important. The last matching pattern has the most precedence. | ||
# The folders are ordered as follows: | ||
|
||
# In each subsection folders are order first by depth, then alphabetically. |
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.
nit: order --> ordered
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 @BillWagner. This looks good but readme still needs some work I think.
# C++ snippets | ||
/snippets/cpp/** @rpetrusha | ||
# C# Snippets: | ||
/snippets/csharp/** @BillWagner |
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.
If you guys are ok with it, I'm good
README.md
Outdated
@@ -1,18 +1,29 @@ | |||
# .NET Core Samples |
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.
remove Core from here
README.md
Outdated
@@ -1,18 +1,29 @@ | |||
# .NET Core Samples | |||
|
|||
This folder contains all the sample code that is part of any topic under |
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 folder -> This repo
README.md
Outdated
- **Samples** represent programs that demonstrate apoplication or library scenarios. These samples are typically larger, and often use more than one technology, feature, or toolkit. | ||
- **Snippets** represent small focused examples that demonstrate one feature or syntax. These should be no more than a single screen of code. | ||
|
||
In both cases, we verify the samples in our CI system. |
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 is not true yet. Just samples are verified and we need @dend to turn them on here on the new repo.
Snippets should be verified as well. But because most of them don't contain a csproj file, we need to find ways to test them.
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.
I changed it to reflect the current reality (but still encourage buildable projects moving forward.)
README.md
Outdated
## Building a sample | ||
|
||
You build the samples using the .NET Core CLI. You can download the CLI from | ||
You build any .NET core sample using the .NET Core CLI. You can download the CLI from |
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.
You usually download the SDK that comes with the CLI.
README.md
Outdated
## Building a sample | ||
|
||
You build the samples using the .NET Core CLI. You can download the CLI from | ||
You build any .NET core sample using the .NET Core CLI. You can download the CLI from | ||
[the .NET Core home page](http://microsoft.com/net/core). Then, execute |
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 url now is a get started page. not the best link now I'd say.
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.
updated to https://www.microsoft.com/net/download
README.md
Outdated
|
||
## Snippets | ||
|
||
Snippets are extracted from small programs that include the snippet. Snippets are all located in the top level **/snippets** folder. Snippets should follow all other sample guidance. |
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.
The only confusing part about this is that we have snippets that do require VS like WPF snippets. So if they follow the sample guidance where we only mention .NET Core projects. they might get confused.
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.
I tried to rework this section. It's probably worth another review.
@mairaw I updated this based on your feedback. |
README.md
Outdated
|
||
Some of the articles will have more than one sample associated with them. | ||
|
||
The readme.md file for each sample will refer to the article so that | ||
you can read more about the concepts covered in each sample. | ||
|
||
There are two classes of code in this repository: | ||
|
||
- **Samples** represent programs that demonstrate apoplication or library scenarios. These samples are typically larger, and often use more than one technology, feature, or toolkit. |
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.
Typo: apoplication
These samples are typically larger... Not clear larger than what; obviously larger than snippets. Then snippets introduction should go before the samples introduction. That also would sync with the further content where snippets section goes before 'Building a sample' section
README.md
Outdated
|
||
## Snippets | ||
|
||
Snippets are extracted from small programs that include the snippet. Snippets are all located in the top level **/snippets** folder. While snippets are small blcoks of code, we want to move toward snippets that are part of buildable sample projects. |
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.
Typo in the last sentence: small blcoks
README.md
Outdated
You build the samples using the .NET Core CLI. You can download the CLI from | ||
[the .NET Core home page](http://microsoft.com/net/core). Then, execute | ||
You build any .NET core sample using the .NET Core CLI. The .NET Core CLI is installed with | ||
[the .NET Core SDK](https://www.microsoft.com/net/download). Then, execute | ||
these commands from the CLI in the directory of any sample: |
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.
In this paragraph three sentences: active - passive - active voice and a lot of .NET Core. Should we combine the first two sentences:
You build any .NET Core sample using the .NET Core CLI, which can be installed with [the .NET Core SDK]....
Also typo in the first sentence: .NET core
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.
wow. Super quick feedback. 🏎
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.
I like the changes. Thanks @BillWagner!
README.md
Outdated
are organized in sub-folders. These sub-folders are organized similar | ||
to the organization of the docs for .NET Core. | ||
to the organization of the docs for .NET. | ||
|
||
Some of the articles will have more than one sample associated with them. | ||
|
||
The readme.md file for each sample will refer to the article so that |
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.
nit: should this be moved to line 16 where you specifically talk about samples? snippets won't have readme file.
Readme.md files are only included in samples.
Reviewed the following files: