#kotlintips risultati di ricerca
#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

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

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: 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

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

#KotlinTips We prefer using default arguments instead of overloading. Default arguments in Kotlin remove nearly all use cases for method and constructor overloading.

To create a map from an iterable or a sequence, use ‘associate’ function and specify how to build a map entry from each element. If an element becomes a key, use 'associateWith'. If it becomes a value, use 'associateBy' instead. #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

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

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

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

🚀 Dive into Kotlin's Nothing and Unit types! 🤯 Learn how these mysterious type systems unlock next-level code safety and functional programming magic. Developers, your type game is about to level up! #KotlinTips #ProgrammingMagic android4n00bs.blogspot.com/2025/01/6-noth…
#KotlinTips Use ‘trimIndent()’ or ‘trimMargin()’ to format multiline strings as regular code, with the correct indent.

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

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

#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.

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

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

#KotlinTips We prefer using default arguments instead of overloading. Default arguments in Kotlin remove nearly all use cases for method and constructor overloading.

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 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.

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

#KotlinTips The ‘when’ expression is exhaustive if used in combination with sealed classes or enums. The compiler will complain if you forget to handle any of the cases, thus alerting you to possible mistakes.

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

To create a map from an iterable or a sequence, use ‘associate’ function and specify how to build a map entry from each element. If an element becomes a key, use 'associateWith'. If it becomes a value, use 'associateBy' instead. #KotlinTips

Something went wrong.
Something went wrong.
United States Trends
- 1. #JoyForum 1,445 posts
- 2. #2025MAMAVOTE 298K posts
- 3. Good Thursday 19.4K posts
- 4. Brevis ZK 139K posts
- 5. Mila 17.8K posts
- 6. Deport Harry Sisson 12.5K posts
- 7. Friday Eve N/A
- 8. #MC필릭스의_냉터뷰 13.1K posts
- 9. MC FELIX FRIDGE INTERVIEW 14.1K posts
- 10. #FridgeInterview_MCFelix 13.2K posts
- 11. #2025MAMAAWARDS 196K posts
- 12. Tomonobu Itagaki 7,110 posts
- 13. Deloitte 9,244 posts
- 14. Ninja Gaiden 11.5K posts
- 15. BNB Chain 20.5K posts
- 16. DuPont 2,101 posts
- 17. Pelosi 147K posts
- 18. Mad Max 4,463 posts
- 19. Angel Reese 56.7K posts
- 20. John Fetterman 29.3K posts