paint-brush
Composable Resource Management in Scalaby@bszwej
761 reads
761 reads

Composable Resource Management in Scala

by Bartlomiej Szwej15mApril 28th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

This article is dedicated to beginner and intermediate level Scala programmers. The idea is to encapsulate resource management inside a function and delegate its usage to a closure (handle) In other words, to loan the resource to the handler. We’ll start with the most basic ones and iteratively improve to achieve a fully compositional and safe way of dealing with them. We can use the so-called Loaner pattern to better manage resources in purely functional programs with Cats Effect 2xx.

Company Mentioned

Mention Thumbnail
featured image - Composable Resource Management in Scala
Bartlomiej Szwej HackerNoon profile picture
Bartlomiej Szwej

Bartlomiej Szwej

@bszwej

Software Engineer @MOIAmobility. Scala and Functional Programming enthusiast.

About @bszwej
LEARN MORE ABOUT @BSZWEJ'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Bartlomiej Szwej HackerNoon profile picture
Bartlomiej Szwej@bszwej
Software Engineer @MOIAmobility. Scala and Functional Programming enthusiast.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite