Flow-type
React, ReactJS

Flow: $FlowFixMe command should be $FlowFixYourself. FlowType is dying! 🧐🤔😱

First, let’s talk about what is Flow or FlowType…

From their official site –

FLOW IS A STATIC TYPE CHECKER FOR JAVASCRIPT.

From ReactJS’s site-

Flow is a static type checker for your JavaScript code. It is developed at Facebook and is often used with React. It lets you annotate the variables, functions, and React components with a special type syntax, and catch mistakes early.

Continue reading
Standard
C# and TypeScript
C#, TypeScript

TypeScript and C# both were created by the same person named Anders Hejlsberg 👏 💪 🔥(with video)

I went to one TypeScript meetup recently and talked to a few developers there.

Surprisingly, a lot of people don’t know that both languages were designed by the same person.

Yes, his name is Anders Hejlsberg
https://en.wikipedia.org/wiki/Anders_Hejlsberg

Continue reading
Standard
NPM
NodeJS

How to Publish your awesome package to NPM 👏

For JavaScript developers, npmjs.com is a treasure!

You can find more than 1 Million packages there. ( Yeah, I agree all of them are not useful 😉 )

We can install/download Packages like react, express, lodash etc into our projects very easily from the npmjs package repository with just one command.
Such as –

npm i react

Many a time, we want to reuse our code to different artifacts. And it’s a very good practice in Software Engineering.

Continue reading
Standard
React, testing

Jest Snapshot Testing for React Components is useless? Is it slowly dying? 🧐🤔😐

All the React developers will agree, mostly everyone has used Jest at least once in their dev life.
Yes, It’s true for me too. 👋

ReactJS team also suggested people use Jest to test their app. Which is fair as Jest was also created by Facebook. 👏

Jest is cool. But later they came up with something called Jest Snapshot testing. And as usual, they also suggested developers use it to test their React components.👏👏

First, let’s see what’s Snapshot testing with Jest-

Continue reading
Standard