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

While I agree that I hate interfaces with one method, what about interfaces that actually define several methods (e.g. - perhaps a driver for something that needs to do operations like "open", "close", "get", "put")?

Interfaces still serve a purpose bundling together related operations with replaceable implementations. They're just a nuisance for single-purpose functions/functors (e.g. - "run").



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

Search: