Posts
JavaScript Prototype Easy Explaination
JavaScript prototype is an interesting feature which I read about many times, but I forget that easily, because of so many similar terms and concepts. This post aims to be an easy explanation for Prototype feature
Why Prototype? For using inheritance
What is it? It’s a hidden property (denoted by [[Prototype]]) in every object. When a property (not present in an object) is accessed, JS tries to find it in that object’s Prototype.
Posts
A not so popular class pattern - TypeScript
TypeScript is a flexible language. Using it you can write code doing the same thing in multiple ways. This can be considered as both disadvantage and advantage of the language.
Disadvantage being, people need to know so many things to understand variety of codebases.
I consider this as a good thing, as it offers developers so many ways to express what code is doing. Developers can use that to make code more readable according to different situations.
Posts
Clean Code Book Summary
The book Clean Code by Robert C Martin, changed the way I think about and write code.
Why Clean Code? Have a look at the image below which is from the book
I love this image. It clearly shows the frustration of developers reading bad code.
Clean code leads to code which other developers can understand quickly. Developers can easily change code without breaking any existing features.
A code which takes more time to make changes and is difficult to understand will decrease the team productivity
Posts
Top 10 Tools I found productive when working with TypeScript
There are lots of software tools freely available to use. Some of them highly impacts the way we work, and they can let us do more in less time
If you are someone working with TypeScript/JavaScript, checkout the following productivity tools if they work for you
1. Volta Are you telling your team to install a particular version of Node.js for a project? Or working with multiple projects requiring different Node.
Posts
Stencil for React Devs
What is Stencil? Stencil is one of the best tools out there to build web components. The following is from Stencil’s official website Stencil is a compiler that generates Web Components (more specifically, Custom Elements). Stencil combines the best concepts of the most popular frameworks into a simple build-time tool.
Comparison With React There are many things common in Stencil and React
JSX/TSX templates Stencil also uses JSX templates with few differences compared to React