π§π¬π£ππ¦ π’π ππ‘ππ₯π’ππ π¨π ππ‘π πͺπππ§ π§π’ π¨π¦π?
Every application has a UI framework behind it. These frameworks play a huge part in how the applications are created and their performance as well. They also have different ways of operation but can be summarized into two: declarative and imperative.
ππ¦π©ππ«πππ’π―π ππ
This is the most common paradigm. It involves having a separate prototype/model of the applicationβs UI. This design focuses on the how rather than the what. A good example is XML layouts in Android. We design the widgets and components which are then rendered for the user to see and interact with.
ππππ₯ππ«πππ’π―π ππ:
This pattern is an emerging trend that allows the developers to design the user interface based on the data received. This on the other hand focuses on the what. This design paradigm makes use of one programming language to create an entire application. Like JetpacCompose, where we use kotlin to write entire application with UI design and core functionality.
π©π²πΏπ±πΆπ°π
You should now get deeper into learning how to use the declarative format as it is more flexible and easier to use. As, day by day XML will be deprecated from google, jetpack compose will get new update's more then XML. so it will be good to start with jetpack compose if possible go along with it with all upcoming project.