#kotlintips 검색 결과
Define one function with default values for arguments, instead of defining several overloaded functions. #KotlinTips
🧟♂️ Night of the Undying NullPointerExceptions: A Scary Story from Kodee It was a quiet October evening like any other when Alex sat down to deploy an update. But what began as a simple deployment was quickly met with blood-curdling screams from the logs... One…
#KotlinTips Null-safety is the bread and butter of Kotlin! Use the null-safe call to avoid if-null checks:
#KotlinTips Use the ‘buildString’ function to compose a string. It looks nice in combination with ‘repeat()’:
Use trailing commas to keep the version control history clear. When you add a new function or class parameter, the previous line remains unchanged since it already contains the comma. #KotlinTips
If you need an array of primitives, like an array of ints, use a specific type like 'IntArray' rather then 'Array<Int>' #KotlinTips
Ktor Clients, Serialization and Coroutines make for a powerful trio when consuming RESTful APIs: Combine them to load and convert resources from the web in a type-safe and concurrent fashion. #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
#KotlinTips Use ‘trimIndent()’ or ‘trimMargin()’ to format multiline strings as regular code, with the correct indent.
#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.
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
Consider providing a paired function returning 'null' together with one throwing an exception. Similar to 'toIntOrNull' accompanying 'toInt'. #KotlinTips
Kotlin Collection Functions: all Check the example Learn and Share #AndroidDev #Kotlin #KotlinTips #Android #Developer
📚📖 Kotlin Tips: Koltin scope functions are useful, but sometimes you don't need them! #Kotlin #AndroidDev #KotlinTips #100DaysOfCode
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
🚀 Kotlin's null safety is a game-changer! Safe Call (?.) and Elvis (?:) operators eliminate null pointer headaches. Write cleaner, safer code like a pro. Devs, level up your skills! #KotlinTips #NullSafety 💡 android4n00bs.blogspot.com/2025/02/20-nul…
Got a spare abacus? I need to count my threads in Kotlin. 🧮📱 Source: devhubby.com/thread/how-to-… #KotlinTips #Kotlin #CodingLife #JavaProgramming #create #sew
#KotlinTips Null-safety is the bread and butter of Kotlin! Use the null-safe call to avoid if-null checks:
#KotlinTips Use ‘trimIndent()’ or ‘trimMargin()’ to format multiline strings as regular code, with the correct indent.
Learn Kotlin Collection Functions: associateBy Check the example. Learn and Share 🚀 #AndroidDev #Kotlin #KotlinTips #Developer #Android
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
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
📚📖 Kotlin Tips: Koltin scope functions are useful, but sometimes you don't need them! #Kotlin #AndroidDev #KotlinTips #100DaysOfCode
If you need an array of primitives, like an array of ints, use a specific type like 'IntArray' rather then 'Array<Int>' #KotlinTips
Variables in Kotlin. #KotlinTips #kotlin #AndroidDeveloper #androdDev #Androiddev #Kotlin #AndroidDev #DEVCommunity #javascript #programming #WomenWhoCode #CodeNewbie #100DaysOfCode #100daysofcodechallenge #100DaysOfDesign #codingisfun #uiux #androiddeve #appsdev
Convert an `if` expression into a `when` expression automatically by just hitting Alt+Enter on the `if`. #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
Something went wrong.
Something went wrong.
United States Trends
- 1. Godzilla 24.1K posts
- 2. Barca 97.1K posts
- 3. Trench 7,384 posts
- 4. Lamine 63.7K posts
- 5. Shabbat 2,664 posts
- 6. Brujas 25.6K posts
- 7. $DUOL 2,445 posts
- 8. Barcelona 150K posts
- 9. Brugge 47.5K posts
- 10. Foden 21.3K posts
- 11. Flick 37.2K posts
- 12. Richardson 3,365 posts
- 13. Frey 27.8K posts
- 14. #dispatch 38.6K posts
- 15. Captain Kangaroo N/A
- 16. Jared Golden 1,957 posts
- 17. SCOTUS 35.6K posts
- 18. Anthony Taylor 1,792 posts
- 19. Minneapolis 60.6K posts
- 20. Balde 12.8K posts