A free, once-weekly Scala news flash. Easy to unsubscribe. Goes out every Thursday.
November 28th, 2019, ISSUE 302

READING

Optional Actions

Sometimes, amongst required actions, we need to optionally do something. In this post we’ll see how we can use cats to concisely handle this situation.
Adam Rosien (@arosien)
Regexp Replacement via Function in Java/Scala

How to have fine grained control over replacements when using String.replaceAll or similar in Java or Scala.
Alex Nedelcu (@alexelcu)
Stryker Mutator

Kill the mutants. Test your tests with mutation testing.
Stryker Team
Rationality in a Natural World: Arithmetic at the Type-Level

In this article we are going to take a step beyond natural numbers, and derive a type-level encoding of (positive) rational numbers in Scala.
Jack Wheatley
Transforming Data with Embedded Spark

In this article we continue the exploration of Spark jobs written in Scala by building up on the foundation established in the previous article in this series.
Alec Lebedev
Migrate a service getting 200KQPS from Jackson to Circe

When you work with Finagle, handling JSON often means using Jackson, right? We decided to test another approach, more functional, with one of our production applications, and guess what? Works like a charm.
Alexandre Careil
Scala Type Classes comparison

In the second article we are going to compare Scala type class implementation with Java, Rust and Scala 3, which is new version of Scala compiler.
Alexey Novakov (@alexey_novakov)
Spark: Web Server Logs Analysis with Scala

In this article we will show you how simple it is to parse a web server log files and perform some analysis on it.
Achraf El Gdaouni
Prox part 2  - Aakka Streams with Cats Effect

In this post, we will keep cats-effect but replace fs2 with the stream library of the Akka toolkit, Akka Streams.
Daniel Vigovszky (@dvigovszky)
What can ZIO do for me?

Learn how sttp and ZIO make a great combo for polling scenarios.
Pascal Mengelt
"Functional Programming in Scala" and other great Manning books with a special discount!

An exclusive discount for our readers! Use promo code nltimes40 and get a 40% discount for all Manning products in any format!
Manning Books (@manningbooks)
IntelliJ Scala Plugin 2019.3

Method Chain Hints, Scala REPL, Scala Worksheet, and ScalaTest improvements.
JetBrains (@jetbrains)

PRESENTATIONS

How I set up all my SBT projects

In this video we are going to learn a few SBT tips and tricks and about several plugins that I use all the time in most if not all of my projects.
DevInsideYou (@DevInsideYou)
Build yourself an effect system

During this talk, we'll build a minimal effect runtime similar to the one used in ZIO.
Simon Schenk (@inoio_gmbh)

EVENTS

Lambda Days, February 13th -14th 2020, Kraków, Poland

Draft paper submission by January 13th.
Lambda Days (@LambdaDays)
ScalaUA, April 3th-4th, 2020 Kyiv, Ukraine

CFP is on! Also: Super Early Bird tickets are available on website till 2019.12.31, and Wholesale 10+ tickets are available till 2020.04.02.
ScalaUA (@ScalaUA_Conf)
Scalar, March 19th-21st, 2020, Warsaw, Poland

Get ready for one of the biggest Scala conferences in Europe!
SoftwareMill (@scalarconf)

RELEASES

Zparkio

Boiler plate framework to use Spark and ZIO together.
Leo Benkel (@LeoBenkel)
Use := for Assignment

A hot discussion about whether or not the := operator should be adopted in Scala 3.
Martin Odersky (@Odersky)
ZIO Config

A functional, composable ZIO interface to configuration
ZIO Config contributors
Scala.js 1.0.0-RC1

This release candidate is intended for testing purposes by as many users as possible, and as a synchronization point with library authors so that they can start upgrading in preparation for the final release. If no critical issue is found until the end of January 2020, this RC will become the final release.
Scala.js contributors (@scala_js)

VARIA

Scala Times banners?

Want one? Click here
THE INTERNET
Scala Times stickers?

Want one? Let us know or tweet @scalatimes.
THE INTERNET
Scala experts?

Need some? SoftwareMill is here, ready to talk and dive deep into your code. .
SoftwareMill





  1. Scala Times Issue #303

    Write your own micro BDD test framework in one day. Monoid in the Category of Endofunctors. Introducing Scala Server Toolkit. How to write a command-line application with ZIO. Picking a Languages for Introductory CS  - The Argument Against Python.


  2. Scala Times Issue #302

    Regexp Replacement via Function in Java/Scala. Rationality in a Natural World: Arithmetic at the Type-Level. Transforming Data with Embedded Spark. Migrate a service getting 200KQPS from Jackson to Circe. Scala Type Classes comparison.


  3. Scala Times Issue #301

    Functors  - From Category Theory into Cats. Tour of Akka Typed: Cluster Sharding. The Future.await(s) for no one. Service architecture in Scala. Streaming the last few minutes from Kafka using Akka Streams.


  4. Scala Times Issue #300

    How an Optimizing Compiler Works. TMWL October’19  - Scala Steward, DB index and a React hack. Working with HTTP in Polynote. How I learned to stop worrying and love FP in Scala. A real life example of isomorphisms in Scala: POST request.


  5. Scala Times Issue #299

    Kleisli Category - From theory to Cats. Presto with Doobie. Lambda World 2019. Speeding up time with Zio TestClock. Simulating IoT Events - with Zio Streams.


  6. Scala Times Issue #298

    Scala application lifecycle, from pure Scala to FS2. Top 5 things that slow down your Scala build - Triplequote. ZIO, Http4s, Auth, Codecs and zio-test. Magnolia typeclass generation for Avro. Bird Operator in Scala.


  7. Scala Times Issue #297

    Websockets in Scala using sttp. Vim with Dotty (using coc vim). Sizeof in Scala. Scala Classes - Syntax, Declaration, Use case, Examples. How to structure your Scala application?.


  8. Scala Times Issue #296

    Travis Continuous deployment for your open source library. Publish open source project to Maven with Sonatype. My Way to Scala - part 1. Scala Tuples - Syntax, Declaration, Use case, Examples. Better management of transitive dependencies and conflicts.


  9. Scala Times Issue #295

    Tour of Akka Typed: Event Sourcing. Optional Is the New Mandatory. Visitors - a tale of generalization. Working with Databases using Scala and Quill. Proving Primality with GADTs.


  10. Scala Times Issue #294

    Scraping Websites using Scala and Jsoup. A quiet, attractive new programming language. Domain-driven event sourcing with Akka Typed. Crushing Design Patterns! - Chain of responsibility (Scala). Crushing Design Patterns! - Unnecessary Patterns.


  11. Scala Times Issue #293

    Painlessly passing message context through Akka Streams. Simple Web and Api Servers with Scala. From @Transactional to type-safe, reasonable transactions. 3 Layer Scala Cake. Illustrated guide to Types, Sets and Values.


  12. Scala Times Issue #292

    Human-readable case class diffs. Cats 2.0 migration guide. Top 10 Scala Libraries For Data Science. Kenji Yoshida receives community award. Kelley Robinson receives community award.


  13. Scala Times Issue #291

    Squeezing extra productivity out of Ammonite Scala REPL. Akka family build infrastructure. Learning Akka Typed from Classic. On Eliminating Error in Distributed Software Systems. Error Handling in Functional Applications - from Monad Transformers to ZIO.


  14. Scala Times Issue #290

    Easy Parallel Programming with Scala Futures. Permutive Community Engineering, August 2019. Key things I picked up while working with Scala. Typing the technical interview in Scala. Why Try? - Scala Error Handling.


  15. Scala Times Issue #289

    Dotty (Scala 3) adoption report: easy so far. Scraping and Storing Crypto-currency Prices with Scala and PostgreSQL. Scala Almost Succeeded. Allow significant indentation syntax. Jailbreak Oozie Spark action.


  16. Scala Times Issue #288

    Bootzooka 2019: functional Scala and React. The Science of Functional Programming book. Scala's isInstanceOf is an Anti-Pattern. A Scala “functional programming style” To-Do List application written with Cats. Minutes of the 13th meeting of the Scala Center, Q2 2019.


  17. Scala Times Issue #287

    When do you need Akka Cluster?. Hangman in FP Scala. Make your Google Spreadsheets Scala-ble. Understanding Monoids using real life examples. Scala in the City, London, Simply Business, August 28th.


  18. Scala Times Issue #286

    Tic-tac-toe in FP Scala. How to create Build Pipelines in Scala. Tour of Akka Typed: Message Adapters, Ask Pattern and Actor Discovery. Promise for better Future. Streaming data with Apache Kafka and Akka Streams.


  19. Scala Times Issue #285

    Monad Transformers and Cats MTL. Ratelimiter4s : A functional rate limiting library. A way out of the Jar Hell. Wrapping impure code with ZIO. XXE Attacks in Scala and Play Framework.


  20. Scala Times Issue #284

    Cross-compiling In Scala. IntelliJ Scala Plugin 2019.2. Introducing Scala Cypher DSL. Tame your config. A rate-limiter in 15 lines of code with cats-effect.


  21. Scala Times Issue #283

    Python vs. Scala: a comparison of the basic commands. Keep your projects up-to-date with Scala Steward. My favorite new features of Scala 2.13 standard library. Implementing a server for the Language Server Protocol. Homegrown Scala Collections: Testing Streams.


  22. Scala Times Issue #282

    Read Pure functional HTTP APIs in Scala | Leanpub. Combining ZIO and Akka to enable distributed FP in Scala. Rethinking Streaming Workloads with Akka Streams: Part II. ES/CQRS the Akka way - Krunoslav Uzelac - Medium. Tour of Akka Typed: Protocols and Behaviors.


  23. Scala Times Issue #281

    Abstracting Over Effect Types. Reusable pre-commit hooks in Scala projects. Functional Highlighting for Functional Programming. Top Link of June: The Evolution of a Scala Programmer. Lambda World, Cádiz, Spain, October 17th - 18th.


  24. Scala Times Issue #280

    Comonads for Life. TypeSafe journey using Scala. Scala programming language wins SIGPLAN award. Shapeless' HLists and how to traverse them. How to work with JSON in Scala.


  25. Scala Times Issue #279

    Thread shifting in cats-effect and ZIO. How to work with HTTP JSON APIs in Scala. ZIO with http4s and doobie. Optimizing CI build times for Scala projects. The False Hope of Tagless-Final in Scala.


Organizing an event?
Promote it with
Scala Times.
The Scala Times reader?
Get a banner!
Got a tip? Send it in!
Follow us on Twitter.
Curated by SoftwareMill.
We are hiring.
And taking on projects.