From a software engineers view, code should be devided in modules. So did i in a project. There are the classical three modules Model-View-Controller (as the widely known pattern). In the controller are some actions that take a long time (for example a sync of the model) and some which are very short (changing the local model for example).From a software engineers view, code should be