Daniele B
12/07/2020, 6:26 PMGiorgos Neokleous
12/07/2020, 6:36 PMjw
12/07/2020, 6:42 PMDaniele B
12/07/2020, 6:45 PMjw
12/07/2020, 6:47 PMDaniele B
12/07/2020, 6:52 PMjw
12/07/2020, 7:06 PMjw
12/07/2020, 7:07 PMDaniele B
12/07/2020, 7:16 PMjw
12/07/2020, 7:21 PMDaniele B
12/07/2020, 7:30 PMDaniele B
12/07/2020, 7:43 PMjw
12/07/2020, 7:59 PMDaniele B
12/07/2020, 8:09 PMrocketraman
12/07/2020, 8:19 PMrocketraman
12/07/2020, 8:22 PMDaniele B
12/07/2020, 8:26 PMrocketraman
12/07/2020, 8:27 PMcollectAsState
in Compose or collecting on the StateFlow in an imperative UI doesn't change much.Daniele B
12/07/2020, 8:35 PMrocketraman
12/07/2020, 8:37 PMDaniele B
12/07/2020, 8:43 PMrocketraman
12/07/2020, 8:43 PMDaniele B
12/07/2020, 8:44 PMDaniele B
12/07/2020, 8:45 PMrocketraman
12/07/2020, 8:46 PMrocketraman
12/07/2020, 8:47 PMDaniele B
12/07/2020, 8:52 PMCompose may further reduce coupling between the view and the view model in the view layerI guess I was interpreting this as “view” and “view model in the view layer” coupling. While you probably meant “view” and “view model” coupling (on the view side)
rocketraman
12/07/2020, 8:54 PMrocketraman
12/07/2020, 8:55 PMHaving a multi-platform shared view model necessarily moves the view model out of the view layer, thus removing any related coupling. However, that result is achieved whether or not the UI uses Compose or XML.
jw
12/07/2020, 8:57 PMDaniele B
12/07/2020, 8:58 PMrocketraman
12/07/2020, 9:02 PMfindViewById
and friends allows you to use the same view code on non-Android platforms as well.
I.e. KMP gets you part of multi-platform from one direction (business domain and ViewModel), and Compose gets you part of multi-platform from another (View).
If that isn't part of your thesis, then just ignore me! 🙂Daniele B
12/07/2020, 9:06 PMDaniele B
12/07/2020, 9:14 PMrocketraman
12/07/2020, 9:16 PMrocketraman
12/07/2020, 9:20 PMrocketraman
12/07/2020, 9:21 PMDaniele B
12/07/2020, 9:35 PMDaniele B
12/07/2020, 9:40 PMrocketraman
12/07/2020, 9:49 PMfindViewById
just based on that -- nothing about findViewById
is inherently about "providing data" at all. Doing so seems completely arbitrary and I don't think very many people will understand it to mean that.Arkadii Ivanov
12/07/2020, 9:50 PMDaniele B
12/07/2020, 9:56 PMDaniele B
12/07/2020, 9:59 PMArkadii Ivanov
12/07/2020, 10:12 PMwhich is the one between the “ViewModel” (which is the part of code that on Android uses “findViewById”In Android, ViewModels do not use
findViewById
Arkadii Ivanov
12/07/2020, 10:13 PMfindViewById
Daniele B
12/07/2020, 10:17 PMDaniele B
12/07/2020, 10:19 PMfindViewById
as part of ViewModel.Daniele B
12/07/2020, 10:23 PMDaniele B
12/07/2020, 11:11 PMDaniele B
12/07/2020, 11:26 PMDaniele B
12/07/2020, 11:26 PMjw
12/08/2020, 12:20 AMDaniele B
12/08/2020, 1:07 AMjw
12/08/2020, 1:12 AMDaniele B
12/08/2020, 1:19 AMjw
12/08/2020, 1:23 AMDaniele B
12/08/2020, 1:28 AMjw
12/08/2020, 1:33 AMJavier
12/08/2020, 1:34 AMDaniele B
12/08/2020, 1:34 AMjw
12/08/2020, 1:36 AMjw
12/08/2020, 1:42 AMJavier
12/08/2020, 1:44 AMDaniele B
12/08/2020, 1:58 AMJavier
12/08/2020, 2:01 AMjw
12/08/2020, 2:02 AMJavier
12/08/2020, 2:06 AMDaniele B
12/08/2020, 2:17 AMJavier
12/08/2020, 2:27 AMDaniele B
12/08/2020, 2:31 AMElka
12/08/2020, 9:34 AMDaniele B
12/08/2020, 9:41 AMAsh
12/08/2020, 9:18 PMDaniele B
12/08/2020, 9:21 PM