docs icon indicating copy to clipboard operation
docs copied to clipboard

missing function definitions

Open markus27183 opened this issue 7 years ago • 9 comments

It would help if you provided function definitions since this doens't compile. e.g. FryEggsAsync


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

markus27183 avatar Aug 12 '19 13:08 markus27183

All the code is in our samples repository

Can you tell me which version doesn't compile? It would if it matches the samples repository.

BillWagner avatar Aug 13 '19 01:08 BillWagner

@BillWagner my interpretation of this is that @markus27183 is asking to see the FryEggsAsync definition like declared at https://github.com/dotnet/samples/blob/master/snippets/csharp/tour-of-async/AsyncBreakfast-V3/Program.cs#L73 or https://github.com/dotnet/samples/blob/master/snippets/csharp/tour-of-async/AsyncBreakfast-final/Program.cs#L84.

Not sure if this implementation is not show on purpose or not.

mairaw avatar Aug 13 '19 01:08 mairaw

Excelent! Just when i finished trying to write mine own definitions i started to read comments but that was good thing.

Any way i noticed one irrelevant mistake in mine code and checked yours final - WHERE IS MY JUICE ? :D

SeniorSSS avatar Sep 16 '19 18:09 SeniorSSS

Hi I was unable to find the definitions for the methods ApplyJam and ApplyButter. It is quite likely that all of these are implemented in the samples repository in Github. While, I appreciate that you have put in efforts to provide the full source code via Github, I do not like the idea of frequently navigating out of the MSDN documentation. This destroys my mental model and makes my learning experience unproductive.

Thanks.

sdg002 avatar Sep 30 '19 16:09 sdg002

This is how my experience was

  • I begin reading through the article and encounter the first snippet of code
  • I see a method PourCofee. I do a CTRL+F and I do not find anything on the page.
  • Ignore and move on
  • I see methods FryEggs and FryBacon. Again do a CTRL+F and find nothing. I patiently move on to the next line
  • Move on to next snippet. I see a method ToastBreadAsync but as usual no body .
  • This experience keeps repeating over and over again.

The fragmented user experience left me so embittered that I abandoned reading the article and looked for other sources.

Again, putting all code is definitely a good idea, but I am out!

sdg002 avatar Sep 30 '19 16:09 sdg002

@BillWagner if the code is in your samples repository that information would be helpful to put in the actual article instead of buried down in the comments section

suttonb avatar Mar 26 '20 18:03 suttonb

@BillWagner, apparently the samples repository moved since the links provided here are broken. Can you provide the new location?

coosmiin avatar Apr 20 '20 17:04 coosmiin

@BillWagner Link is broken...please provide new location for code

tlynch001 avatar Apr 21 '20 19:04 tlynch001

Took a little while to track down but looks like they moved to docs repo here: https://github.com/dotnet/docs/tree/master/samples/snippets/csharp/tour-of-async/AsyncBreakfast-final with the implementations in the Program.cs file here: https://github.com/dotnet/docs/blob/master/samples/snippets/csharp/tour-of-async/AsyncBreakfast-final/Program.cs

kenwithee avatar May 04 '20 05:05 kenwithee