High Interface diet

As long as I'm on the coding conventions track (as many of users have commented on my last post), I'll talk about a small coding convention I am trying to do.

 

I feel more compelled to push an interface into a property, method, or any declaration rather than an object type. Why push around List<string> when you can push around IList<string>? It seems like a much better design decision. It also seems that there is more flexibility as far as future extensions are concerned.

 

Come on, let's hear those thoughts :)

No Comments