PinnedGabriel ShanahaninThe Kotlin PrimerThe Kotlin Primer has a new homeSearchable, navigable, faster, and with 235 easter eggs.2 min read·Jan 1, 2024--1--1
PinnedGabriel ShanahaninThe Kotlin PrimerInline (Value) ClassesAn introduction to inline (also called value) classes, how they’re connected to Project Valhalla, their properties & limitations, and how…·6 min read·Dec 17, 2023--1--1
PinnedGabriel ShanahaninThe Kotlin PrimerModeling States and StructureThe benefits of using types to represent the states and shapes of your entities, and how it makes your code safer, more expressive and…·8 min read·Dec 17, 2023----
PinnedGabriel ShanahaninThe Kotlin PrimerDomain Specific LanguagesDemystifying DSLs once and for all — the surprising thing that makes a DSL a DSL, how to build them in Kotlin, why they’re nothing special…·4 min read·Dec 24, 2023----
PinnedGabriel ShanahaninThe Kotlin PrimerIntroductionDiscover what the Primer is, if it’s something you can benefit from, what you can/can’t expect from it and how to best go about reading it.·8 min read·Nov 26, 2023----
Gabriel ShanahaninThe Kotlin PrimerModeling States and Structure: ConsiderationsThings to take into consideration when using types to make the states and shapes of entities explicit in your code.·6 min read·Dec 3, 2022----
Gabriel ShanahaninThe Kotlin PrimerSequences: Iterable vs. Sequence vs. Java StreamA discussion on performance of Sequence vs. Iterable, when to use which, and the differences between Sequence and Java Streams.·5 min read·Nov 17, 2022----
Gabriel ShanahaninThe Kotlin PrimerSequences: Yield vs. Return & How Pausing Functions WorkAn introduction to the sequence method, an explanation of yield vs. return, a look into how to implement functions which can pause using…·7 min read·Nov 17, 2022----
Gabriel ShanahaninThe Kotlin PrimerSequences: How They Work & How To Use ThemHow to create a Sequence, how they work under the hood & the difference between intermediate and terminal operations, and how laziness and…·6 min read·Nov 17, 2022----
Gabriel ShanahaninThe Kotlin PrimerSequences: Why We Need ThemA practical example demonstrating how collections based on Iterable fall short, a novel explanation of why this happens using traversal…·6 min read·Nov 17, 2022----