Make your program spicy - Currying and Partial Function Application (PFA)
In this session, we will look Currying and Partial Function Application (PFA) in Functional Programming. Languages like Clojure don't have currying, but PFA, where has Haskell currying and not PFA, whereas Scala has both, Groovy wants you to call methods like curry() and rcurry(). In OO paradigm, we use DI (dependency Injection) and we will see how this is automatically subsumed using Currying and PFA.
Outline/Structure of the Demonstration
- Overview of the concept
- A practical DI example
- All live coding in different languages
- Q & A (last 5-10 mins)
Learning Outcome
Understand the concept so that they are able to look for scenarios where this can be applied in their day-to-day work.
Target Audience
Developers interested in learning and applying this concept
Links
- https://confengine.com/functional-conf-2017/proposal/4066/code-jugalbandi
- https://confengine.com/functional-conf-2015/proposal/1459/drying-to-monads-in-java8
schedule Submitted 2 years ago
People who liked this proposal, also liked:
-
keyboard_arrow_down
Ravindra Jaju - Asynchronous Functional Programming on the JVM
45 Mins
Demonstration
Beginner
We'll take a close look at core.async - the CSP library for Clojure(script).
- The motivation
- Problems suitable for CSPs to handle
- Syntax
- Patterns
Given the minimalist nature of Lisps, the syntax is underwhelming, but applications can be exciting in the manner they make complex problems within reach.