How Scala Became Part of My Story: from Java to fs2 and open source
Follow an fs2 maintainer's path to becoming a Scala programmer, from her first steps to what she thinks today.
Our Scala interview series welcomes another great guest. She is a functional programmer, teacher, open source contributor and the organizer of a Scala user group. She is one of the maintainers of fs2. Over the last five years, she has been helping developers become masters of functional programming in Scala.
How did you first get introduced to Scala, and what did you think about it?
You may not believe it, but I started out as an object-oriented Java developer. I stepped away from my first job to build a game engine and chose Scala as a fresh start.
At first, I found it quite intimidating. Until then I had written Java and nothing but Java, and good Java code always had the same look. Scala offered so many different ways to express things, not only in syntax but also in programming paradigms. My code was hard to follow, yet all of a sudden I could solve far more problems than before.
It showed me new ways of thinking about and understanding code. In hindsight, the hardest part was not really Scala itself but stepping out of my comfort zone and picking up a second programming language. Since then, I have gladly jumped into more languages than I can count, and I have become much better at it.
Tell us about a moment when you realized, “Aha! Scala is awesome!” What Scala’s features and capabilities made you feel that way?
I came across fs2 for the first time while building game engines and looking for a functional way to represent animations. Type-level programming with shapeless and functional programming with cats had already impressed me, but fs2 is what really got me hooked. For expressing iterative computations, it beat everything I had ever seen, both in Scala and elsewhere. To this day it stands out as the most powerful stream processing library, and I am proud to be one of its maintainers now
Through the years, I have tried out lots of languages. What keeps pulling me back to Scala, though, is its thriving ecosystem and its inventive community.
What is your favourite programming meme?
It is somewhat cynical, but I always enjoy sharing this XKCD comic:
source
How has the Scala community impacted your programming journey? Any standout interactions or support stories to share?
My first contact with open source came through the Scala community.
I woke up to it gradually. First, I noticed that the libraries I relied on were open for me to explore and that I could open issues and talk about them; later, I realized I could give back by fixing things myself, making the ecosystem better for everyone else.
I was always somewhat timid on online forums, but I attended one of the Typelevel Hack the Tower days in person. I spent the whole day with a small group of Scala open source contributors, talking about cats and about the joys and difficulties of functional programming. Those conversations taught me a great deal – we shared problems, came up with solutions together, and even put fixes in place on the spot. Shortly afterwards, they gave me the ideas and the courage to release my own open source libraries.
I am deeply grateful to those meetups and the people who came to them. Without them, I would surely never have become so involved in functional programming, teaching, or open source software. Thanks to them, my programming journey has been far richer.
What advice would you give to someone just starting with Scala?
Do not be afraid, and keep going! Become part of the community as early as possible. Get in touch with people online, at local meetups, or in study groups. Speak up about what you enjoy, and also about what you struggle with, and then get involved and try to make it better. When searching for a Scala job, look for a team that will back your open source contributions.
What are your predictions for the future of Scala in the next decade?
In my view, the Scala ecosystem will become far more sustainable. Scala has now grown into a genuinely mature programming language. Companies pick it not for its new features but because it provides a stable and dependable foundation.
I expect many more of these companies to back the language, by funding its development, its open source ecosystem, and its broader community. Scala has always been a language for everyone, but it has never been easier for companies to have a say in where it is heading.