Rusty & Bot-1

What's New

Latest Articles and Videos

New!

Decorator Pattern
in Kotlin

In this video, we'll modernize the Decorator Pattern using some of Kotlin's language features.

Decorator Pattern<br/>in Kotlin

Strategy Pattern in Kotlin

Let's see how Kotlin can modernize the Strategy Pattern from the original Gang of Four book.

Strategy Pattern in Kotlin

Coroutines: Concurrency in Kotlin

A live presentation covering the main concepts from Chapter 20, in about 30 minutes.

Coroutines: Concurrency in Kotlin

TypeAlias Show #1: kotlinx.rpc

It's the very first episode of the TypeAlias Show Livestream!

TypeAlias Show #1: kotlinx.rpc

Composing Like You're Inheriting

Composition vs. Inheritance... or can we get the best of both worlds?

Composing Like You're Inheriting

7 Overlooked Stdlib Features

Let's look at seven features in the standard library that you might have missed.

7 Overlooked Stdlib Features

Değişenler, İbareler, ve Nev’ler

Demek bir Kotlin programcısı olmak istiyorsun? Ol vakit, doğru yerdesiniz! Senin maceran işte tam burada, değişenleri, ibareleri, ve nev’leri izah ettiğimiz Bab 1’de başlıyor.

Değişenler, İbareler, ve Nev’ler

Reified Type Parameters

What is type erasure, and how does the reified keyword help?

Reified Type Parameters

The Essence of Coroutines

What makes a coroutine a coroutine?

The Essence of Coroutines

Looking Forward to Kotlin 2.0

Kotlin 2.0 is just around the corner!

Looking Forward to Kotlin 2.0

Three Simple Rules for Subtypes

Inheritance and variance are based on three simple rules.

Three Simple Rules for Subtypes

Inline Functions

Let's look at inline functions, and the crossinline and noinline modifiers.

Inline Functions

Every Kind of Class

Inner classes, value classes, sealed classes, and many others... let's look at them all!

Every Kind of Class

Type Projections

Type projections give us generic subtypes when declaration-site variance isn't an option!

Type Projections

Variance... without Generics!

Unlock the mental model of variance. No generics required!

Variance... without Generics!

Introduction to HexFormat

Let's check out HexFormat and its related functions!

Introduction to HexFormat

Intersection Types in Kotlin

Intersection types are not denotable, but we can still use them!

Intersection Types in Kotlin

try-catch vs runCatching

Let's talk about try-catch, runCatching(), and those poll results!

try-catch vs runCatching

Leanpub Frontmatter Podcast: Dave Leeds

Len Epp and I talk about Kotlin, learning how to code, publishing on Leanpub, and lots more!

Leanpub Frontmatter Podcast: Dave Leeds

A Tour Through Konsist with Igor Wojda

I team up with special guest Igor Wojda to demonstrate how the Konsist static code analysis tool can be used to ensure consistency in a Kotlin codebase!

A Tour Through Konsist with Igor Wojda

How to Use Kotlin's Timing API

Kotlin's Timing API is stable as of Kotlin 1.9, and it offers some great ways to both measure and specify time. In this video, we'll take a tour through the main features of this API so that you can start using durations and time marks like a pro!

How to Use Kotlin's Timing API

Wall Clock vs. Monotonic Clock

As a prelude to exploring the newly-stable Timing API in Kotlin 1.9, let's check out the difference between a wall clock and a monotonic clock!

Wall Clock vs. Monotonic Clock

Introduction to Collection Builders

Use Collection Builders to dynamically build out a collection's contents, without leaving it open to modifications.

Introduction to Collection Builders

Smart Casts with Kotlin Contracts

Use the experimental Contracts feature to create a Smart Cast from your own function.

Smart Casts with Kotlin Contracts

Easy SharedPreferences with Delegated Properties

Learn how Kotlin's delegated properties work by turning Android's SharedPreferences into a delegate.

Easy SharedPreferences with Delegated Properties

5 Fun Ways to Use Extension Functions

Let's put extension functions together with operator function conventions to do some crazy things!

5 Fun Ways to Use Extension Functions

5-Year Celebration: Peek Behind the Scenes!

Get a peek behind the scenes, including my art setup, my writing tooling, and even my cute dog!

5-Year Celebration: Peek Behind the Scenes!