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

review github files #4

Merged
merged 6 commits into from
Apr 4, 2018
Merged

Conversation

BillWagner
Copy link
Member

@BillWagner BillWagner commented Apr 1, 2018

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.

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 BillWagner requested a review from mairaw April 1, 2018 00:50
@pkulikov
Copy link
Contributor

pkulikov commented Apr 1, 2018

@BillWagner Readme.md file also can be improved:

  • .NET Core documentation -> .NET documentation at the first sentence.
  • The last sentence of the first paragraph also should be rephrased to mention .NET documentation. This sentence looks to be a good candidate to include the link to the docs repo.
  • Add the link to Contributing.md to navigate first-comers (??)

Copy link
Contributor

@mairaw mairaw left a 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
Copy link
Contributor

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

Copy link
Member Author

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?

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.

Copy link
Contributor

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

@BillWagner
Copy link
Member Author

@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.
Copy link

@rpetrusha rpetrusha left a 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

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:

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.

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.)

# 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.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: order --> ordered

Copy link
Contributor

@mairaw mairaw left a 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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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.
Copy link
Contributor

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.

Copy link
Member Author

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
Copy link
Contributor

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
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
Copy link
Contributor

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.

Copy link
Member Author

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.

@BillWagner
Copy link
Member Author

@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.
Copy link
Contributor

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.
Copy link
Contributor

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:
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow. Super quick feedback. 🏎

Copy link
Contributor

@mairaw mairaw left a 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
Copy link
Contributor

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.
@BillWagner BillWagner merged commit 64c8152 into dotnet:master Apr 4, 2018
@BillWagner BillWagner deleted the update-infrastructure branch April 9, 2018 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants