Good Case For Interfaces

前端 未结 17 2055
眼角桃花
眼角桃花 2020-12-14 04:29

I work at a company where some require justification for the use of an Interface in our code (Visual Studio C# 3.5).

I would like to ask for an Iron Clad reasoning t

17条回答
  •  余生分开走
    2020-12-14 05:22

    Well, my 1st reaction is that if you've to explain why you need interfaces, it's a uphill battle anyways :)

    that being said, other than all the reasons mentioned above, interfaces are the only way for loosely coupled programming, n-tier architectures where you need to update/replace components on the fly etc. - in personal experience however that was too esoteric a concept for the head of architecture team with the result that we lived in dll hell - in the .net world no-less !

提交回复
热议问题