6 ms·
https://github.com/augustoroman/sandwich https://github.com/augustoroman/sandwich is another approach for achieving a similar result. One nice aspect of writing
by xargon7 3y ago
https://github.com/augustoroman/sandwich https://github.com/augustoroman/sandwich is another approach for achieving a similar result. One nice aspect of writing handlers that return errors is that they are easy to test and clean to write.
Sandwich does very simple sequencing to achieve an understandable dependency injection mechanism that produces clear errors when something goes wrong, and it produces errors at setup time rather than run time.
- latchkey 3y agoInteresting. The DI can also be done with something like UberFX.