I'm worried I'm adding too many interfaces

前端 未结 3 1010
别跟我提以往
别跟我提以往 2021-02-12 09:30

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:11

    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.

提交回复
热议问题