Louis CAD

Results 464 comments of Louis CAD

The `suspend operator fun` `invoke` should be put in a sub-package named `lazydb` so it looks obvious from the imports

Here's an implementation of this issue in the sample sources: https://github.com/LouisCAD/Splitties/blob/8510b5acb1c957084b00c4830011424aba3f5e95/sample/src/main/java/com/louiscad/splittiessample/extensions/coroutines/SuspendLazyRoom.kt#L9-L19

The `SuspenLazy` class allows more than just usage for Room: https://github.com/LouisCAD/Splitties/blob/4b444d0e9ea87b26e3af236edb4b68545ce128fb/sample/src/main/java/com/louiscad/splittiessample/extensions/coroutines/SuspendLazy.kt#L7-L15 Here's how it can be used for Room: https://github.com/LouisCAD/Splitties/blob/4b444d0e9ea87b26e3af236edb4b68545ce128fb/sample/src/main/java/com/louiscad/splittiessample/extensions/coroutines/SuspendLazyRoom.kt#L8-L11 it can also be used for SharedPreferences: https://github.com/LouisCAD/Splitties/blob/4b444d0e9ea87b26e3af236edb4b68545ce128fb/sample/src/main/java/com/louiscad/splittiessample/prefs/GamePreferences.kt#L23-L24

AndroidX `ViewModel` is not the right place to expose such an API IMO. It's better exposed in the UI, which is hosted in an `Activity`. That said, I see a...

See also this issue about naming consistency of `SwitchMaterial`: https://issuetracker.google.com/issues/123830858

I think your `enterText` example is nice. For cases where you would not want to clear the text, there may be an `addText` extension, and both may have a `closeSoftKeyboard`...

Thanks for addressing @tandpfun! I noticed the `readme.md` file uses a non dynamic image that currently contains the old Kotlin logo (under the "Themed Icons" heading), so it'd need to...

It's weird, out of the 2 times the Kotlin logo is displayed, the second occurrence (the one in the list) is up to date, but the first one that sits...

Still relevant. How many engineers does it take to update a screenshot?

Quoting myself for future reference as I'll work to fix this: > Hello @sjp4, thanks a lot for sharing your analysis, I now understand how `runBlocking` can fix it. >...