When looking for a great laptop, Lenovo’s ThinkPad line is always worth considering, but 16-inch laptops can feel like an underrepresented segment of the market. That doesn’t mean there aren’t options, though, like the new ThinkPad T16 Gen 3 and the E16 Gen 2. But which is right for you?
Source: xda-developers.com
How to change background color on scroll with Tailwind CSS and JavaScript
Today Sunday we are doing a short tutorial on how to change the background color of a header and sections based on the user's scroll position, enhancing the overall user experience and engagement.See it live and get the code Why would we use this approach? More engaging websites: Using parts of your site that react, like a header that shifts color when you scroll, makes your site feel more … [Read More...]
Grandoreiro Banking Trojan Resurfaces, Targeting Over 1,500 Banks Worldwide
May 19, 2024NewsroomBanking Troja / Email Security The threat actors behind the Windows-based Grandoreiro banking trojan have returned in a global campaign since March 2024 following a law enforcement takedown in January. The large-scale phishing attacks, likely facilitated by other cybercriminals via a malware-as-a-service (MaaS) model, target over 1,500 banks across the world, spanning more … [Read More...]
Overview of Performance Metrics
In this post, I wanna dive into Core Web Vitals and other performance metrics that are useful to measure the performance of a website. Largest Contentful Paint (LCP) LCP measures the time it takes for the largest content element to be rendered on the screen. It's a core user-centric metric that helps to measure the perceived loading speed of a page. It's one of Google's core web vitals and … [Read More...]
More of my notes on Web Performance
CSS links should be placed in the <head> of the document, while JavaScript links should be placed at the end of the document, just before the closing </body> tag. This is because CSS is render blocking, while JavaScript is not. Meaning, the browser will not render until it has loaded the CSS. This is why it's important to load CSS first, so the browser can start rendering the page as … [Read More...]
Proxies in JavaScript give your objects superpower
Proxies are a way for you to customize the behavior of objects in JavaScript. For example, let's say you always wanna log when a property is accessed on an object. You can use a proxy for that. It's a way to create a more "powerful" version of an object. Or to be fair, an accurate description would be that it's a way to create a "wrapper" around an object. You create a proxy by calling new … [Read More...]
WeakMap in JavaScript explained
I enjoy reading Open Source code. Especially ones around performance optimization. I have always had a tough time understanding WeakMap in JavaScript. And it's not because it's a complex concept, but rather because I had a wrong mental model of it. Let's say we want to cache the result of an expensive computation based on some object. We can use a Map to store the object as the key and the … [Read More...]
mongooseAggregatePaginate in simple language
Let us begin this by understandingWhat is mongooseAggregatePaginate ? In simple words mongooseAggregatePaginate is a plugin ( a software component that adds a specific feature to an existing program ) for mongoose, a popular mongoDB object modelling tool. This plugin helps you handle sets of data by breaking them into smaller, manageable chunks, which is known as pagination. Now the next question … [Read More...]
From Passion to Profession: My Journey in Mentoring Future Developers
How It BeganI was born in a remote area where I had no idea what programming was. My first encounter with a computer was love at first sight. From that moment on, I dedicated the following years of my life to becoming a programmer. I pursued a degree in computer science in college, where I quickly learned about Python, C++, and other programming languages. During this time, I started looking for … [Read More...]
The Power of Web Development with Brand Bugs
In today's digital age, where the internet serves as the primary gateway for businesses to connect with their audience, the importance of a strong online presence cannot be overstated. Website development has a broader meaning and encompasses many aspects such as website design, content development, and scripting through the client, and much more. So as a result, small-time and even big companies … [Read More...]
What are Web Push Notifications? And How do they work?
IntroductionIn this article, I will answer some prominent questions on web push notifications. Web Push Notifications (aka Browser Push Notifications) is a way to send some message to users even when they are not actively using the website. This provides a very convenient way for website owners to increase user engagement on the website. 💡 However, it should be used conscientiously as … [Read More...]