21. August 2018

Creating a Scala REPL

The best way to learn a new language is to create a simple file for that programming language and keep running it in watch mode. I personally use watch and VSCode when I want to quickly prototype something. watch helps me run that code continuously as I type and provides me with instant feedback on the terminal. I have found this technique really helpful in the past specially while learning something new.


02. August 2018

Writing a maintainable webpack config

Over a period of time webpack configs usually become really large and hard to maintain. In one of my cases webpack.config.js had become more than 1000 lines! In this blog I am going to talk about how to write composable webpack configs that are easy to read and maintainable.

I will be using a lot of ramda and if you are unfamiliar with its syntax I would recommend you to go thru this post by Randy Coulman on getting started with it.


16. January 2016

structuring react components

Rather than making one huge component do everything, have smaller more specialized ones that perform one thing at a time.


14. December 2015

node.js concurrency evaluation

I have been using node.js for a decent amount of time now and I had this hypothesis which I needed to validate 

For a node.js server running on multi core system, if I flood the server with n concurrent requests, to compute something expensive, it would handle the traffic better if the computation can be chunked in such a way that the server can compute those n computations, concurrently.


26. April 2015

Chaining async tasks

Method chaining is a pretty common pattern in object oriented programming. JQuery does an amazing job at it but its all about sychronous tasks. Then there are promises, they have the then method which helps in chaining async requests but its not customizable and also quite verbose. So I created my own project ~ Chaining Tatum (No pun intended with the versatile actor Channing Tatum, big fan!)