How to code a searchable code tree? After hours, maybe weeks, of meditation I came to the conclusion that my next goal has been in front of my very eyes... RECURSION. Recursion is the key for creating managable tree structures. For sure you could harcode every branch and leaf but x gets unmaintainable very quickly. From my experience I believe that most developers evade the recursion topic, but it could be a helpful tool for many cases not just for trees.
Through the blog series you will create this recursion tree. The blog series goes into depth on how to implement
- Recursion principles
- Tree structure
- Js
- Composition
- Recursive search/filter algorithm
It has been fun making it and I hope will learn at least one thing or two that would help you further on your own journey.
Recursion Tree Has No Incentive to Leaf (Part1)
Recursion Tree Hide and Seek (Part2)
Recursion Tree Fairy Tail (Part3)
Code for part1
Git Repo recursive part1 branch
Code for part2
Git Repo recursive part2 branch
Code for part3
Git Repo recursive part3 branch
npm install
npm run dev
After running above commands go to localhost:8080