5

Sealed Classes, Sequences, Immutability: Idiomatic Kotlin Solving Advent of Code...

 2 years ago
source link: https://www.youtube.com/watch?v=0GWTTSMatO8
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
#Kotlin #AdventOfСodeInKotlin #Idiomatic

Sealed Classes, Sequences, Immutability: Idiomatic Kotlin Solving Advent of Code Puzzles

2,551 views
Premiered Oct 6, 2021

We’re solving the eighth Advent of Code challenge in idiomatic Kotlin. We will be simulating, diagnosing, and fixing a small, made up game console! If you have ever wanted to implement your own virtual machine or emulator for an existing system like a game console or a retro computing device, you’ll find this issue particularly interesting!

As usual, a number of Kotlin features will help us achieve that goal, like sealed classes, sequences, and immutability.

Advent of Code Day 8 Task: https://adventofcode.com/2020/day/8

Idiomatic Kotlin: Solving Advent of Code Puzzles Series playlist: https://www.youtube.com/watch?v=o4emr...

* Used with the permission of Advent of Code (Eric Wastl)

#Kotlin #AdventOfСodeInKotlin #Idiomatic #Tutorial #AdventOfCode

Show lessShow more

5 Comments

Sort by
default-user=s48-c-k-c0x00ffffff-no-rj
Add a public comment...

Perfect video. Well delivered. Kudos to ya'll.

Also, I am a mutability freak. To hell with perf

1 week ago

Immutability is great to scale application with all compile time safety against mistakes, and not to mention easy testability

1 week ago

I wish kotlin compiler could optimize copy method of data classes to smartly predict and mutate the source object instead of creating new one if source object is known to be collected, this will reduce gc overhead w/o sacrificing code safety

1 week ago


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK