Learn why we can’t use late-initialized properties and variables for primitive types in Kotlin
Has a BSc in Chemical Engineering and MSc in Information Technology. Except for the major change, nothing else has changed, still, a computer geek who is passionate about all aspects of software engineering looks for elegant and possibly new solutions, eager to learn and hopefully help fellow software geeks to do so.
Here's what I've written (so far):
Learn the difference between init blocks and constructors in Kotlin along with a peek at the generated bytecode for each case
Learn how to use built-in types such Pair and Triple, collection types and arrays, and finally, data classes, to return multiple values.
Learn a few approaches to copy the contents of an InputStream to a file in Kotlin.
Learn how the @Throws annotation facilitates calling Kotlin methods and functions from Java
Learn two approaches to remove duplicate elements from a collection or array
Learn a couple of ways to copy the contents of a List to another one in Kotlin
Learn a few ways to remove all non-alphanumeric characters from a string in Kotlin
Learn a couple of ways to copy the contents of a Map to another one in Kotlin
Learn about two consequences of lambda function inlining in Kotlin: noinline and crossinline