#kotlintips search results
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
You can implement an interface to your companion object or extend it from a class. #Kotlin #KotlinTips #Android #AndroidDev
📚📖 Kotlin Tips: Koltin scope functions are useful, but sometimes you don't need them! #Kotlin #AndroidDev #KotlinTips #100DaysOfCode
Learn Kotlin Collection Functions: associateBy Check the example. Learn and Share 🚀 #AndroidDev #Kotlin #KotlinTips #Developer #Android
Kotlin Collection Functions: all Check the example Learn and Share #AndroidDev #Kotlin #KotlinTips #Android #Developer
Kotlin - Idiomatic way to remove duplicate strings from an array - distinct() - toSet() - toMutableSet() - toHashSet() Share it if you learned something new. #Kotlin #KotlinTips #AndroidDev
#KotlinTips Null-safety is the bread and butter of Kotlin! Use the null-safe call to avoid if-null checks:
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
Variables in Kotlin. #KotlinTips #kotlin #AndroidDeveloper #androdDev #Androiddev #Kotlin #AndroidDev #DEVCommunity #javascript #programming #WomenWhoCode #CodeNewbie #100DaysOfCode #100daysofcodechallenge #100DaysOfDesign #codingisfun #uiux #androiddeve #appsdev
If you need an array of primitives, like an array of ints, use a specific type like 'IntArray' rather then 'Array<Int>' #KotlinTips
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
Kotlin Best Practices: Constants in Kotlin Check the example. Learn and Share #Kotlin #KotlinTips #AndroidDev #Developer
Learn Kotlin Collection Functions: chunked Check the example. Learn and Share 🚀 #AndroidDev #Kotlin #KotlinTips #Android #Developer
#KotlinTips We prefer using default arguments instead of overloading. Default arguments in Kotlin remove nearly all use cases for method and constructor overloading.
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
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
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
I just published Kotlin Infix Functions: A Sweet Shortcut with a Sour Precedence Twist medium.com/p/kotlin-infix… #kotlin #AndroidDev #KotlinTips
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
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…
If a data class is generic, does it get bored easily? Source: devhubby.com/thread/how-to-… #WomenWhoCode #KotlinLang #KotlinTips #Developers #dataclass #kotlin
#KotlinTips Use ‘trimIndent()’ or ‘trimMargin()’ to format multiline strings as regular code, with the correct indent.
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
Learn Kotlin Collection Functions: associateBy Check the example. Learn and Share 🚀 #AndroidDev #Kotlin #KotlinTips #Developer #Android
Kotlin Collection Functions: all Check the example Learn and Share #AndroidDev #Kotlin #KotlinTips #Android #Developer
#KotlinTips Null-safety is the bread and butter of Kotlin! Use the null-safe call to avoid if-null checks:
Kotlin - Idiomatic way to remove duplicate strings from an array - distinct() - toSet() - toMutableSet() - toHashSet() Share it if you learned something new. #Kotlin #KotlinTips #AndroidDev
If you need an array of primitives, like an array of ints, use a specific type like 'IntArray' rather then 'Array<Int>' #KotlinTips
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
Convert an `if` expression into a `when` expression automatically by just hitting Alt+Enter on the `if`. #KotlinTips
Kotlin Best Practices: Constants in Kotlin Check the example. Learn and Share #Kotlin #KotlinTips #AndroidDev #Developer
#KotlinTips Don’t forget that ‘when’, ‘if’, and ‘try’ are expressions and return results. Using expressions will make your code more concise, idiomatic, and easier to read.
#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.
Something went wrong.
Something went wrong.
United States Trends
- 1. Steelers 42.3K posts
- 2. Rodgers 18.8K posts
- 3. Chargers 24.5K posts
- 4. Tomlin 6,183 posts
- 5. #HereWeGo 5,203 posts
- 6. Schumer 193K posts
- 7. Herbert 10K posts
- 8. #RHOP 6,182 posts
- 9. Tim Kaine 11.8K posts
- 10. Resign 91.2K posts
- 11. Ladd 3,735 posts
- 12. Durbin 17.7K posts
- 13. #BoltUp 2,009 posts
- 14. Jaylen Warren 1,745 posts
- 15. Cornyn 12K posts
- 16. #ITWelcomeToDerry 3,384 posts
- 17. Collinsworth N/A
- 18. #snfonnbc N/A
- 19. Arthur Smith N/A
- 20. Pistons 5,864 posts