Hacker News new | ask | show | jobs
by mvc 413 days ago
You might not implement them but as a web engineer you're using them all the time. So all these tools that you use will have tree implementations in them.

- Every html document is a tree structure. And css documents have special syntax to address nodes within those trees

- If it's any good, you're routing framework probably uses some kind of tree to quickly match the request to it's handler

- The database you write to uses a tree to quickly find the location it needs to write to

1 comments

I think that’s kind of the GP’s point, that there’s no “implementing a tree” so much as just using the tree that’s naturally there. When I make nested objects, I don’t think of trees or some boxes-and-arrows diagram, I just think “product type”. It’s good to know your graph algorithms, sure, but thinking about the data representation isn’t something one needs to have in the front of their mind in any decently abstracted language.