A Scala journey: types, Typelevel and Scala 3
Discover how our guest became a Scala programmer – from his first steps to his present-day reflections.
To mark Scala’s 20th anniversary, we asked Scala experts to tell us about their Scala journeys. Our guest works as a Software Engineer focused on functional programming.
How did you discover Scala, and what was your first impression?
Around 2013/2014, the manager I had back then suggested I take a look at Play! Framework (our company was a Java shop), and I fell in love with it right away. Some months later, I took the classic Coursera FP course taught by Martin himself, and by mid 2014 I had moved to a Scala shop in Buenos Aires, Argentina (one of the pioneers in the country back then!).
Describe the moment when you thought, “Aha! Scala is awesome!” Which Scala features and capabilities gave you that feeling?
Higher-order functions; they still amaze me.
In what ways has Scala shaped how you approach programming problems?
Types, types and even more types. Recursion also became part of my toolkit.
If you could introduce a new feature to Scala, what would it be, and how would developers benefit?
Typed holes would make a nice addition to the compiler. It would work like an AI coding assistant leading you through the types until you land on the one that completes the puzzle.
Which programming meme is your favourite?
This one:
Source: imgur.com
Which tools and libraries do you reach for first as a software developer?
Nix, Neovim and the libraries from the Typelevel ecosystem.
Describe a situation where Scala turned out to be a game-changer in a real-world project
Every time, without exception. Honestly, after Java it was such a relief to stop running into the notorious NullPointerException.
What impact has the Scala community had on your programming journey? Any memorable interactions or stories of support?
My first Scala book was born from a conversation I had with two members of the Scala community; I believe that speaks louder than anything I could say.
Were there any funny or embarrassing moments while you were learning Scala?
Even though I began using Scala in mid 2014, I struggled to grasp “flatMap” (and Monads in general) until it finally clicked one day in 2016, when I first worked with Scalaz Task.
What would you recommend to someone who is just getting started with Scala?
Find a mentor if possible, it will make things much easier for you.
How have you watched Scala change over the years, particularly in your area of work?
The Typelevel libraries have made huge progress, above all my two favorites: Cats Effect and Fs2. And as for Scala 3, what can I say – I love it, and I’m fortunate enough to be paid for using it.
Where do you see Scala heading over the next decade?
Predictions aren’t my strong suit, but I hope it keeps serving as a source that other languages borrow ideas from (not looking at you, Java) 😉