A free, once-weekly Scala news flash. Easy to unsubscribe. Goes out every Thursday.
January 23rd, 2020, ISSUE 310

READING

Git hooks in Scala projects  - the easy way!

Introducing the scala-pre-commit-hooks repository with a set of hooks defined in the excellent pre-commit library.
Mikołaj Koziarkiewicz (@mikolak_net)
Testing Doobie programs

Testing with embedded database, testing pure business logic, or maybe using Tagless Final to abstract out your effect? All is possible with Doobie, learn how!
Adam Warski (@adamwarski)
Scala Cheatsheet

This cheatsheet aims to be a quick reference of Scala syntactic constructions.
Brendan T. O'Connor (@brendan642)
Implementing typeclasses in Scala I

It turns out that, unlike in Haskell, typeclasses are not built-in to the language; rather, they can be implemented using implicits.
Effective testing with ZIO Test

How can we test effects, mock services, and write property based tests with ZIO Test? What common issues we can have using ZIO Test for the first time? What are additional capabilities ZIO Test can provide?
Pavels Sisojevs (@scalamonster)
Akka Streams: error handling in event processing pipelines

How to leverage divertTo in order to achieve elegant error handling.
Bartłomiej Szwej (@bszwej)
Top Link of December: A Glossary of Functional Programming

A simple (but reasonably precise) pedagogical definitions for a range of functional concepts.
John A De Goes (@jdegoes)

PRESENTATIONS

Data Juggling - Part 1 - Getting Started with Chimney

In this video we are going to play around with Chimney - a Scala library for boilerplate-free data transformations. It uses macros behind the scenes and therefore reports all errors at compile time.
DevInsideYou (@DevInsideYou)

EVENTS

f(by), January 25th 2020, Conference on functional programming in Minsk, Belarus

Use the promocode "fbytoScalaTimes" to get 10% off.
F(by) Conference 2020 (@funcby)
Scala in the City, January 30th 2020, London

It’s the FIRST Scala in the City of 2020 and we’re off to the NEW ITV space. Our guest speaker Wiem Zine Elabidine @WiemZin will be giving us a look into ZIO In Real World.
Signify Technology (@Signify_Tech)
Scalar, March 19th-21st, 2020, Warsaw, Poland

Get ready for the workshop-driven FP event in Poland!
SoftwareMill (@scalarconf)
ScalaUA, April 3th-4th, 2020 Kyiv, Ukraine

CFP is on! Wholesale 10+ tickets are available till 2020.04.02.
ScalaUA (@ScalaUA_Conf)

RELEASES

ZIO Process

Purely functional command and process library based on ZIO.
zio-process contributors
fs2 2.2.1

This is the fourth release of the 2 series, featuring support for Cats 2 and Cats Effect 2. Also: support for TLS/DTLS to fs2.io, and many more!
fs2 contributors
Lithium

A split-brain resolver for Akka-Cluster.
SwissBorg (@swissborg)
jmh-demo

The repository contains a simple example benchmark configured with annotations (BasicBenchmark) plus three examples of pitfalls to avoid when writing your own benchmarks: loop optimization, dead code and constant folding.
Jacek Kunicki (@rucek)

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 #315

    ZIO for IntelliJ. Scala 2 community build reaches goals. Cats Effect Ref. Using Dotty Union types with Akka Typed – Part II. Caliban Client: a type-safe GraphQL Client for Scala and Scala.js.


  2. Scala Times Issue #314

    Using Dotty Union types with Akka Typed. My FP Journey. Creating a dead simple CountDownLatch with ZIO. ZIO STM: CountDownLatch in two lines. 2019 Scala Developer Survey.


  3. Scala Times Issue #313

    Building Serverless Scala Services with GraalVM. Alpakka Kafka 2.0 Released | @lightbend. Haskell for impatient Scala developer: Getting into speed. Building useful Scalacheck Generators. Easily create New Sync Types with ZIO STM.


  4. Scala Times Issue #312

    Happy eyeballs algorithm using ZIO. How (not) to use shapeless for cross-layer conversions in Scala. So you want to compose some functions. RESTful error handling with Akka HTTP and the library “endpoints”. MUnit is a new Scala testing library · MUnit.


  5. Scala Times Issue #311

    Introducing error reporting in optics. GraphQL in Scala with Caliban - Part 1. Tidying up your SBT file with Scala. Dependency injection with Reader Monad in Scala. Etcd watch API integration with scala and cats-effect.


  6. Scala Times Top Links of 2019

    January: Scala Best Practices. February: Is your Scala object always a singleton?. April: Did Functional Programming get it wrong?. May: The little gems of Scala standard library. June: The Evolution of a Scala Programmer.


  7. Scala Times Issue #310

    Git hooks in Scala projects  - the easy way!. Testing Doobie programs. Implementing typeclasses in Scala I. Effective testing with ZIO Test. Akka Streams: error handling in event processing pipelines.


  8. Scala Times Issue #309

    Towards more functional Play — Part 2. TMWL’ Dec 19 — Scala 3 overview, Scala hacks and DevOps hints. Scala etcd client with etcd4s and cats-effects. Boilerplate-free type class definition. GCP Cloud Functions with Scala.js in 10 lines(ish).


  9. Scala Times Issue #308

    Towards more functional Play  -  Part 1. ZIO environment meets constructor-based dependency injection. How-to run tests in parallel with sbt. Learn myself some Scala 3, episode 4: strict equality. 5 pitfalls to avoid when starting to work with ZIO.


  10. Scala Times Issue #307

    Standardizing IO Interfaces for Scala Libraries. WebSocket Streaming with Scala. State of Monocle. Scala tooling in 2019. How to Work with Scala Collections in Java.


  11. Scala Times Issue #306

    2019 Scala Developer Survey . Lessons Learned Building a Van Laarhoven Lens Library. A Glossary of Functional Programming. Tips for moving from tut to mdoc. Notes on Category Theory in Scala 3 (Dotty).


  12. Scala Times Issue #305

    Beyond Liskov: Type Safe Equality in Scala. Scala 2 Roadmap Update: the Road to Scala 3. Explicit nulls are in!. Functional Scala London 2019: Day 1. Leveraging Monoids for More Powerful Summarization.


  13. Scala Times Issue #304

    Akka references serialization with Protobufs (up to Akka 2.5). TMWL November’19 — ScalaTest, Medusa, PW-Sat2 cubesat. Implement your future with ZIO. Decouple the Program from its Implementation with ZIO modules. ZIO environment and modules pattern: zio, scala.js, react, query management.


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


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


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


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


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


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


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


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


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


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


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


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


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.