Skip to content
0:00 / 0:00

#scala#typelevel#cats

No Need for NIH: Leveraging the Typelevel Stack in the Enterprise - Adam Rosien

ScalaCon

1.7K subscribers • 4 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Adam Rosien
  • An opinion. It argues one side of a question engineers disagree on.

Intermediate. Assumes working knowledge.

1.2K views4 years ago1 recommendation

Programming languagesSoftware designSoftware architectureDesign patternsFunctional programming

Adam Rosien discusses how to solve common enterprise software challenges using the composable Typelevel library ecosystem instead of custom frameworks.

This talk was given at ScalaCon on May 20th, 2021. No Need for NIH: Leveraging the Typelevel Stack in the Enterprise There’s a joke that a framework is a product with the business logic removed, but all the assumptions left in. In this talk we’ll explore an alternative: solving the most common enterprise issues with the composable ecosystem of Typelevel libraries, avoiding not-invented-here (NIH) and lock-in. We’ve been involved in many enterprise projects, and have seen many recurring patterns implemented in an ad-hoc, fragile way. At the same time, and more often than not, any custom libraries rapidly develop “bit-rot”, creating a maintenance burden. Instead we can be brave! We can avoid the sunk-cost fallacy by refactoring and retooling using powerful and composable abstractions. We can also trust we are reducing our risk because of the high quality of these open source projects. We’ll dive deep into how to use the Typelevel stack to handle common tasks like data validation, integration with data sources and sinks, the modeling of actions associated with state machines, and more. We’ll be using libraries like cats, cats-effect, refined, and more, to fix and extend existing systems to be more powerful, safer, and ultimately more maintainable. Speakers: Adam Rosien - Inner Product, LLC ___ ScalaCon is organized in partnership by 47 Degrees, Skills Matter, Scala Center, and Lightbend.

Why it's here

1 person recommends this

What people say. Recommended as an excellent overview of the Typelevel ecosystem and its practical benefits for enterprise applications.

u/DisruptiveHarbingerin r/scala • Recommends

On “Resources for learning about http4s and Typelevel ecosystem?”

Resources about low-level components (Cats and Cats Effect) definitely help but you should also try to understand the bigger picture, and I found Adam Rosien's talks pretty good, especially this one. He wrote a book Essential Effects too. Then there's Gabriel Volpe's book Practical FP in Scala which covers exactly how to use http4s and the rest of the Typelevel/FP ecosystem to build a full-blown HTTP application. Finally I would strongly recommend having a look at Tapir. Even if you don't need to share endpoints or generate OpenAPI documentation, it provides a really neat abstraction on top of http4s.