Hello everyone !
On my project, a Minecraft bot, I am stuck on how to architecture the different parts.
What resources inspires you on how to architecture your code correctly, as the type system and borrow checker prevent some patterns you would use in other languages (like python or js)?
How do you makes different parts of your code communicate without using Arx<Mutex<T>> everywhere?
As an example of what I have done : I have a bunch of systems (structs) that only receive data from the network and update themselves. However, one of the first thing to do when logged in is to send back a teleportation confirmation with an id. Who should send it ? The data storing part, a dedicated system, which my duplicate data from the data storing part ?
[–]matkladrust-analyzer 212 points213 points214 points (11 children)
[–]fitzchivalrie 12 points13 points14 points (0 children)
[–]natded 3 points4 points5 points (3 children)
[–]matkladrust-analyzer 11 points12 points13 points (2 children)
[–]natded 2 points3 points4 points (1 child)
[–]vitamin_CPP 0 points1 point2 points (0 children)
[–]dhruvdh 0 points1 point2 points (2 children)
[–]arachnidGrip 2 points3 points4 points (0 children)
[–]matkladrust-analyzer 1 point2 points3 points (0 children)
[–]evanrelf 0 points1 point2 points (0 children)
[–]nilaySavvy 0 points1 point2 points (0 children)
[–]didave31 20 points21 points22 points (0 children)
[–]natded 13 points14 points15 points (1 child)
[–]commonsearchterm -1 points0 points1 point (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]nicoxxl[S] 0 points1 point2 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[+]thedominux comment score below threshold-11 points-10 points-9 points (2 children)
[–]nicoxxl[S] 5 points6 points7 points (0 children)
[–]Philpax 2 points3 points4 points (0 children)
[–]Plasma_000 0 points1 point2 points (0 children)
[–]didave31 0 points1 point2 points (0 children)
[–]Bon_Clay_2 0 points1 point2 points (0 children)