Summary
In this chapter, you’ve tasted a little bit of how powerful conventions can be for concrete everyday C# coding, touching on how to improve the experience working with the IoC container in ASP.NET Core by optimizing a common scenario of registering services by their interface. We’ve also looked at how designing by contract helps you create a system that is more flexible and much easier to test.
The concept of convention over configuration is probably the thing that has impacted me personally the most in my career. It makes your code more consistent and if you fail to be consistent, it doesn’t work, which is a good thing because then you will have to fix your code to be more consistent.
Having to not configure everything and just be able to add code is a true productivity boost, and anyone working on the project will thank you for it. However, you need to be clear with all team members about what the conventions are, otherwise, they will not thank you...