anujmiddhaReplace DOM elements in Phoenix LiveViewPhoenix LiveView is an amazing tool to build real-time applications with server rendered HTML. When the state changes, LiveView takes care…2 min read·May 12, 2022----
anujmiddhaSingle Table Inheritance in RailsMany a times we come across situations where we have slight variations in the logic for different use cases of essentially the same model.2 min read·Jun 30, 2021----
anujmiddhaMocking enumerables in RSpecRails puts some really powerful mocking libraries at our disposal. As long as your models are backed by ActiveRecord, ActiveRecord…2 min read·Nov 2, 2020----
anujmiddhaActive Record Callback SurprisesActive Record Callbacks can have some surprising behavior, and should be used with proper thought and care. Here we explore some of these.3 min read·Oct 31, 2020--1--1
anujmiddhaSharing modules across Android appsWhile most android apps are created with a single default app module, in the last few years people have started moving to a multi module…3 min read·Nov 29, 2019----