-
Quick refresher on JavaScript's objects, prototypes and inheritance
Here is how we commonly code JavaScript’s objects, prototypes and inheritance. You can copy the JavaScript code below and quickly run it on any online JavaScript compiler/runner app on the Internet. I use JS Bin. // If we don't need to create/instantiate objects, then an object literal will do console.log("*****Object Literal*****"); var Emp... Read More
-
TypeScript Notes: Part 2
Part 2 is all about classes, interfaces, abstract classes, and inheritance in TypeScript. It’s similar to OOP in C#. So easy to grasp and use that one might totally forget how OOP in JavaScript works. Same as in TypeScript Notes: Part 1, I will present the TypeScript code and the generated JavaScript code. The generated JavaScript code migh... Read More
-
SQL Tricks: CSV To Table Rows And Vice Versa
I was looking for a one-line SQL statement to convert a comma-separated value list string to table rows and vice-versa and below is what I found. I prefer not to put logic in my SQL code (I prefer to limit it with just the simple CRUD statements) but if no other choice then these two SQL tricks will come in handy. You can try to execute this ... Read More
-
TypeScript Notes: Part 1
I decided to post a series of notes on TypeScript and this is Part 1. I think understanding what TypeScript does makes you a better JavaScript programmer as you will come to know the issues inherent in JavaScript. The format I will be using is to present the TypeScript code and explain it along the way in the comments itself and then present ... Read More
-
SQL Server: Hiding your prod data and built-in function STUFF()
If you need to use production data for your testing and don’t want to expose any sensitive data on your development environment, you should look at obfuscating them. This article shows the common obfuscation methods in use: character scrambling, repeating character masking, numeric variance, nulling, artificial data generation, truncating, en... Read More