A free, once-weekly Scala news flash. Easy to unsubscribe. Goes out every Thursday.
March 19th, 2021, ISSUE 370


The importance of Scala.js

Why would a frontend developer take on Scala.js when they probably already have 5 browser tabs open for HTML5 APIs, JavaScript APIs, WebPack documentation, TypeScript guides and the application itself they are developing on?
William Narmontas (@ScalaWilliam)
Scala on Android

Learn about how to develop Scala apps using different stacks, even GraalVM!
Maciej Gorywoda (@makingthematrix)
JDK 16's Top 5 for Scala

Here are my top 5 improvements of the JDK 16, from the Scala perspective.
William Narmontas (@ScalaWilliam)
Many happy early returns

I decided to write this article because I remember that back when I started to learn Scala around 2013-2014 the problem of how to return early from a loop actually happened to me a few times.
Maciej Gorywoda (@makingthematrix)
Zio quick read: Extracting the executor for a service

Let’s say you have the need to obtain an Executor from the default zio runtime and use it to create a service. Let’s assume you have a simple function to make your service. This function has no zio knowledge.
Using ZIO Kafka with offset storage in Postgres for transactional processing

A detailed example about how to use ZIO Kafka, Skunk, Cats, and Postgres to address a typical use case.
Marek Kadek (@MarekKadek)
Programming in Scala Fifth Edition - New Release for Scala 3

PrePrint PDF update of Programming in Scala is now available. Use code SCALATIMESMARPINS5 for 15% off. Offer expires 3/31/2021.
Artima, Inc. (@ArtimaInc)
Top Link of February: Functional Design

This great article received a lot of attention last month, so let's highlight it!
Francis Toth (@francistoth)


Generate case classes from some JSON in 25 seconds

In this video we are going to learn about an awesome website https://json2caseclass.cleverapps.io/ which given a JSON sample generates Scala case classes for you that you can copy paste into your project.
DevInsideYou (@DevInsideYou)
THE most important programming concept explained in 35 seconds.

In this video we are going to learn about the 2 kinds of polymorphism: parametric and ad-hoc.
DevInsideYou (@DevInsideYou)
What is a Monad? In 60 seconds!

In this video we are going to learn about what a Monad is!
DevInsideYou (@DevInsideYou)
N-Queens in Scala: Approaching an Interview Problem With Pure Functional Programming

This episode is a bit different. This time, I'm going to show you one of the problems I solve with my students in the Scala & FP Interview Practice course.
Daniel Ciocîrlan (@rockthejvm)
Semigroups and Monoids in Scala

In this video we'll look at Semigroups and Monoids, two abstractions for functional programming derived from abstract algebra. We'll see how they would look like in Scala, and then we'll see what kind of practical problem they solve (besides adding more abstract math to programming).
Daniel Ciocîrlan (@rockthejvm)
Programming with Functions #5 - Immutability

How do you think, where is the border? Where do you decide that enough is enough and reach for ArrayBuffer?
Maciej Gorywoda (@makingthematrix)
Pick any Card: Write Better Data Structures with Scala | Let's talk about Scala 3

In the second video in the "Let's talk about Scala 3" series, Jamie Thompson, a Compiler Engineer at the Scala Center, walks us through writing better data structures with Scala using a game of cards as an example.
Jamie Thompson (@bishabosha)


Production-grade microservices with ZIO, March 24th, online event (GMT)

In this talk, Itamar will share from his experience in running microservices-based on ZIO in production: resilient, Kubernetes-friendly structuring; cloud-native observability with logs, metrics and telemetry, and modern ways of service communication.
Itamar Ravid (@itrvd)
Scala 3 Release Party, April 24th

Be there for the final countdown! A virtual event with free registration. Starts 6:00 PM.
sphere.it (@sphere_it_)
Practical Functional Programming with Typescript workshop, May 5th - 7th

20% off for Scala Times readers!
Matechs, Ziverge
ScalaCon, May 18th - 21st. and Nov. 2nd - 5th, online event

Brought to you by ScalaDays and Scala eXchange, ScalaCon is a series of virtual conferences designed to bring the Scala community closer together.
ScalaCon (@scalacon)



Scala cfor macro, like a java for-loop.
Roman Grebennikov

Declarative concurrency and stream processing library for Scala.
Tomas Mikula (@tomas_mikula)

  1. Scala Times Issue #389

    An intro to the Scala presentation compiler. From Scala 2 shapeless to Scala 3. IntelliJ Scala Plugin 2021.2. Scastie with Scala 3. Tooling Talks Episode 3 - Justin Kaeser.

  2. Scala Times Issue #388

    Data Times - Big Data and ML enthusiasts news flash. Story of importing a large dataset to Akka Cluster. Combining the terminal (iTerm) with the IDE. Metaprogramming in Scala 3: Inline. Part 6 - zio.Has - Getting Started with ZIO in Scala3.

  3. Scala Times Issue #387

    Will Scala 3 be your new favorite language?. Programming with Functions #8: Monads. Part 5 - ZIO.access - Getting Started with ZIO in Scala3. 12th ACM SIGPLAN Scala Symposium Call for Papers. ZIO Hackathon, Oct 29th - 31st (CET).

  4. Scala Times Issue #386

    Scala 3: Macros. 5 Key Lessons from Functional Programming in Scala. OAuth2 Scala application with sttp-oauth2, part 1 - Dev notes. Scala 3 Tech Report by SoftwareMill. Top Link of June: Scala 3 goodies for Scala 2 developers.

  5. Scala Times Issue #385

    Scala 3 Tech Report. ZIO: Introduction to Fibers. Problem: automatic coloring of effect monads in dotty-cps-async. Scala 3: Anti-Givens. (re)constructing sequences with Alternative.

  6. Scala Times Issue #384

    How to write a fire shader. Scala 3 goodies for Scala 2 developers. Composable Scala Matchers: Introduction. Writing an Interpreter From Scratch. Destroy your foldLeft with traverse and State - Scala tutorial.

  7. Scala Times Issue #383

    Existential Crisis: Implementing MapK in Scala 3 . What is ZIO and should you learn it?. Zymposium, June 18th (PDT). ZIO Hackathon, Oct 29th - 31st (CET). ScalaCon, November 2nd - 5th.

  8. Scala Times Issue #382

    Cats: Essential Type Class Hierarchy, Explained. Debugging and Observing Your Scala Code. Programs as Values, Part III: Explicit Control Flow. Programming in Scala Fifth Edition . Favor composition over inheritance in Scala3 with exports!.

  9. Scala Times Issue #381

    Top Level Exports in Scala3. Death of Blocker: blocking in Cats Effect 3 - Scala tutorial. Functional Scala, Dec 2nd - 3rd.

  10. Scala Times Issue #380

    Scala 3 Hello, world!. Scala 3 macros tips & tricks. Build your own refinement types in Scala 3. How To Implement Streaming Microservices Using ZIO and Kafka. How to successfully manage a ZIO Fiber’s lifecycle.

  11. Scala Times Issue #379

    Scala 3 is here!. New Online Course: Effective Programming in Scala. Image editing with Comonads. Generalized Algebraic Datatypes in Scala 3. Kind Projector Migration.

  12. Scala Times Special Scala 3 Issue

    Starting with Scala. Programming in Scala, Fifth Edition. Scala 3 Tech Report. Automatically Deriving Typeclass Instances in Scala 3. Starting with Scala 3 macros: a short tutorial.

  13. Scala Times Issue #378

    From Highschool to Teaching Scala. Rust for the Seasoned Scala Developer. Bring gRPC payloads and domain models closer with ScalaPB transformations. Flog: a functional logger for Scala. Opaque Type Alias in Scala 3.

  14. Scala Times Issue #377

    Typeclasses in Scala 3. Scala 3 Release Party - find out how it went!. Typelevel Discord migration. Scalabase, May 14th. ScalaCon, May 18th - 21st. and Nov. 2nd - 5th.

  15. Scala Times Issue #376

    Cats Effect 3 - Introduction to Fibers. Bintray to JFrog Artifactory migration status and sbt 1.5.1. Anomaly / outlier detection using isolation forest in Scala. Comparing Concurrent Programming Alternatives. Scala 3: Safer Pattern Matching with Matchable.

  16. Scala Times Issue #375

    A ZIO cheatsheet. Programming in Scala, Fifth Edition. Dealing with Optional Values. Best Features of Scala 3 for Scala.js. ZIO Meetup SF, April 22nd.

  17. Scala Times Issue #374

    Image editing with Monads. Fire-and-Forget in Cats Effect. Programming in Scala, Fifth Edition. Scala 3: Extension Methods. The Scala3 feature I'm most excited about!.

  18. Scala Times Issue #373

    Context is King. How to build an Android app in Scala 2.13. Revisiting Scala Native performance. Scala 3 in sbt 1.5. Programming in Scala, Fifth Edition.

  19. Scala Times Issue #372

    Using Cats Effect Resource in Non-Functional Contexts. Cats Effect · The pure asynchronous runtime for Scala. Figuring out Scala functional programming libraries. Scala 3: Infix Operator Notation. Building a transportation cloud with microservices.

  20. Scala Times Issue #371

    Introducing ZIO Http. Automatic UI generation with Scala 3's type class derivation. Scala is a Maintenance Nightmare. The Tagless Final Pattern in Scala. Scala3-migrate: a tool making it easier to migrate to Scala 3.

  21. Scala Times Issue #370

    The importance of Scala.js. Scala on Android. JDK 16's Top 5 for Scala. Many happy early returns. Zio quick read: Extracting the executor for a service.

  22. Scala Times Issue #369

    Tapir serverless: a proof of concept. Writing kubectl plugins with ZIO K8s. The future of Scaladoc. GSoC 2021 Here we come!. Programming in Scala Fifth Edition - New Release for Scala 3.

  23. Scala Times Issue #368

    Scala 3 Tech Report. Tuples bring generic programming to Scala 3. Scala Cats Invariant Functor. Lean for Scala programmers. Structuring Services with ZIO and ZLayer.

  24. Scala Times Issue #367

    The Coralogix Operator: A Tale of ZIO and Kubernetes. Introducing the lihaoyi-scala Github Organization. Why Are Fibers Fast?. Implementing a CountDownLatch (async and dirty). Value Classes in Scala.

  25. Scala Times Issue #366

    GraphQL Overview  -  Part2  -  Libraries. Scala's List has a Secret. Preventing Version Conflicts with versionScheme. Scala 3 Survey: The Conclusion. Upgrade your Tagless Final with Tofu.

Organizing an event?
Promote it with
Scala Times.
The Scala Times reader?
Get a banner!
Got a tip?Send it in!
Follow us onTwitter.
Curated bySoftwareMill.
We arehiring.
Andtaking on projects.