To those who haven’t heard of it, yet, let’s briefly elaborate what Jetpack Compose actually is. It’s a method of implementing your UI in a declarative way. You no longer need to write layout XML files and view classes. With Jetpack Compose this comes all together – directly in your codebase. You use Kotlin as a language to describe (declare/compose) your UI – all broken down into small digestible components.
Hmm... does this sound familiar to you? Happen to be an iOS or React developer? Or cross-platform with Xamarin, Flutter? Or even QML? Basically, all the big players in modern programming technologies have already started the transition to declarative UI – for good reasons.
But before we continue with our topic of UI development, let’s take a step back and have a closer look at the differ ences between declarative and imperative programming to get the full picture.