Interfaces: WHAT - Implementations: HOW

Опубликовано: 04 Октябрь 2024
на канале: Ardalis
1,328
98

Interfaces Describe WHAT Implementations Describe HOW

Hey everyone, I'm Steve Smith aka ardalis, of NimblePros!

In this short video I explain a simple way to think about interfaces and their implementations. Specifically, you should design your interfaces so that they (only) describe WHAT they do from the perspective of calling code. Then, when you implement the interface, you choose HOW to do so, including all of the low level details that may be needed. Avoid letting the HOW leak into your interface definition and you'll have a much better time!

Links

https://ardalis.com/interfaces-descri...

Check out my courses:

https://dometrain.com/course/from-zer...
https://dometrain.com/course/getting-...
https://dometrain.com/course/deep-div...
https://ardalis.com/training-classes/
https://www.pluralsight.com/authors/s...

Team Consulting and Training: https://NimblePros.com and @nimblepros

Developer Group Mentoring: https://devBetter.com

Free Weekly Email Tips:
https://ardalis.com/tips/

If you read this far, I hope you liked this video and will consider subscribing to my channel! Or if you already subscribe, how about adding @NimblePros ?

Find me:
https://ardalis.com
  / ardalis  
https://github.com/ardalis
  / stevenandrewsmith  
https://bsky.app/profile/ardalis.com

#ardalis #stevesmith #dotnet #csharp #programming #interfaces #abstractions #implementations #nimblepros