Knolx Session: Category Theory In Scala


This session was presented at Knoldus knowledge session. There is a wonderful post on Category Theory by Debashish Ghosh. This presentation is inspired by his post here.

Here is the presentation.

This entry was posted in Scala and tagged , . Bookmark the permalink.

3 Responses to Knolx Session: Category Theory In Scala

  1. Howard says:

    I think I need to see scala and java examples side by side to fully understand this.
    f:A => B to me is the same as “public B f(A) { … }” and I don’t get why that needs a name.
    I don’t understand what I can do with the scala version that I can’t already do with the java version. It seems like really smart people are inventing really clever constructs that do nothing new except make those really smart people look even smarter. (It reminds me of the tendency for lawyer’s to craft laws with wording that only they can understand so you need to spend $400/hr to get simple things done). On the one hand we say KISS and other we say if can’t learn scala then you’re probably not a very good developer.

    • Meetu Maltiar says:

      Howard, thanks for reading the post. The idea is to get a basic idea of Category Theory and am sure that you will find many links on java as well.
      Remember that Scala is different than java in many ways. It is also a functional language in the sense that Functions are first class citizens and can have separate existence out of an object. That means you can toss them around like objects in Java. You will appreciate the difference between f:A => B and “public B f(A) { … }” then.

      I want to steer away from the debate of Scala is tough and too complex to develop and maintain. That was probably the discussion an year back for us. My take on this is that unless we try this for some time ourselves we cannot come to appreciate it. We chose Scala for couple of products and want to tell you that its great! Maybe if you haven’t tried give one chance to it 🙂

      Yes I also believe in keeping things simple and we often discuss to differentiate between “Simple and Easy” and take steps to choose former than the latter.

  2. Sybil says:

    excellent points altogether, you just won a brand
    new reader. What may you suggest in regards to your submit that you made a few days ago?
    Any sure?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s