SPSai Phani Krishna Pasumarthiinsaiphani.hashnode.dev·Sep 19, 2021 · 2 min readHow to delete/hide properties of Mongoose object - Node.jsWhen I was working on the user signup module for one of my side projects after successful user signup, the response expected was the user object. It is obvious that I shouldn't send back the password in the response, irrespective of whether it is sto...00
SPSai Phani Krishna Pasumarthiinsaiphani.hashnode.dev·Dec 19, 2020 · 2 min readCollection Framework Cheat SheetCollection Classes Duplicates Accepted? Insertion Order maintained? Sorted Order? Is Thread Safe? List ArrayList Yes Yes No No LinkeList Yes Yes No No Vector Yes ...00
SPSai Phani Krishna Pasumarthiinsaiphani.hashnode.dev·Dec 19, 2020 · 3 min readOptimizing DOM MutationsDo you do DOM mutations? In the right way? Let's discuss different approaches and the right way to do DOM mutations in JS. First of all, let's discuss a term called DocumentFragment. The DocumentFragment interface represents a minimal document objec...00
SPSai Phani Krishna Pasumarthiinsaiphani.hashnode.dev·Dec 17, 2020 · 4 min readDifference between x++ and x+1Have you ever wondered what the heck is the difference between x++ and x=x+1? When x++ is used, the compiler increases the value of x by 1 and In the case of x=x+1, it again increases the value of x by 1. What to wonder?🤷🏼♂️ Let's see an example ...00