Amitav Roy

Blog on web and travel

5 Reasons why you should use Tailwind and what's new with version 2.0

Posted on 23 Nov 2020 by Amitav Roy

The big release is here, Tailwind 2.0 is out. You must have already heard about it and that's how you must have landed on this article. But, if you have not then also you are at the right place. I am going to tell you a few very important points about why you should use this CSS framework.

Why use TypeScript during JavaScript development and it's advantages

Posted on 12 Nov 2020 by Amitav Roy

Recently, I have been doing a lot of TypeScript based JavaScript development in React and Node JS as well. For more than 10 years, I have worked with PHP and it’s eco system along with JavaScript. So, I worked with dynamically typed languages a lot. However, I used to read about what statically typed languages are and about their merits. So I slowly started to do a little bit of static type like code in PHP.

Next JS and the new Image component

Posted on 1 Nov 2020 by Amitav Roy

The image tag has been with us since the beginning of HTML. I am sure, stats can prove that it is one of the most used tag cross web. There is a famous saying that “A picture is worth a thousand word”. And the world wide web is full of images. However, not much was done to the image tag from what it was 10 years back right? According to Next JS, 50% of total bytes on the web is taken by Images only.

Adonis JS - In search of a good Node framework

Posted on 23 Oct 2020 by Amitav Roy

Coming from a PHP and Laravel background, I have a lot of expectations from the framework that I will be using for any project. By working for almost a decade in PHP and with Laravel for the last 4 to 5 years I got use to a lot of niceties available with this framework. And, I think apart from the framework, the huge collection of packages and amazing tooling available not only does this framework allow rapid development but also gives a lot of attention towards the developers.

Trying out Microsoft Windows WSL 2 and a quick review

Posted on 18 Jul 2020 by Amitav Roy

So, I read about this new feature on Twitter not sure who made that tweet or was it a sponsored one. But I saw that Microsoft has release Windows Subsystem for Linux (WSL) version 2. Now, I was not even aware version 1 existed (I guess I was too outdated in the windows world) but this news caught my attention. Windows and Linux in the same tweet. Well, that’s interesting I thought and started reading about the feature.

Laravel Livewire and the new File upload feature

Posted on 12 Jun 2020 by Amitav Roy

**Laravel Livewire** is a new package developed by Caleb Porzio which really changes the approach of how you do front end development. It is a composer package which allows you to create components in PHP which are reactive as well similar to Vue or React. The entire component code is inside PHP and blade files but you get a feeling of and SPA. Initially, everything will look very magical as you are writing only PHP code but getting JavaScript behaviour. But, once you start getting hold of things you will understand the beauty of this project and how it really speeds up your development time. How a user interacting with the component can directly trigger a server side function. How it can re-render pieces of data inside a website, so on and so forth.

Setting up husky & lint-staged for code format and unit tests before git push

Posted on 28 May 2020 by Amitav Roy

In one of my recent projects, I wanted to set up a process where my code is checked for code formatting and unit tests are executed automatically before the code is pushed to the git repository. We have worked with Gitlab pipelines where code is validated against multiple php versions and it will automatically notify if any code commit is breaking anything.

Migrating my blog from CMS to Laravel

Posted on 19 Dec 2019 by Amitav Roy

My blog has always been a way for me to convey my feelings about some of the developments and RND that I do during my work or even during my spare time. For a long time, I use to rely on a CMS for the blog. Initially Drupal and then for almost last two years on WordPress. But, this time I took a decision and changed the entire system into a Laravel application. In this post, I am going to share my reason for some of the decision that I took and some of my views which made me take those decisions.

Turtuk - The last village of India and its amazing history

Posted on 21 Jul 2019 by Amitav Roy

Turtuk is a small village along the banks of Shyok river and it is considered to be the last village of northern India. With the Karakoram range on one side and the great Himalayas on the other, this small village has so much to offer for the tourists. Even now, not many people venture into this place as it is another 90 kms from Diskit. Because the roads are not very good, it can take you more than 3 hours to reach Turtuk from Diskit.

A bike trip to Diveagar - prep for the bigger journey

Posted on 26 Jun 2019 by Amitav Roy

We wanted to start early, however due to some unforeseen issues we got delayed. From Vashi, Navi Mumbai we started at around 7 am and we were hoping that we will not get too much traffic. The idea was to have the bag stuffed, the jackets and everything to mock the situation that we will be facing in Leh. And the moment we started, we knew one thing is going to be a challenge and that’s the bag. Although the sitting position for the rider and pillion is quite comfortable in Himalayan, the moment we introduced the big rucksack, the situation did a 360. This trip was only one day’s halt but we packed some extra luggage just to get the feel.