Avoid using Array in the data class constructor in Kotlin | by Anatolii Frolov | Apr, 2025

Avoid using Array in the data class constructor in Kotlin | by Anatolii Frolov | Apr, 2025

Now, let’s modify the example slightly by changing the friends property to use an Array instead of a List: data class Person(val name: String,val friends: Array)fun main() {val person1 = Person(name = “Mike”,friends = arrayOf(“Mary”, “John”, “Tom”))val person2 = Person(name = “Mike”,friends = arrayOf(“Mary”, “John”, “Tom”))println(person1 == person2)} Output: false Even though both Person instances … Read more

Kotlin Value Class: Type Safety Without Runtime Overhead | by Shbazhenov | Apr, 2025

Kotlin Value Class: Type Safety Without Runtime Overhead | by Shbazhenov | Apr, 2025

Kotlin’s value class is one of the cleanest tools for writing safe, expressive, and efficient code — and it’s shockingly underused. If you’re modeling identifiers, measurements, or business rules, and still relying on String and Int, it’s time to upgrade to value classes. Just remember: ✅ On JVM (including Android), you must annotate every value … Read more

Moshi: Unable to create @Body Converter for Class | by Shaquille Rizki Ramadhan Na | Apr, 2025

Moshi: Unable to create @Body Converter for Class | by Shaquille Rizki Ramadhan Na | Apr, 2025

Image generated by ChatGPT Have you ever experienced this? Hmm, interesting. Well, recently I used the latest version of Moshi as a class converter to convert a data class to JSON when using Retrofit. And this happened: Unable to create @Body converter for class …. Previously, this never happened when I used Moshi. But in … Read more

Google Sued For £5 Billion In UK Class Action Lawsuit

Google Sued For £5 Billion In UK Class Action Lawsuit

CNBC reports Google has been sued in the UK for £5 billion ($6.6 billion) in potential damages over allegations that the U.S. tech giant abused its “near-total dominance” in the online search market to drive up prices. This was a class action lawsuit filed in the U.K. Competition Appeal Tribunal claims Google abused its position … Read more

Resolving Protobuf Duplicate Class Conflicts in Android Applications | by Ayushi Khandelwal | Apr, 2025

Resolving Protobuf Duplicate Class Conflicts in Android Applications | by Ayushi Khandelwal | Apr, 2025

If you’re an Android developer working with Protocol Buffers (protobuf) and Firebase, you might encounter this frustrating error: Caused by: java.lang.RuntimeException: Duplicate class com.google.protobuf.DescriptorProtos found in modules protobuf-javalite-4.30.2.jar -> protobuf-javalite-4.30.2 (com.google.protobuf:protobuf-javalite:4.30.2) and protolite-well-known-types-18.0.1.aar -> protolite-well-known-types-18.0.1-runtime (com.google.firebase:protolite-well-known-types:18.0.1) This error occurs when multiple dependencies in your project include the same class, causing a conflict during build time. … Read more