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…May 12, 2022May 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.Jun 30, 2021Jun 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…Nov 2, 2020Nov 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.Oct 31, 20201Oct 31, 20201
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…Nov 29, 2019Nov 29, 2019