ATAditya Tiwariinadityatiwarii25.hashnode.dev·Mar 31 · 3 min readHow databases handle connections and fault toleranceOne thing I found interesting while digging into databases is how differently they handle client connections. Let’s start with Postgres, because it does something very old-school but very solid. Postg00
ATAditya Tiwariinadityatiwarii25.hashnode.dev·Mar 22 · 3 min readBuilding a BitTorrent Client from Scratch to Understand the ProtocolI wanted to understand how BitTorrent actually works, so I decided to build a minimal client from scratch. The goal was not to build something production ready, but to understand the protocol step by 00
ATAditya Tiwariinadityatiwarii25.hashnode.dev·Dec 31, 2025 · 2 min readObjects That Answer One Question WellThere is a simple test for object design that beats a thousand buzzwords. Try to describe what your object does in one sentence. If you need the word “and”, congratulations, your object is doing too much. The problem Let us meet a very responsible o...00
ATAditya Tiwariinadityatiwarii25.hashnode.dev·Dec 31, 2025 · 2 min readThe Template Pattern in RubyThe problem You start with something simple. You need to generate reports. class DailyReport def generate fetch_data format_data send_report end def fetch_data puts "Fetching daily data" end def format_data puts "Forma...00
ATAditya Tiwariinadityatiwarii25.hashnode.dev·Dec 31, 2025 · 2 min readDuck Typing in RubyThe problem Imagine you are writing code that sends notifications. At first, everything looks simple. class EmailNotification def send "Sending email" end end def notify(notification) notification.send end Life is good. Then one day, Slac...00