React Hooks: Optimizing for performance

If you have been using React hooks for a while, you might have already fallen in love with them. Almost all developers are now using them and changing their class based components into functional components as much as possible. This is good and is advocated by the React team. Functional components…

Read more →

Angular - Datatables and why use one

New BeginningsSo you've been assigned a task to create a web interface to display some data that you don't really care about.You don't know how this data is gonna be useful to any one.But you do know that the data is constantly changing and it is big, really big.As a developer, you get excited…

Read more →

React- Your First Custom Hook

React 16.8.0 introduces Hooks. Take notice that this is not React 17.0.0 because hooks can seamlessly integrate into your react code ,meaning they won’t break your existing code. React provides a bunch of hooks and you can read about them here in their amazing documentation.However, there’s more…Not…

Read more →

Angular- How to avoid Memory Leaks from Subscriptions?

In Angular 2+, RxJs is used extensively and as developers we should be careful about the performance drawbacks of excessive subscriptions. The Angular team, when integrating rxjs into the platform, were well aware of this.ProblemLets say you have two routes in your website — /home and /product. Both…

Read more →

Angular — Fallback for Broken Images

If you have worked with images on websites then you must have run into the common problem where the image doesn’t load for some reason. Maybe the link is broken, or the link might be an empty string/null/undefined. The image fails to load and you see something like this:Images failed to loadImages…

Read more →

Automate deployment with Github Web Hooks

I was working on my portfolio website recently and I had to make a lot of DevOps stuff on my **Digital Ocean** machine. I played around with reverse proxies with **nginx** to run my node application. While doing so, I had to search around for nginx configurations and I came across someone talking…

Read more →

Advanced Data Manipulation in Javascript

This is not a beginner tutorial on Map, Reduce and Filters. You should already be somewhat familiar with the concepts — at least the basics. Lets get right to it.Data from an endpointSay you have data coming from an endpoint in the following formIts an array of objects. Lets say you want to obtain…

Read more →