Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The example is a straw man. He refers to a doubling in code size, but that's just because he's got hardly any code. In a real class, you still have one method (or two! or three!) on the interface but you've probably got 300 lines in the implementation. The only thing being "duplicated" is the external interface.

Might as well retitle this "Why I don't like the Interface Segregation Principle".



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: