I'm worried I'm adding too many interfaces

前端 未结 3 1557
不知归路
不知归路 2021-02-12 09:40

I am building out my domain model and continuing to refactor it. As I do, I am finding that I like interfaces as it allows me to create reusable methods/controllers/views for c

3条回答
  •  孤城傲影
    2021-02-12 10:15

    Don't create interfaces that you don't foresee an imminent need for. Observe the YAGNI (you ain't gonna need it) principle. Otherwise you'll wind up with needlessly complicated code.

提交回复
热议问题