Refactoring of the backend #1188
Replies: 1 comment 2 replies
-
Yes. Completely agree with all your points. I believe this is not something we will do overnight, it needs to be planned to go in the right direction. What I don't like about OOP and I think it was a bad decision on our end to move to it, is basically the boilerplate of writing a lot to create some basic implementations and the pain that It is to mock the classes to write the tests. |
Beta Was this translation helpful? Give feedback.
-
@flavioislima Hi. You wanted to hear my option on refactoring of the backend and moving to functional programming, so I starter this discussion.
So here are my two cents:
My suggestion:
Before anything else is done, the app must be divided into 3 parts which communicate with each other using well defined APIs:
Only then we will what further refactoring needs to be done.
This architecture will also open the doors for implementing other features to be implemented in the future, like running application headless in the background, adding a command line interface, adding support for other launchers or even adding games manually.
Beta Was this translation helpful? Give feedback.
All reactions