akshatjme.hashnode.devStrategies to Scale Database WritesIn the previous article, we saw how to scale reads by reducing the amount of work the database has to do for every query. Writes have a different problem. A write is not just “store this data”.A write often means: Update indexes Maintain order Enfor...3h ago·3 min read
akshatjme.hashnode.devC++ Tricks to Turn You Into a Code NinjaC++ is powerful, but mastering it takes more than just knowing syntax. Here’s a collection of practical tricks and tips to help you code smarter, faster, and like a true C++ ninja. 1. String Tricks 📝 C++ strings are more than just std::string. You ...3h ago·3 min read
akshatjme.hashnode.devWhy Binary Search Is Preferred Over Ternary Search Despite log₃(n)Algorithms rarely fail because they are incorrect.They fail because assumptions that look valid mathematically do not survive contact with real machines. Ternary search is a classic example. Yet binary search remains the default — in standard librari...3h ago·4 min read
akshatjme.hashnode.devA Deep Dive into NTFS, EXT4, and APFSHow File Systems Shape Performance, Reliability, and Everyday Computing Most people interact with file systems every day without ever thinking about them. You save a file. You delete a folder. You copy data to a drive. And it just works. But undernea...3h ago·6 min read
akshatjme.hashnode.devStrategies to Handle Both Reads and Writes at ScaleIn the previous two articles, we saw something important: To scale reads, we reduce the work the database does per query. [LINK] To scale writes, we reduce the work the database does per insert. [LINK] But what happens when a system has both heavy ...3h ago·7 min read