Hacker News new | ask | show | jobs
by alphanumeric0 1030 days ago
Sounds like each thing should know how to search for active instances of itself, given a date range, which is a common OO abstraction.
2 comments

One should at minimum name the things that behave differently by different names, what is a common practice in data modeling.

I expect all those bugs to return again and again as different people maintain that code. At least with code deduplication they would have a clear alarm telling them their knowledge is wrong and they must pay attention. But with each query doing everything people will just assume they know it all.

The point isn’t the interface though it’s the implementation. And if many of those things are implementing the same search functionality slightly differently, you’re back to the same spot, except now your bugs are spread across multiple sites, often with duplication.

The underlying issue is just that correctness is hard I think.