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

Even one use case may be enough e.g., if one class accepts another then a protocol (using Python parlance) SupportsSomething could be used to decouple two classes, to carve out the exact boundary. The protocol may be used for creating a test double (a fake) too.


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

Search: