Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I do this for a code generation tool we use internally! Plans contain all the metadata to actually do a thing, but allow transformation, filtering etc before execution. It also forces you to abstract your code in a cleaner way, and minimize the surface of your plan generation/execution functions, which makes them infinitely more testable.

The way I think about when to use a plan is whenever you're doing batches of I/O of some kind, or anything that you might want to make idempotent.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: