4 ms·
Data-Driven Routers
- lmilcin 5y ago"Reitit is a fast data-driven router for Clojure(Script)." "Fast" is good. "Clojure(Script)" lets me know I can use it on the browser side. "Data-driven" is useless, it is not telling me anything in a homoiconic environment where code is data and data is code. If it wasn't data driven and I needed it I would write just one probably small macro and be able to translate a data structure to the right calls and get the same effect.
- didibus 5y agoIt's not useless, it means the API takes data directly. What you would have to do to make a non-data-driven API data-driven is the work you are saved from having to do by having the API already data-driven.
- alexvoda 5y agoIt also means that if I want to use it directly, I have to do extra work to marshall data. It is neither good nor bad. In the end it's another API you need to learn if you choose to use it.
- didibus 5y agoYa, but it's still useful to know what you're getting between an API based on functions, macros or data. So I'd say having that in the description of an API is useful.