u/RetroUnlockedin r/rust • Recommends
On “What architecture designs have worked good for you?”
…it is not performant, but my code is written more for accuracy than to squeeze every ms of performance. (Not to trigger someone, and claim you cannot do both.)
In my opinion the best way to write an application is to do domain driven design (functional style not oop style).
How this works is quite simple, this the quickest introduction I know of
link to this video
Basically you define the signatures of all your functions. Define the type of all your input and output. Finally you define behavior through tests.
Rust is perfect because you can write all of this domain modeling close to the code.
It is important to note that you do all this before you even write a single line of implementation. Then d…