A free, once-weekly Scala news flash. Easy to unsubscribe. Goes out every Thursday.
November 12th, 2020, ISSUE 352

READING

Domain-Driven Design with FP in Scala

We saw what DDD means in the context of backend Scala applications. With DDD mindset, we try to keep the domain model as close as possible to reality, knowing it’s the only touchpoint between the code and fuzzy real world. Scala, in contrast to other programming languages, definitely helps us with that.
Bartłomiej Szwej (@bszwej)
Explicit term inference with Scala 3

One of the most striking changes for developers adopting Scala 3 is the introduction of a new syntax to replace the implicit mechanism used in previous Scala versions.
Meriam Lachkar, Vincenzo Bazzucchi
Keep alive for JMS connections

The keep alive build on the streams with auto recovery and triggers a reconnect once a limit of maximum missed keep alives has been reached. The reconnect then triggers the recovery and reconnect as defined for auto recovery.
Andreas Gies
Why You Should Learn Scala in 2020?

Is Scala the perfect language for your needs? Find out!
Marcin Krykowski (@marcinkrykowski)
A step-by-step guide for debugging memory leaks in Spark Applications

Memory leaks can happen, but there is a number of things you can do to investigate them.
Shivansh Srivastava
I like Option.get

I’ll blame Scala and Haskell, and not the availability of Option.get. I learned to expect more from my tools. It’s not me, it’s you, Scala.
Alexandru Nedelcu (@alexelcu)
Top Link of October: Java 15 through the eyes of a Scala programmer

The most interesting article from the previous month. Let’s take a look at how the (preview or final) features available in Java 15 relate to constructs known in Scala.
Adam Warski (@adamwarski)

VIDEOS

Programming in Scala for beginners - week 8: matrices, type parameters

Open Scala lectures in Swedish by Björn Regnell at Lund University, Sweden.
Björn Regnell
Working with JSON in Scala, a Circe Crash Course

If you're new to the language, or simply think JSON handling is confusing, consider taking a look!
Guillaume Bogard (@bogardguillaume)
Variance Positions in Scala, Demystified

This video is for the mature Scala developer. We talk about variance in Scala as an innocent question: if A extends B, should Thing[A] be a subtype of Thing[B]?
Daniel Ciocîrlan (@rockthejvm)

EVENTS

Scale By the Bay, November 12th - 14th, online event

Starting at 3:30 PM CET. Use promo code "FUNCTIONAL" to get a 10% discount for our readers!
Scale By The Bay (@ScaleByTheBay)
Functional Data Modeling, November 18th - 19th, Online training

In this course, developers will learn how to use functional Scala to construct simple, precise, and flexible models of any business domain. Use code "ScalaTimes10" to receive 10% off at the checkout.
John A. De Goes (@jdegoes)
Essential Effects (US), November 18th-20th, online event

sential Effects teaches how to safely create, compose, and execute effectful Scala programs using the Typelevel cats-effect library, and how to integrate these concepts and techniques into your projects. The course will take place online as three 4-hour sessions with breaks, 9am-1pm PST (UTC-7). Use discount code 'scalatimes' for a discount!
Inner Product (@InnerProductLLC)
ZIO Hackathon, November 20th-21st, online event

Attendees of ZIO Hackathon 2020 will be able to attend talks on ZIO projects from leading open source contributors, as well as receive expert mentorship in contributing features, bug fixes, and documentation enhancements to the ZIO ecosystem of libraries. Every Contributor to the ZIO library during the ZIO Hackathon will receive this collectible T-shirt!
Ziverge (@zivergetech)
Essential Effects (EU), November 23rd-25th, online event

Essential Effects teaches how to safely create, compose, and execute effectful Scala programs using the Typelevel cats-effect library, and how to integrate these concepts and techniques into your projects. The course will take place online as three 4-hour sessions with breaks, 12pm-4pm UTC.
Inner Product (@InnerProductLLC)
Functional Scala, December 3th-4th, London

Learn the critical topics you need to excel as a Scala developer, and celebrate the Scala programming language and community. Every ticket holder to Functional Scala 2020 will receive an all-day Scala 3 course by John de Goes and a collectible T-shirt!
Ziverge (@zivergetech)
Scala 3 for Scala 2 developer, December 8th - 10th, Online training

In this course, developers who are already familiar with Scala 2.x will get a high-speed introduction to all the changes coming in Scala 3, including semantic changes, syntactic changes, new features, and dropped features. Use code "ScalaTimes10" to receive 10% off at the checkout.
John A. De Goes (@jdegoes)
Functional Scala Megapack (3 workshops)

Functional Design + Functional Data Modeling + Scala 3 for Scala 2 developers. Use our special link to get a 15% discount!
John A De Goes (@jdegoes)

RELEASES

contextual 2.0

Statically-checked string interpolation.
Jon Pretty (@propensive)
Monix 3.3.0

Better Stack Traces, Better Task => Future interop when using Local, and many more updates!
Monix contributors
scala-steward 0.8.1

Scala Steward is a bot that helps you keeping library dependencies and sbt plugins up-to-date.
scala-steward contributors
sbt-explicit-dependencies

An sbt plugin to check that your libraryDependencies accurately reflects the libraries that your code depends on in order to compile.
sbt-explicit-dependencies contributors
cats-parse

A parsing library for the cats ecosystem
cats-parse contributors





  1. 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.


  2. 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!.


  3. 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.


  4. 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.


  5. 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.


  6. 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.


  7. 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.


  8. 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.


  9. 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.


  10. 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.


  11. Scala Times Issue #365

    Coding Adventures with Party Parrot Game . Scala Cats Contravariant Functors. From First Principles: Why Scala?. Idiomatic Error Handling in Scala. Stop Letting Your Tests “Make” Your Luck.


  12. Scala Times Issue #364

    Why we need yet another Akka Persistence plugin?. Match Types in Scala 3. A Metals Retrospective (Part 1) · Metals. Making the Spark DataFrame composition type safe(r). Type driven API development using Scala and Tapir.


  13. Scala Times Issue #363

    How to Sort Lists in Scala with Tail Recursion. Image editing with Functors. Tail Recursive Functions (in Scala). Algebraic Data Types (ADT) in Scala. Ep 6: Functional error handling with applicative in Scala 3.


  14. Scala Times Issue #362

    5 Blogs for Scala's Birthday. Monocle 3 Roadmap. Higher-kinded data in Scala. Objects and Companions in Scala. Essential Effects, 27th-29th January, Online Event.


  15. Scala Times Issue #361

    Scala 3: Dependent Types, Part II. Configuring and suppressing warnings in Scala. Threading best practices in Cats Effect. Scala 3 Metaprogramming by Example by Adam Warski. What the Functor?.


  16. Scala Times Issue #360

    Scala 3: Dependent Types, Part I. Publish Scala 2 and Scala 3 macros together. Concurrent state machines. Wire Signals - Yet Another Event Streams Library. Scala Love CFP.


  17. Scala Times Issue #359

    Implementing Type classes in Scala 3. Finite-State Machines + FS2 streams: A match made in heaven. Scala Compiler Options, Fatal Warnings and Linting Guide. ZLayers by example. Scala 3 type classes.


  18. Scala Times Issue #358

    VirtusLab’s Scala 3 cooperation update. Scala 3.0.0-M3: developer's preview before RC1. How to Use Thread.sleep Without Blocking on the JVM. New in Scala 3. Scala Love CFP.


  19. Scala Times Issue #357

    Join the Scala Discord Server!. Enforcing Semantic Versioning with sbt-strict-update. Kafka Cron using wix/greyhound. Scala Filesystem Operations (paths, move, copy, list, delete) . Metals 2020 Review.


  20. Scala Times Issue #356

    Scala 3 Developers' Survey. Tapir vs Endpoints4s. Opaque Type Aliases and Open Classes. Akka Platform Guide. Type classes with Scala 2.


  21. Scala Times Issue #355

    Scala 3 Developers' Survey. Four new features of Scala 2.13 releases that you probably missed. Scala 3: Path-Dependent Types, Dependent Methods and Functions. Message-based Parallelism with Actors. IntelliJ Scala Plugin 2020.3 Is Out!.


  22. Scala Times Issue #354

    Scala 3 Developers Survey. A case for akka-coordination lease. Monad transformers and cats  -  3 tips for beginners. Forward Compatibility for the Scala 3 Transition. Mirror, Mirror on the Wall, Who’s the Genericioust of Them All?.


  23. Scala Times Issue #353

    Scala 3 Developers Survey. Managing Database Migrations in Scala. One year with Akka 2.6. Best practice for natural Ordering. Event-driven railway network based on Pulsar.


  24. Scala Times Issue #352

    Domain-Driven Design with FP in Scala. Explicit term inference with Scala 3. Keep alive for JMS connections. Why You Should Learn Scala in 2020?. A step-by-step guide for debugging memory leaks in Spark Applications.


  25. Scala Times Issue #351

    Autorecovery for (JMS) Streams. ZIO-AWS with ZIO Query. Implementing Scala.js Support for Scala 3. Let’s Talk About the Scala 3 Indentation. Concurrency in Cats Effect 3.


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.