Refining the play scala actions
Play scala is a web architecture that lets a scala developer to write REST APIs quite easily. One sees a lot of tutorials and samples that implement the actions in somewhat this form
This is a series of blogs for interesting patterns or realizations that I will discover or stumble upon while learning functional programming. It is an attempt to explore the power of thinking functionally and applying those concepts to write concise and elegant solutions.
Play scala is a web architecture that lets a scala developer to write REST APIs quite easily. One sees a lot of tutorials and samples that implement the actions in somewhat this form
Lambdas in Java 8 is a nice feature and lets the developers write code in a concise and elegant way. It lets one think about the structure of a program functionally. I am writing series of posts that explore functional paradigms that one can apply while writing code in Java. This is first of those posts and I hope to end up writing a lot of them.
Scala is a interesting language as it lets developers write code in both functional and object-oriented paradigms. While I have been learning functional programming as well as scala, everyday, I come across features that lets me solve problems in a concise fashion which otherwise would have required a lot of boiler-plate code in a language like Java.
This is my first blog about programming and it is more of an effort to publish my thoughts and realisations which I can refer to, later on. It’s been more than a year since I started exploring functional programming. I have to admit that this has been an absolutely fantastic journey where I realised the effectiveness of compositions, higher order functions, the value immutability adds to the code maintenance, importance of writing pure code (no side-effects). While I have been learning scala and dabbled a bit in Haskell, I am trying to solve more and more algorithmic problems in a pure functional, side-effect free fashion.