Perf
-
Webpack – Build script Optimise
These are few tips on improving webpack performance. CSS Loaders In this configuration, webpack won’t need to scan the entire node_modules for css files because we know that only component-library-1 and component-library-2 packages would contain css files. This helps us in saving a little bit of time. Thse will be added as PostCSS plugins. When webpack processes a .css file,… Continue reading
-
Approach to Design: Desktop-First
A desktop-first approach to design and development is more appropriate in scenarios where the primary users are expected to access the application through desktop computers. This might be the case for software that requires a large screen for complex data visualization, such as enterprise resource planning (ERP) systems, or for applications that need the higher… Continue reading
-
Web Workers – Using them at work
The key benefit of using Web Workers is to perform computationally intensive tasks because Web Workers run in a separate thread. And their lack of access to the DOM is its strength and since it also doesn’t have access to the other APIs available in the main thread – these all factors make it safer… Continue reading
-
Problems with REST and why gRPC is preferred
REST APIs use HTTP 1.1 which requires a TCP handshake for each request, leading to latency issues.Reference: Reference: https://www.baeldung.com/rest-vs-grpc REST is based on a request and response mechanism, which means that the server only communicates when the client initiates the communication. With REST APIs, this is mostly unidirectional. Reference: https://memphis.dev/blog/grpc-vs-rest/ Streaming is difficult and duplex streaming… Continue reading
-
Dynamic Programming: Solve using a Table
A Dynamic Programming (DP) problem involves breaking down a larger problem into smaller subproblems and then combining their solutions. Dynamic programming problems are often solved using a table, particularly when they involve optimal substructure and overlapping subproblems. We can benefit from using a table to store intermediate results. This allows for a more efficient solution… Continue reading
-
HTTP Redirection Rules – 302 vs 301
We recently ran into a situation when the debate on whether to use 301 Redirect (Permanent) vs 302 Redirect (Temporary) became a bit intense. I was in favor of a 301 as I had to redirect to a new page until December mid and I was in April 1st week. My colleagues contested and raised… Continue reading
-
Blob URLs for extra security
Blob URLs for Videos in Stories and other multimedia content is a fantastic choice because of the following reasons: The use of blob URLs provides a secure, dynamic, and optimized multimedia experience for its users while protecting the intellectual property of content creators. Let’s take a look at the following Node.js code that demonstrates how… Continue reading
-
Mastering Your Productivity with Getting Things Done (GTD)
Are you constantly feeling overwhelmed by the never-ending to-do lists, a cluttered mind, and a sense of disorganization? If so, you’re not alone. In today’s fast-paced world, staying organized and productive can be a challenge. However, there’s a proven method that can help you regain control of your tasks and achieve a greater sense of… Continue reading
-
Details from WHOIS IP look up
This WHOIS lookup result provides details about an IP range owned by Flipkart Internet Pvt Ltd in India. One day, while surfing, I decided to take a peek at one of the remote addresses 163.53.76.86 and when I looked up the IP address, the WHOIS lookup result provided me following information about the IP address… Continue reading
-
SLO, SLA and SLI
Service Level Objective (SLO) An SLO (Service Level Objective), is the promise that a company makes to users regarding a specific metric such as incident response or uptime. SLOs exist within an SLA as individual promises contained within the full user agreement. Think of an SLO like a promise a company makes to its customers.… Continue reading