David Walendblog.walend.net·Apr 30, 2024Bounding Complexity in Scala ProjectsLi Haoyi wrote a masterful blog entry Strategic Scala Style: Principle of Least Power. It is a reaction to Tim Berners-Lee's personal notes on W3, Principles of Design . Berners-Lee's section on "The Principle of Least Power" opens with: The choice ...Discuss·58 readsScala-Basics
Hans L'HoestProhans.lhoest.eu·Dec 4, 2023FizzBuzz fun: Exploring Functional Programming Design Patterns : MonoidsIn 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 t...DiscussFizzBuzz Fun in ScalaScala
Hans L'HoestProhans.lhoest.eu·Dec 1, 2023Simplifying if-complexity in FizzBuzzIn 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 i...DiscussFizzBuzz Fun in ScalaScala
Hans L'HoestProhans.lhoest.eu·Nov 30, 2023FizzBuzz fun in Scala: Combining functionsEvery 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...DiscussFizzBuzz Fun in ScalaScala-Basics
Hans L'HoestProhans.lhoest.eu·Nov 29, 2023Fizzbuzz fun in Scala: A straightforward implementationIn 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 a...DiscussFizzBuzz Fun in ScalaScala-Basics
Yadukrishnanyadukrishnan.live·Nov 23, 2023Effective Test Parameterization with ScalaTest TablesIntroduction To manage the software's quality, it is essential to cover the methods with unit/integration tests. However, writing tests for all the methods/classes is not enough. It is important to write proper tests covering all the edge cases. Othe...Discuss·2 likes·1.5K readsScala
Yadukrishnanyadukrishnan.live·Oct 1, 2023Scala Made Simple for Beginners: A Gentle Introduction to Kickstarting Your Scala LearningThis blog is a beginner-friendly guide to kickstart your Scala programming journey, and it even covers how to incorporate external libraries. If you're relatively new to Scala, I hope you'll find this information helpful. I won't be walking you throu...Discuss·1.9K readsScala-Basics
Yadukrishnanyadukrishnan.live·Apr 28, 2023Unlocking the Power of SBT: A Beginner's Guide to Understanding Not-So-Common Features1. Introduction SBT is the most popular and de-facto build tool for Scala projects. It lets you write the build configurations using its Scala-based DSL. SBT is very powerful and can create very customizable multi-module builds. However, with great p...Discuss·2 likes·3.2K readsScala
Yadukrishnanyadukrishnan.live·Nov 6, 2022Tuple Improvements in Scala 3Scala 3's enhanced Tuple datatype enables element access by position, supports tuples comprising beyond 22 elements, and introduces supplementary methods and combinators, ultimately improving user experience. Introduction Tuple is a special type of ...Discuss·673 readsScala
Yadukrishnanyadukrishnan.live·Oct 21, 2022Scala Exceptions - Try, try..catch and a caveatLearn about the various approaches to exception handling in Scala, and discover a peculiar situation that may arise while using scala.util.Try. This blog post delves into the fact that scala.util.Try is designed to handle only NonFatal exceptions, an...Discuss·6 likes·955 readsScala