How important is this to understand in practice for a Scala programmer?
I'm the author of Scala.js, so supposedly a Scala "expert", and I still don't understand category theory. Does that answer the question?
Basic Category Theory for Scala Programmers
11–18 of 18 posts
Re: Basic Category Theory for Scala Programmers
#12How important is this to understand in practice for a Scala programmer?
Re: Basic Category Theory for Scala Programmers
#13Bartosz Milewski has a series of posts (a book, really) and recorded lectures that teach category theory with Haskell and C++ as reference points. HN discussion: https://news.ycombinator.com/item?id=14026360 .
I place category theory within the same realm as the lambda calculus. Understanding category theory will enrich your understanding of the underlying computer science concepts, particularly with respect to functional programming. However, it's far more in the realms of computer science than software engineering. Software engineers can benefit from a conceptual overview, which this blog post provides in excellent form.
Unless your work involves formal proofs, I can't see many software engineering use cases where a more in-depth exposition would carry significant utility.
Re: Basic Category Theory for Scala Programmers
#14Bartosz Milewski has a series of posts (a book, really) and recorded lectures that teach category theory with Haskell and C++ as reference points. HN discussion: https://news.ycombinator.com/item?id=14026360 .
Re: Basic Category Theory for Scala Programmers
#15How important is this to understand in practice for a Scala programmer?
Re: Basic Category Theory for Scala Programmers
#16Bartosz Milewski has a series of posts (a book, really) and recorded lectures that teach category theory with Haskell and C++ as reference points. HN discussion: https://news.ycombinator.com/item?id=14026360 .
We started a project to translate all Haskell sample code to scala in Bartosz's Category theory for programmers book https://github.com/typelevel/CT_from_Programmers.scala
Re: Basic Category Theory for Scala Programmers
#17Re: Basic Category Theory for Scala Programmers
#18Scala’s category theory faculties are so incredibly awkward without an outside library like Cats, I never thought I was writing “good code” in the functional style in Scala until I started using Monads et al via Cats/Scalaz. Don’t get me wrong, I could compose my function A then B then C, but now I’m passing around these awkward Function1 instances that are hard to reuse and honestly just look unstructured. It feels…