PinnedMichael TruongWhen to use embedded vs reference schema in Mongoose, and when to use single reference vs referenceJun 13, 2023Jun 13, 2023
PinnedMichael TruongWhen to use find() vs aggregate $lookup vs populate() in Mongoose and MongoDBHere are the performance results between the methods in the benchmark test:Jun 14, 20231Jun 14, 20231
Michael TruongHow to Rotate NxN Matrices in Python — Clean SolutionTo rotate a matrix by 90 degrees with O(1) space, you have to do 2 things:Aug 20, 2023Aug 20, 2023
Michael TruonginStackademicTest-Driven Development in Golang: Stubbing vs Mocking vs Not MockingThe choices between stubbing, mocking, and unmocked testing shape the path to clean, modular code.Aug 14, 20231Aug 14, 20231
Michael TruonginCloud Native DailyLearning from Legacy: Transforming Callback Hell in Node.js gRPCAs I was trying to learn about gRPC in Node.js and how it communicates with microservices, I realized…Aug 3, 2023Aug 3, 2023
Michael TruongWhy you shouldn’t use .index() in LeetCode, use .split() insteadLets take a look at the 2 string methods.Jul 17, 2023Jul 17, 2023