#kotlintips résultats de recherche

You can define an extension to a companion object. #KotlinTips

kotlin's tweet image. You can define an extension to a companion object. 

#KotlinTips

Checkout, plus (+) and minus (-) operators work for map -👇 #AndroidDev #KotlinTips

anoopmaddasseri's tweet image. Checkout, plus (+) and minus (-) operators work for map -👇 #AndroidDev #KotlinTips

To define a property that computes lazily, use 'by lazy'. #KotlinTips

kotlin's tweet image. To define a property that computes lazily, use 'by lazy'. 

#KotlinTips

If you need an array of primitives, like an array of ints, use a specific type like 'IntArray' rather then 'Array<Int>' #KotlinTips

kotlin's tweet image. If you need an array of primitives, like an array of ints, use a specific type like &apos;IntArray&apos; rather then &apos;Array&amp;lt;Int&amp;gt;&apos; 

#KotlinTips

Kotlin filtering function - partition(): filters a collection by a predicate and keeps the elements that don't match it in a separate list. Share it if you learned something new. #Kotlin #KotlinTips #AndroidDev #Android

amitiitbhu's tweet image. Kotlin filtering function - partition(): filters a collection by a predicate and keeps the elements that don&apos;t match it in a separate list.

Share it if you learned something new.

#Kotlin #KotlinTips #AndroidDev #Android

You can implement an interface to your companion object or extend it from a class. #Kotlin #KotlinTips #Android #AndroidDev

mertceyhan's tweet image. You can implement an interface to your companion object or extend it from a class.

#Kotlin #KotlinTips #Android #AndroidDev

Learn Kotlin Collection Functions: associateBy Check the example. Learn and Share 🚀 #AndroidDev #Kotlin #KotlinTips #Developer #Android

amitiitbhu's tweet image. Learn Kotlin Collection Functions: associateBy

Check the example. Learn and Share 🚀

#AndroidDev #Kotlin #KotlinTips #Developer #Android

Kotlin - Idiomatic way to remove duplicate strings from an array - distinct() - toSet() - toMutableSet() - toHashSet() Share it if you learned something new. #Kotlin #KotlinTips #AndroidDev

amitiitbhu's tweet image. Kotlin - Idiomatic way to remove duplicate strings from an array

- distinct()
- toSet()
- toMutableSet()
- toHashSet()

Share it if you learned something new.

#Kotlin #KotlinTips #AndroidDev

📚📖 Kotlin Tips: Koltin scope functions are useful, but sometimes you don't need them! #Kotlin #AndroidDev #KotlinTips #100DaysOfCode

HSalheb's tweet image. 📚📖 Kotlin Tips: 
Koltin scope functions are useful, but sometimes you don&apos;t need them!
#Kotlin
#AndroidDev 
#KotlinTips
#100DaysOfCode

Kotlin Collection Functions: all Check the example Learn and Share #AndroidDev #Kotlin #KotlinTips #Android #Developer

amitiitbhu's tweet image. Kotlin Collection Functions: all

Check the example

Learn and Share 

#AndroidDev #Kotlin #KotlinTips #Android #Developer

Kotlin Best Practices: Advantage of using const #AndroidDev #Kotlin #KotlinTips #Android

amitiitbhu's tweet image. Kotlin Best Practices: Advantage of using const

#AndroidDev #Kotlin #KotlinTips #Android

Kotlin Collection Functions are useful, take advantage of it while coding. Use them based on your use-cases. Check the example Share it if you learned something new. #AndroidDev #Kotlin #KotlinTips

amitiitbhu's tweet image. Kotlin Collection Functions are useful, take advantage of it while coding. Use them based on your use-cases.

Check the example

Share it if you learned something new.

#AndroidDev #Kotlin #KotlinTips

#KotlinTips Null-safety is the bread and butter of Kotlin! Use the null-safe call to avoid if-null checks:

kotlin's tweet image. #KotlinTips

Null-safety is the bread and butter of Kotlin! Use the null-safe call to avoid if-null checks:

Kotlin Best Practices: Constants in Kotlin Check the example. Learn and Share #Kotlin #KotlinTips #AndroidDev #Developer

amitiitbhu's tweet image. Kotlin Best Practices: Constants in Kotlin

Check the example. Learn and Share

#Kotlin #KotlinTips #AndroidDev #Developer

👨‍💻💪As a result of what I learned today With JetPack Compose. 1- Composable functions 2- Add a text element 3- Define a composable function 4- Preview your function in Android Studio👇👇 #kotlinTips #Kotlin #Java #KMM #coding #Jetpack #coder #android #100daysofcode #code #github

MohamedTamer42's tweet image. 👨‍💻💪As a result of what I learned today With JetPack Compose.
1- Composable functions
2- Add a text element
3- Define a composable function
4- Preview your function in Android Studio👇👇
#kotlinTips
#Kotlin
#Java #KMM
#coding
#Jetpack
#coder #android 
#100daysofcode #code #github
MohamedTamer42's tweet image. 👨‍💻💪As a result of what I learned today With JetPack Compose.
1- Composable functions
2- Add a text element
3- Define a composable function
4- Preview your function in Android Studio👇👇
#kotlinTips
#Kotlin
#Java #KMM
#coding
#Jetpack
#coder #android 
#100daysofcode #code #github

Learn Kotlin Collection Functions: chunked Check the example. Learn and Share 🚀 #AndroidDev #Kotlin #KotlinTips #Android #Developer

amitiitbhu's tweet image. Learn Kotlin Collection Functions: chunked

Check the example. Learn and Share 🚀

#AndroidDev #Kotlin #KotlinTips #Android #Developer

Inspired by @JorgeCastilloPr tweet I decided to present & describe various ways of exposing LiveData from ViewModel to a View (usually Fragment) #AndroidDev #Kotlin #KotlinTips #LiveData

igorwojda's tweet image. Inspired by @JorgeCastilloPr tweet I decided to present &amp;amp; describe various ways of exposing LiveData from ViewModel to a View (usually Fragment)

#AndroidDev #Kotlin #KotlinTips #LiveData

🎯 Coroutine Cancellations en Kotlin es cooperativa, utiliza CancellationException y se integra perfectamente con la concurrencia estructurada. Mañana continuaremos con los Coroutines Timeouts 🚀 #Kotlin #KotlinTips #Coroutines #AsyncProgramming #StructuredConcurrency


Want to make your Jetpack Compose UI truly yours? Custom Modifiers let you encapsulate reusable, complex UI behaviors with clean, readable code. Pro tip: chain them smartly to keep composables modular & maintainable! #JetpackCompose #AndroidDev #KotlinTips


🧠 Kotlin Tip of the Day Let’s take a common example scenario: 👉 Managing a user profile (validating data, initializing objects, and handling safe operations). #Kotlin #AndroidDev #KotlinTips #CleanCode #JetpackCompose #DevCommunity

livingstonanto9's tweet image. 🧠 Kotlin Tip of the Day

Let’s take a common example scenario:
👉 Managing a user profile (validating data, initializing objects, and handling safe operations).

#Kotlin #AndroidDev #KotlinTips #CleanCode #JetpackCompose #DevCommunity
livingstonanto9's tweet image. 🧠 Kotlin Tip of the Day

Let’s take a common example scenario:
👉 Managing a user profile (validating data, initializing objects, and handling safe operations).

#Kotlin #AndroidDev #KotlinTips #CleanCode #JetpackCompose #DevCommunity
livingstonanto9's tweet image. 🧠 Kotlin Tip of the Day

Let’s take a common example scenario:
👉 Managing a user profile (validating data, initializing objects, and handling safe operations).

#Kotlin #AndroidDev #KotlinTips #CleanCode #JetpackCompose #DevCommunity
livingstonanto9's tweet image. 🧠 Kotlin Tip of the Day

Let’s take a common example scenario:
👉 Managing a user profile (validating data, initializing objects, and handling safe operations).

#Kotlin #AndroidDev #KotlinTips #CleanCode #JetpackCompose #DevCommunity

Understanding recomposition in Jetpack Compose is 🔑 to building efficient UIs. Compose intelligently re-runs composable functions when state changes—only where needed. Master this, and your apps will be snappy & resource-friendly! #JetpackCompose #AndroidDev #KotlinTips


✅ The Fix: Safe parsing (Kotlin): #AndroidDev #KotlinTips #Locale

Vrushali0988's tweet image. ✅ The Fix: Safe parsing (Kotlin):
#AndroidDev #KotlinTips #Locale

DSL = Domain-Specific Language ✨ A way of writing code that reads like natural language for a specific task. Example: Jetpack Compose is a UI DSL, LocalUser provides "Alice" is a DSL-friendly infix call. #JetpackCompose #KotlinTips


Is it legal to overload operators with bad dad jokes in Kotlin? Source: devhubby.com/thread/how-to-… #KotlinTips #DevCommunity #Kotlin #KotlinDev #kotlin #operator

devhubbycom's tweet image. Is it legal to overload operators with bad dad jokes in Kotlin?

Source: devhubby.com/thread/how-to-…

#KotlinTips #DevCommunity #Kotlin #KotlinDev #kotlin #operator

Are Kotlin arrays the ninjas of programming, slipping from class to class undetected? 🤺🌀" Source: devhubby.com/thread/how-to-… #JetBrains #KotlinTips #DevCommunity #CodeNewbie #class #kotlin

JordanKEurope's tweet image. Are Kotlin arrays the ninjas of programming, slipping from class to class undetected? 🤺🌀&quot;

Source: devhubby.com/thread/how-to-…

#JetBrains #KotlinTips #DevCommunity #CodeNewbie #class #kotlin

Intent Flags Example: val intent = Intent(this, SecondActivity::class.java).apply { flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP } startActivity(intent) This clears anything above SecondActivity and reuses it! #KotlinTips #MobileDev


When defined inside a class, we can't skip the name while accessing it. However, this is not the case with the companion object. Companion object allows us to skip the name and access without using the name. #Kotlin #AndroidDev #KotlinTips #LearningJourney


Kotlin’s extension functions let you add new powers to existing classes without touching their code. It’s like teaching an old class new tricks—clean, smart, and super useful! 💡🚀 #Kotlin #AndroidDev #KotlinTips #AndroidDevelopment #CleanCode

ReyedgeM's tweet image. Kotlin’s extension functions let you add new powers to existing classes without touching their code. It’s like teaching an old class new tricks—clean, smart, and super useful! 💡🚀
#Kotlin #AndroidDev #KotlinTips #AndroidDevelopment #CleanCode

How does Kotlin keep data from getting lost like socks in the laundry when moving pages? Source: devhubby.com/thread/how-to-… #KotlinNative #KotlinTips #MobileAppDevelopment #Kotlin #data #kotlin

JordanKEurope's tweet image. How does Kotlin keep data from getting lost like socks in the laundry when moving pages?

Source: devhubby.com/thread/how-to-…

#KotlinNative #KotlinTips #MobileAppDevelopment #Kotlin #data #kotlin

🚀 Goodbye try-catch, hello runCatching! Learn how to handle exceptions in Kotlin more cleanly and efficiently. Simpler error handling with just a few lines of code. Perfect for developers looking to level up their Kotlin skills! #KotlinTips #CodeSmarter proandroiddev.com/kotlin-tips-an…

proandroiddev.com

Kotlin Tips and Tricks You May Not Know: #7 — Goodbye try-catch, Hello runCatching!

A cleaner way to handle exceptions in Kotlin with runCatching.


#KotlinTips Use ‘trimIndent()’ or ‘trimMargin()’ to format multiline strings as regular code, with the correct indent.

kotlin's tweet image. #KotlinTips

Use ‘trimIndent()’ or ‘trimMargin()’ to format multiline strings as regular code, with the correct indent.

You can define an extension to a companion object. #KotlinTips

kotlin's tweet image. You can define an extension to a companion object. 

#KotlinTips

To define a property that computes lazily, use 'by lazy'. #KotlinTips

kotlin's tweet image. To define a property that computes lazily, use &apos;by lazy&apos;. 

#KotlinTips

Use "? :return" to return from a function if the left expression is null #KotlinTips

kotlin's tweet image. Use &quot;? :return&quot; to return from a function if the left expression is null

#KotlinTips

If you need an array of primitives, like an array of ints, use a specific type like 'IntArray' rather then 'Array<Int>' #KotlinTips

kotlin's tweet image. If you need an array of primitives, like an array of ints, use a specific type like &apos;IntArray&apos; rather then &apos;Array&amp;lt;Int&amp;gt;&apos; 

#KotlinTips


Use ‘trimIndent()’ or ‘trimMargin()’ to format multi-line strings as regular code, with the right indent #KotlinTips

kotlin's tweet image. Use ‘trimIndent()’ or ‘trimMargin()’ to format multi-line strings as regular code, with the right indent

#KotlinTips

Learn Kotlin Collection Functions: associateBy Check the example. Learn and Share 🚀 #AndroidDev #Kotlin #KotlinTips #Developer #Android

amitiitbhu's tweet image. Learn Kotlin Collection Functions: associateBy

Check the example. Learn and Share 🚀

#AndroidDev #Kotlin #KotlinTips #Developer #Android

#KotlinTips Null-safety is the bread and butter of Kotlin! Use the null-safe call to avoid if-null checks:

kotlin's tweet image. #KotlinTips

Null-safety is the bread and butter of Kotlin! Use the null-safe call to avoid if-null checks:

Kotlin filtering function - partition(): filters a collection by a predicate and keeps the elements that don't match it in a separate list. Share it if you learned something new. #Kotlin #KotlinTips #AndroidDev #Android

amitiitbhu's tweet image. Kotlin filtering function - partition(): filters a collection by a predicate and keeps the elements that don&apos;t match it in a separate list.

Share it if you learned something new.

#Kotlin #KotlinTips #AndroidDev #Android

Kotlin Collection Functions: all Check the example Learn and Share #AndroidDev #Kotlin #KotlinTips #Android #Developer

amitiitbhu's tweet image. Kotlin Collection Functions: all

Check the example

Learn and Share 

#AndroidDev #Kotlin #KotlinTips #Android #Developer

In Foo::bar, bar can also be an extension to Foo. Like in Char::isLetterOrDigit. #KotlinTips

kotlin's tweet image. In Foo::bar, bar can also be an extension to Foo. Like in Char::isLetterOrDigit. 

#KotlinTips

#KotlinTips 𝗙𝘂𝗻𝗰𝘁𝗶𝗼𝗻𝗮𝗹 𝗪𝗮𝘆 𝗢𝗳 𝗘𝗿𝗿𝗼𝗿 𝗛𝗮𝗻𝗱𝗹𝗶𝗻𝗴 𝗜𝗻 𝗞𝗼𝘁𝗹𝗶𝗻 𝗪𝗶𝘁𝗵 𝗿𝘂𝗻𝗖𝗮𝘁𝗰𝗵𝗶𝗻𝗴 #AndroidDev #Kotlin

navczydev's tweet image. #KotlinTips

𝗙𝘂𝗻𝗰𝘁𝗶𝗼𝗻𝗮𝗹 𝗪𝗮𝘆 𝗢𝗳 𝗘𝗿𝗿𝗼𝗿 𝗛𝗮𝗻𝗱𝗹𝗶𝗻𝗴  𝗜𝗻 𝗞𝗼𝘁𝗹𝗶𝗻 𝗪𝗶𝘁𝗵 𝗿𝘂𝗻𝗖𝗮𝘁𝗰𝗵𝗶𝗻𝗴

#AndroidDev  #Kotlin

#KotlinTips Using ‘let()’ can be a concise alternative to null-checking with an ‘if’ expression. With ‘let()’ there is no need for an extra variable, which can be quite useful in some situations.

kotlin's tweet image. #KotlinTips

Using ‘let()’ can be a concise alternative to null-checking with an ‘if’ expression. With ‘let()’ there is no need for an extra variable, which can be quite useful in some situations.

Checkout, plus (+) and minus (-) operators work for map -👇 #AndroidDev #KotlinTips

anoopmaddasseri's tweet image. Checkout, plus (+) and minus (-) operators work for map -👇 #AndroidDev #KotlinTips

Kotlin - Idiomatic way to remove duplicate strings from an array - distinct() - toSet() - toMutableSet() - toHashSet() Share it if you learned something new. #Kotlin #KotlinTips #AndroidDev

amitiitbhu's tweet image. Kotlin - Idiomatic way to remove duplicate strings from an array

- distinct()
- toSet()
- toMutableSet()
- toHashSet()

Share it if you learned something new.

#Kotlin #KotlinTips #AndroidDev

Kotlin Best Practices: Advantage of using const #AndroidDev #Kotlin #KotlinTips #Android

amitiitbhu's tweet image. Kotlin Best Practices: Advantage of using const

#AndroidDev #Kotlin #KotlinTips #Android

Convert an `if` expression into a `when` expression automatically by just hitting Alt+Enter on the `if`. #KotlinTips

kotlin's tweet image. Convert an `if` expression into a `when` expression automatically by just hitting Alt+Enter on the `if`.

#KotlinTips

#KotlinTips 𝗴𝗿𝗼𝘂𝗽𝗕𝘆 And 𝗮𝘀𝘀𝗼𝗰𝗶𝗮𝘁𝗲𝗕𝘆 #Kotlin #AndroidDev #Android

navczydev's tweet image. #KotlinTips 
𝗴𝗿𝗼𝘂𝗽𝗕𝘆 And 𝗮𝘀𝘀𝗼𝗰𝗶𝗮𝘁𝗲𝗕𝘆

#Kotlin #AndroidDev #Android

Loading...

Something went wrong.


Something went wrong.


United States Trends