Hacker News new | past | comments | ask | show | jobs | submit login

(Author here.)

A whistlestop tour of the technique "insert a lightweight API boundary down the middle of a tool, for fun and profit". It leads you towards a structure that has lots of benefits, such as meaningful `--dry-run` output and more ready librarification.




This was a great read!

It's not material to the point, but I think there's a small typo on line 12 of the second "Finishing the example" snippet: it looks like

    let instructions = gather args
should be

    let instructions = gather inputGlobs


Thanks!

You're quite right; thanks for letting me know. I'll get that fixed.


Nice to see F# in posts from time to time. I might try the technic in the future.




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

Search: