Tag: functional programming

  • Input validation with Folktale

    In this post I’ll show a way to do input validation in JavaScript using Folktale which is a library for functional programming. The beauty of this approach is having validation rules (is required, is email, is confirmed, etc) specified as a callbacks so they can be reused across different forms and also the absence of…

  • Kotlin is so cool and easy to learn

    Kotlin is so cool and easy to learn

    I enjoy developing Android applications. When I’ve read couple of months ago Kotlin has been added as a official language to Android Studio I finally decided to learn it. Up to that point I had been hearing only good things about Kotlin. I don’t know when I first heard of Kotlin but probably year and…

  • Maybe

    In functional programming, Maybe is a wrapper around a value which deals with null or undefined values for you. That means if you get that kind of value as a result of some computation, all other chained operations that follow, evaluate to that value. It turns if/else where you check for value’s nullness or undefined…

  • Using Ramda’s evolve in Redux reducers to create new state

    Ramda is a JavaScript utility library similar to lodash or underscore ((I haven’t used underscore in ages though)) with an extra touch – it’s designed to be better suited to functional style of programming. For example it provides automatic currying ((Remodeling function in a way that instead of accepting multiple arguments at once it accepts…