lib: koa-router-ajv-swaggergen (woah such a big name)

Koa is a webframework very similar to expressjs. Its not a complete webframework rather a middleware framework as it allows writing middlewares easily in async way. Now that means you need a lot of plumbing to make it useful. But either way you…


Photo by Nathan Wolfe on Unsplash

Snowpack is a tool to convert non module code into module format. It also has little dev server which serves the es6 modules (aka esm, es modules) that can be consumed by browser using import X from Ystatements.

The other reason to write this article is to delve deep into…


Boolean expression parser as we built in the previous post is used to create a domain specific language DSL. In this post we will see how to evaluate such DSL. Here we modified the language slightly to make it fit for building a promotion engine. Under the hood, we are…


Building compiler is a fun, you can start writing a DSL (domain specific language) following this article. Our choice is PEG grammar for this article.

This is a two part series. This is part 1, where we will learn to create a boolean expression parser which will read the expression and convert into a abstract syntax tree. The second part is using that syntax tree and evaluate on a context object. …


Building a linux capable circuit board at home from designing to soldering to installing Arch Linux — Its not hard! Its costs less than 2000 Rs. (~$28). Sounds fun!

Why it is not hard?
I am a professional software developer. But this skill was not used.
I have done bachelors in electronics. But they never taught any of these in school.
Skills you will need — good eyes, steady hand in soldering, some youtube videos, some links to contents, and patience patience…


Update: From React 17+ JSX transformation will no longer create React.createElement() instead it will be _jsx()!

If JSX becomes a standard of EcmaScript ES-XXXX, we will have an amazing tool at our disposal. …


What if you want to write some React component that can be a chart that can be plugged into a remote react application. The remote application does not need to pull your source code and rebuild again in order to use your code.

What ever I described above can be…


TL:DR; We will build redux in about 60 lines of code and make it work with redux devtools. Take me straight to code: https://stackblitz.com/edit/react-ts-redux

Before we begin let us take a step back and think what is redux?

It’s a store of data, you can update the store with some events and you can subscribe to stored data change events. Ofcourse you should not think of it as a pub-sub mechanism backed by a…

samarjit.samanta

Developer in UI, reactjs, angularjs, backend nodejs, java, springboot. Tinkerer of electronics. Loves to do everything hands on.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store