The MVC or separete logic from presentation. is a well knowned paradigm.
Its knowned that MVC Frameworks implemented the Model View Controller.
In MVC we have a
-> model -> view -> Controlelr.
- Model - That is called afther the user imput in the controller
- View - The interface
- Controller - Controles user commands
This is created in the year 1970 to be able to reclicle code. Lather i think the paradigm evolve because of mainting code. Is not just to recicle but to make updates.
In separte logic from settings we can have a similar effect of code efficiency. Wid out using objects. Which are kind of heavy on the system since they antangle a lot of information.
Function update_interface (interface var1 var2 var3 int1 )
{
}
Global interface
Global var1
Global var2
Global var3
Global int1
Function update_interface ( )
{
access interface
access var1
access var2
access var3
access int1
}
This way you can change your setting the way you want width out the need to change functions.
These is achieved width objects but these have limitations. First these variables are inside objectes which you need high amount of knowledge to access them. These way the variables are acessible for any one and objects become more modular.