Application architecture — the question is on the books and the challenge
What good books can be read on the subject of how to build an app?
For example, now I write one bot for xmpp-based game in python.
I use xmpppy. Yet decided to do so:
When composing a message to make the modules xmlns, that is, to obtain a profile will be something like
bot.send( gameApi.iq.ProfileIq( id ) )
You can still do that
bot.send( xmpp.protocol.Iq( payload = getProfile( id ) ) )
The problem is that I don't know how to organize the handlers for incoming messages:
you can make the function gameApi.event.GameHandler(), LeaderHandler and so forth, and attach to the bot, for example, or to create a class that will record automatically.
The game is divided into three stages, then I have no idea what to do:
The stage opens with a message from the server, the handler processes it, then (I assume), you should call the function processing stage, for example, smth.StageOneProcess().
Offer something to read on this topic and your solution, show the schools in my decision.
aniya.Kertzmann65 answered on October 10th 19 at 11:30
If you want to really understand the architecture (assuming that You are already pretty experienced and read quite a lot of books) that just make the bot. When he's ready, do it again, but differently, and then again redo. After the third time you will have beautiful, visitany and clear code + priceless experience from reflection and error.