3 ms·
That’s exactly right. And this is not just a “mental anguish” or “skill issue”. It’s a fundamental issue: Hierarchical naming and categorization sucks. In 95
by dgb23 3y ago
That’s exactly right. And this is not just a “mental anguish” or “skill issue”.
It’s a fundamental issue:
Hierarchical naming and categorization sucks.
In 95% of the cases, you want sets or even graphs rather than trees.
You _might_ be getting away with trees, because you didn’t encounter a case where the hierarchy breaks. But you’re being fooled by happenstance.
In the 5% of cases where trees are fine, you could also use sets or graphs.
This issue comes up all the time with all sorts of things, including urls and file structure.
The trick is to have a general “/type/name” format and to be as liberal and general as possible with what “type” means.