Explore 14 different ways to solve the Raindrops exercise on Exercism. We look at functional pipelines, matrix multiplication, a precalculated table-based solutions using a macro, an Object Oriented approach, some impressive use of Python and Tcl and an enterprise edition.
Kick back and enjoy 45mins of learning with Jeremy and Erik, then go solve the exercise in your favourite way on Exercism.
Solve the exercise at: https://exercism.org/exercises/raindrops
Join #48in24 at: https://exercism.org/challenges/48in24
Timestamps:
00:00:00 Introduction
00:02:17 Basic Method: Javascript
00:04:22 Basic + String Builder: Kotlin
00:06:27 Basic + Lists: Rust
00:08:52 Extendible: Scala
00:11:52 Extendible: Ruby
00:12:53 Function Pipelines: F#.
00:17:18 Matrix Multiplication: R
00:22:16 Abusing / Using Python
00:26:09 Conditionals within strings: Common Lisp
00:31:00 Variable Names: Tcl
00:33:49 Pattern Matching: Elixir
00:36:28 Table-based lookups: Nim
00:42:32 Object Oriented: Pharo
00:47:26 FizzBuzz Enterprise Edition
00:49:53 Conclusion