Code Samples: Simple or Correct?

added by DotNetKicks
9/10/2018 2:15:04 PM

1 Kicks, 1406 Views

Should code samples be "simple" or "correct"? Ideally, they should be both, but I'm running into a dilemma while updating my sample applications for " IEnumerable, ISaveable, IDontGetIt: Understanding .NET Interfaces" and " DI Why? Getting a Grip on Dependency Injection": asynchronous libraries. These samples use the Repository Pattern to demonstrate the usefulness of interfaces and DI.


0 comments