TypeScript's Literal Types Are Better Than Enums

Combining the descriptive qualities of enumerated types and the easy-to-use nature of strings. During a code review, something that sticks out when the code is full of ad-hoc string checking. For example, implementing a blog engine with three types of roles can start with a check if the user is…

Misconceptions of Angular Change Detection

When an Angular application's performance decreases, I go through a simple and easy checklist of my own. Checking loose subscriptions, trackBy functions of in-template iterations, and change detection among others. Especially the latter had been mentioned in all the articles, webinars, and conferences, but since they usually don't dive deep,…

Create Cloud Functions in Firebase

Authorization, CRUD, queries, most of the things come out of the box with Firestore. However, sometimes there is a need to make some modifications which would be too sensitive to do in the browser.…