Separation of Concerns

Modularize so that it’s eaiser to reuse and understand the system.

””” The Separation of Concerns leads a bit into the topic Software Quality:

“Quality is never an accident; it is always the result of intelligent effort.” John Ruskin

Being a good software developer is also thinking about Software Quality. Two out of four measurement techniques for good software quality are Maintainability and Reliability. For the achievement of Maintainability and Reliability the Separation of Concerns is very important.

For example, updating your Firebase database paths could happen to your project.

Without the separation of logic and widget you would need to check your whole application, rename every reference you are using and recheck the whole functionality. Having it all in one service leading to just one file that has to be adapted enables code Maintainability! “””

Reference: How to create a Singleton Firebase-Service in Flutter

Journal