• How to extract all TODOs from code using Scala-CLI

    In recent years, Scala CLI has replaced sbt for my home and smaller work projects. Scala CLI lacks the extensive plugin ecosystem of sbt, so you need to write any additional functionalities yourself. Fortunately, writing simple scripts is a primary use case for Scala CLI, which w…

  • FizzBuzz fun: Exploring Functional Programming Design Patterns : Monoids

    In this post, we will continue from where we left off in a previous article in this series, "FizzBuzz Fun in Scala: Combining Functions," and explore where further abstraction leads us in terms of functional programming design patterns. Our goal is to show that, despite their int…

  • Simplifying if-complexity in FizzBuzz

    In this series, I've mentioned that using an if-expression in the FizzBuzz problem can be more error-prone and complex compared to functional approaches. In this brief article, I'll demonstrate why that's the case. Let's start with a simple working implementation using ifs: // Co…

  • FizzBuzz fun in Scala: Combining functions

    Every implementation of FizzBuzz in this series, at its core, has relied on an infinitely counting lazy list. This modelling is logical, as the game can theoretically be played indefinitely. In this post, we will explore the possibility of defining a single function operating on …

  • Fizzbuzz fun in Scala: A straightforward implementation

    In previous articles of this series, I examined various implementations and meanwhile experimented with others at different levels of abstraction. However, before delving into those, I wanted to present what I believe to be the most straightforward approach, which allows for easy…

  • FizzBuzz Functional Fun in Scala 3

    Nearly a decade ago, I wrote a post about implementing FizzBuzz in a more functional manner, which also happened to be the final entry on a blog I started that year. Now, I want to dedicate more time to writing, and rebooting my blog seems to be a good way to achieve this. What b…

  • FizzBuzz Functional Fun in Scala

    Updated with a more functional implementation of FizzBuzz November 2015 Updated with a link to an implementation using Monoids July 2016 FizzBuzz fun in Scala using Scala Streams. The straightforward implementation of FizzBuzz usually involves defining a list or array of fixed si…