0:00 / 0:00
#taglessfinal#cats#cats-effect
Tagless Final in Scala
Rock the JVM
27K subscribers • 62 videos on Hallway
- Recommended by 1 person: 1 in engineering communities.
Intermediate. Assumes working knowledge.
12K views4 years ago1 recommendation
Programming languagesSoftware designScalaFunctional programmingDesign patterns
An explanation of the Tagless Final design pattern in Scala, how it solves modularity problems, and its relation to higher-kinded types.
Written form: blog.rockthejvm.com/tagless-final/ In this video, we'll demonstrate Tagless Final, one of the design patterns in Scala (and other FP languages like Haskell) that have generated the most confusion among programmers. We'll discuss what tagless final is, what kind of problem it solves and how it relates to the infamous F[_] style in Scala. We'll also show how tagless final helps us write more modular code. The tagless-final approach is popularized by the Cats and Cats Effect libraries in the Typelevel ecosystem. We teach both at Rock the JVM: Cats: rockthejvm.com/p/cats Cats Effect: rockthejvm.com/p/cats-effect Follow Rock the JVM on: LinkedIn: linkedin.com/company/rockthejvm Twitter: twitter.com/rockthejvm Blog: rockthejvm.com/blog ------------------------------------------------------------------------- Home: rockthejvm.com -------------------------------------------------------------------------Why it's here
1 person recommends thisWhat people say. Recommended as a clear and comprehensive tutorial on the Tagless Final pattern in Scala.
u/BalmungSanin r/scala • Mentions
On “Ramp time on scala stack”
…hat will get you familiar with the idea of managing programs as values. You may also do the same with **fs2**.
3. Check the talks: Introduction to cats effect by Gavin & Streams your new favorite primitive by Ryan.
4. If the code base your team will end up working with doesn't use concrete `IO` but rather has `F_` all over the place, check this: link to this video
That should be enough to get you started. If in any part of the process you have questions / problems feel free to ask in the mentioned **discord** servers.
Finally, other resources that may be useful:
+ The book: Scala with Cats, to get familiar with the **cats** library.
+ The book: Practical functional programming in Scala by Gabriel,…
u/danielciocirlanin r/scala • Mentions
On “Can you give me a brief understanding on tagless final?”
I made a video and article that takes < 30 mins of your time and explains TF from the problem it wants to solve down to what we see often in Scala:
video:
[video
written form:
https://blog.rockthejvm.com/tagless-final/