Scala On Cloud
Saturday, July 24, 2021
New in Mongoose 5.10: Optimistic Concurrency - Safe Save Conflict
›
Optimistic concurrency is a better way to handle save conflict compare to the article I wrote previously. https://scalaoncloud.blogspot.com/...
Thursday, April 22, 2021
Create Node.js & Express.js with Typescript Project
›
Here are the steps to create Node.js & Express.js with Typescript Project. Create a folder. Type command "npm init" to create ...
Friday, April 16, 2021
Typescript: Shorthand Initialization
›
In a lot of use cases, the fields are initialized in the constructor. class Person { // Fields declaration name : string ; ...
Typescript: Singleton
›
Singleton is a design pattern that ensures that only one objects exits. /** * The Singleton class defines the `getInstance` method that le...
ES2019 Added Class Private Access Modifier
›
ES2016 had introduced class without the access modified. Refer to my below article. https://scalaoncloud.blogspot.com/2016/12/javascript-ev...
Wednesday, April 7, 2021
Why does Prettier not format code in VS Code?
›
I was trying to set up Prettier in my VS Code and not sure why it does not format code. After googling I found the fix. 1. Goto "VS Cod...
Sunday, April 4, 2021
Flatten array in MongoDb ($unwind) vs HCL Notes (View)
›
Let's say you have an array dataset: [{ "name": "Simon", "hobbies": ["badminton", ...
‹
›
Home
View web version