Modular Architecture #25
Replies: 2 comments 6 replies
-
I for one would like a parser library I could reuse in tools. But this is more a response to your need for a diagramming tool. github has diagramming built in: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-diagrams |
Beta Was this translation helpful? Give feedback.
-
Hello, a rust newbie and interested observer here! I, for one, would re-use the "core" library - I think "lib" in the diagram? It's these core business rules that pique my interest. I also wonder if the lib must depend on the parser, or could a more composition-based approach be taken? Eg would this parser be required for external apps or could external apps only want to call "core business rules" with data from some other source (eg from a database, structured/form input on a webpage, etc...)? A quick sketch... graph TD;
id1[external app]-->id2[ledger lib];
id3[ledger CLI]-->id2[ledger lib];
id3[ledger CLI]-->parser;
id3[ledger CLI]-->id4[output formatter];
Forgive me if this was already the plan, or is simply unfeasible. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would suggest a modular design of the application, to provide multiple benefits to the end-users.
There is already discussion about a separate parser crate (#11) as there is a need for that specific functionality. In line with this, I would suggest that we have different components that can interact together but also be utilized on their own.
Different components of the system may be useful for the full ecosystem and the community.
One interesting aspect is JavaScript/WASM interop, so having the library/API available (that the CLI calls into) would be perfect. For the same reason, introducing/separating the output formatters.
Approximate idea:
Beta Was this translation helpful? Give feedback.
All reactions