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

You invert the dependency. The abstraction is over the things that the higher level code needs. I don't need to know about query types, indexes etc. I need some business answer (all log records between x/y, a user matching username x), I program to an interface that provides all the answers necessary for the high level code.

The implementation of that interface is data store aware and implements the interface in the most effective way possible for the data store holding the things I'm interested in.



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

Search: