Hacker News new | past | comments | ask | show | jobs | submit login

> But it is also a good paradigm to model pretty much any real, outside thing

If we get to the crux of the matter, what you like there is the tree structure (which definitely is the end result you want) the problem is if you store your data in a tree structure (whether by OO, file system or json document) you cannot easily express that same information but in a different tree layout

Trees couple relationships and things together in such a way that they are hard to tease apart. If you think about your brain what it does is stores the sum of your knowledge in a graph, then at runtime your brain can construct any number of trees from that graph easily

You can think of yourself as being a member of the tree of life and a member of your workplace hierarchy very easily, your data store should be graph like and your query language should be able to pull trees out of at will, checkout Clojure's Fulcro or any EAVT database if you want to see how that works in practise




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

Search: