The best code re-use is to use already existing code. I have happened to build a website that needed trees, and I've used (and patched) DBIx::Class::Tree::NestedSet. If you like the DBIx::Class approach, there are other implementations too.
Of course you can also get rid of the requirement to map between tree structures and relational database if you are willing to say goodbye to the relational database, and use some of the currently hyped "nosql" document databases.
In reply to Re: RFC: Tree-like applications
by moritz
in thread RFC: Tree-like applications
by rustic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |