Tag: ramda

  • The best way of rendering a collection of items in React/Redux

    In short The best way to render a collection in React, backed by Redux or other similar library: store a collection as an object where key is item id and value is item itself. That way when rendering collection, pass only item’s id to the item component. Than in item’s connected component query a collection…

  • I’ve built my first Angular2 app!

    I developed my first Angular2 app! That is quite an achievement since initially, I was against Angular2 mainly because it didn’t look like JavaScript (it’s framework, it uses TypeScript, its weird template syntax). I still do not prefer it, but I said to myself that a knowledge of a new technology will make me cooler…

  • 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…

  • Functional programming

    2016 was the year my understanding and appreciation for functional programming grew big time. Functional programming (FP for short) is a programming model old as programming but its popularity gained traction only a couple of years ago. According to Wikipedia, it’s “a style of building the structure and elements of computer programs—that treats computation as…