Keflux is a small javascript library I’ve been developing during the last few days. Its purpose is to allow to use event streams to build a Flux architecture in a front-end React app. It uses Kefir for all FRP-related code, and as part of the library name. It also embraces the use of immutable data structures, as an integral part of how it is designed, and how it works.
Ruby was designed to make programmers happy , and there are lots of little things in it that contribute to achieving this goal. What amazes me is that, even after using it for years, one can still find some of these little things here and there, that you did not know about. Today was one of those days for me.
Today I found a really odd situation while working on a Rails 4 project. I created a couple of data models having a many-to-many association with has_many :through in both directions. A bit of code will help clearing up things: