Shahzad_Ansari3's profile picture. Android Engineer, ❤️ Compose, Kotlin.

Shahzad Ansari

@Shahzad_Ansari3

Android Engineer, ❤️ Compose, Kotlin.

🚀 Updated my open-source project to use Version Catalog for managing dependencies instead of buildSrc and the end result is absolutely amazing 🎉 Checkout the repo: github.com/shahzadansari/… #androiddev #kotlin #gradle #jetpackcompose #opensource #androidtip

Shahzad_Ansari3's tweet image. 🚀 Updated my open-source project to use Version Catalog for managing dependencies instead of buildSrc and the end result is absolutely amazing 🎉
Checkout the repo: github.com/shahzadansari/…

#androiddev #kotlin #gradle #jetpackcompose #opensource #androidtip

Shahzad Ansari reposted

Have you ever witnessed unnecessary recompositions like this with LazyColumn or LazyRow? And then you don't have a clue why it's happening? 🤔 Here's a new blog I just published with explanation and solution😉 📃Read now: blog.shreyaspatil.dev/solving-the-my… #androiddev #jetpackcompose

imShreyasPatil's tweet image. Have you ever witnessed unnecessary recompositions like this with LazyColumn or LazyRow? And then you don't have a clue why it's happening? 🤔

Here's a new blog I just published with explanation and solution😉

📃Read now: blog.shreyaspatil.dev/solving-the-my…

#androiddev #jetpackcompose

Shahzad Ansari reposted

For Compose Multiplatform, is this the standard stack or would you swap something?

androiddevnotes's tweet image. For Compose Multiplatform, is this the standard stack or would you swap something?

Shahzad Ansari reposted

lateinit var and val by lazy{} are both used to handle late initialization in Kotlin. The key difference is in the way they behave: one throws an exception if not initialized before use, while the other initializes on first use.

JarekOnTech's tweet image. lateinit var and val by lazy{} are both used to handle late initialization in Kotlin. 

The key difference is in the way they behave: one throws an exception if not initialized before use, while the other initializes on first use.

Shahzad Ansari reposted

All ViewModel APIs in one place! 🥹 There are multiple ways to obtain a ViewModel and you should choose one depending on the libraries that you use. To help you figure it out, we just released a new cheat sheet! 👌 Hope you find it useful 🙌 developer.android.com/topic/librarie…

manuelvicnt's tweet image. All ViewModel APIs in one place! 🥹

There are multiple ways to obtain a ViewModel and you should choose one depending on the libraries that you use. To help you figure it out, we just released a new cheat sheet! 👌

Hope you find it useful 🙌

developer.android.com/topic/librarie…

Shahzad Ansari reposted

In #Kotlin 1.9, instead of using the "until" infix function to create a range that's exclusive on its upper bound, you can use the new open-ended range operator... or as I like to call it, the alligator operator.


Shahzad Ansari reposted

If your "programming teacher" tells you to master the language before you do any projects, you need to find a new teacher. Immediately.


Loading...

Something went wrong.


Something went wrong.