Book Image

SignalR Blueprints

By : Einar Ingerbrigsten
Book Image

SignalR Blueprints

By: Einar Ingerbrigsten

Overview of this book

Table of Contents (18 chapters)
SignalR Blueprints
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
9
Debugging or Troubleshooting
Index

Convention over configuration


Often established in projects are ways of doing things, recipes that we follow every time we implement certain aspects of our systems. These can often be automated and put to work as conventions. A good example of this is the configuration of the relationship between an interface and its implementations. One convention that you might find is that the ISomething interface has a default implementation called Something. The convention here is that the class implementing the interface has the same name without the prefix: I. This particular type of convention is something some people consider as anti-pattern, but personally, I don't. There are some discussions that say a better convention would be to drop the I prefix for the namespace and instead add the Impl postfix on the implementation. In this chapter, we'll see a convention used for views and ViewModels, stating that they go in pairs as long as they have the same name but a different extension (such as.html...