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

I think ledger-cli is much more interesting in a literate programming style with it embedded into code blogs in org mode than just by itself. Not just for money either (ledger-cli can track anything with units), say you wanted to do a major home improvement project and needed a large amount of materials that may be used at multiple stages of the project. Ledger in this case is really useful as a way to tally up how many nails, boards, and other materials you might need. You can keep tallies of materials needed (and used) embedded into the broader context (what the materials will be used for) but still tangle out an overall tally of all materials needed and used.

Another example could be creating a meal plan for a long trip with many meals that you have to bring all the ingredients with you.

Ledger has so many more potential use cases than just as a way to track money, and ledger is so much more useful in org babel than by itself, it is an ideal compliment to org mode for managing large projects with lots of fiddly bits of defined types and units (which honestly can be time too, I kind of prefer it to org mode's clock system).



The meal plan example may be able to go even forward, because I think ledger-cli can also track your calories and macro-nutrients, apart from the ingredients themselves. I meant to do a calorie counting system in ledger-cli for some time, but did not quite get to it.


I am not really sure if ledger-cli has any capacity to create compound units, so that if you say log that you have eaten one potato in ledger-cli, you would also have to manually log the calories and macro-nutrients of that potato unless you had kept a template for that potato's nutritional profile you could copy paste somewhere right? I suppose you might be able to make a "potato" ledger file with its associated nutrient profiles and just load it from a code block every time you eat one. Idk.




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

Search: