ABAbhishek Batrainabhishek-codes.hashnode.dev·Jun 27 · 3 min readWhy Non-Static Methods Break When Passed as Callbacks in JavaScriptI recently ran into a bug while building a backend project. I passed a class method as a callback, and suddenly this became undefined. At first, I thought JavaScript was behaving strangely. But after 00
ABAbhishek Batrainabhishek-codes.hashnode.dev·Jun 26 · 4 min readI Stopped Using Redis Pub/Sub for Submission Notifications in My LeetCode CloneWhile building my LeetCode clone, I came across an interesting design choice. Most people recommend using Redis Pub/Sub for real-time notifications: Judge Worker | v Redis Pub/Sub | v 00
ABAbhishek Batrainabhishek-codes.hashnode.dev·Nov 22, 2025 · 2 min readMany Beginners Get This Wrong: Date.now vs Date.now() in MongooseWhen creating a Mongoose model, many beginners use Date.now() by mistake.It looks correct, but it actually gives the wrong timestamp for your documents. Here is the simple explanation. The Main Difference Date.now You are giving Mongoose a function....00