#kotlin

[ follow ]
java
CodeProject
3 weeks ago
Software development

Smart Android Template for Data Performance

Android Studio is user-friendly for beginners, using Java and Kotlin for basic Android features and data storage. [ more ]
Alvinalexander
1 month ago
Scala

Scala/Java/Kotlin: How to replace left and right brackets in a String (replaceFirst, replaceAll)

Use \ before left bracket for string replacement in Scala/Java/Kotlin. [ more ]
Medium
3 months ago
Scala

Destructuring Assignment- Kotlin vs Scala

Kotlin and Scala both offer destructuring assignment to extract values from data structures.
Java 21 also introduces deconstructing fields of a Java record. [ more ]
medium.com
4 months ago
Scala

Comparing Scala, Java, Kotlin, and Go: A Comprehensive Overview

1. JVM languages like Scala, Java, and Kotlin share some underlying mechanics and support OOP principles.
2. Scala integrates both object-oriented and functional programming paradigms, while Java and Kotlin have a similar syntax but with additional features like null safety and extension functions. [ more ]
Medium
4 months ago
Scala

Structured Concurrency on the JVM

Structured concurrency is a programming paradigm that aims to provide a more organized and predictable way to manage concurrent execution in software programs.
Java 19 has incorporated an API for structured concurrency, while Kotlin has long provided this feature through its Coroutines and suspending functions. [ more ]
Alvinalexander
2 years ago
Scala

Functional Programming, Simplified (a Scala book)

Functional Programming, Simplified book provides a comprehensive guide to understanding functional programming, condensing multiple resources into one accessible source. [ more ]
morejava
scala
Medium
2 months ago
Scala

Destructuring Assignment, Nested deconstruction-Part 2/2

Kotlin uses componentN function to unpack values from an object.
Scala's case classes have helpful methods like apply, unapply for deconstruction. [ more ]
Medium
4 months ago
Scala

Kotlin from Scala perspective: Advent Of Code 2023

Kotlin vs Scala comparison based on Advent of Code
Assessment of Kotlin based on limited exposure [ more ]
morescala
Alvinalexander
1 month ago
Scala

Kotlin sortedWith syntax and lambda examples

The key to using sortedWith in Kotlin is understanding how to write a comparator with anonymous functions (lambda)
Kotlin sortedWith can be used to sort both integers and strings based on different criteria. [ more ]
Medium
2 months ago
Scala

Kotlin Tip #34: Prefer Inline Classes for Wrapping Primitive Types-100 Kotlin Tips in 100 Days

Inline classes in Kotlin wrap another type with no additional memory cost.
Inline classes improve type safety, readability, and efficiency by providing specific names for data types. [ more ]
Medium
2 months ago
Scala

Kotlin Tip #33: Using Delegation to Enhance Classes Without Inheritance-100 Kotlin Tips in 100...

Lazy initialization delays object creation until needed. Kotlin's by lazy delegate optimizes performance for costly property initialization.
By lazy delegate in Kotlin executes lambda expression once for property initialization, prevents re-invocation for subsequent accesses. [ more ]
Medium
5 months ago
Scala

Kotlin vs Scala

Kotlin has a simpler and more efficient syntax compared to Scala.
Scala allows implicit conversion of numeric types, while Kotlin does not. [ more ]
Alvinalexander
5 months ago
Books

Great 2023 holiday programming gift book (for Java/Kotlin/OOP developers)

The book 'Learn Functional Programming The Fast Way!' has been reduced to $20 for the holidays.
It is written for Java, Kotlin, and object-oriented programming (OOP) developers. [ more ]
[ Load more ]