Skip to main content

20 posts tagged with "web-development"

View All Tags

How JavaScript Bundlers Work: A Field Guide from 2012 to 2026

· 14 min read
Pere Pages
Software Engineer
Editorial illustration of scattered code modules flowing along conveyor belts into a funnel that outputs a few neat, bundled packages

Bundlers are the most invisible critical infrastructure in frontend development. Every npm run dev and every continuous-integration (CI) pipeline runs through one, yet most of us only think about them when something breaks or when a migration guide lands in our feed. This post is an attempt to fix that: what a bundler actually does under the hood, how we got from script tags to Rust toolchains, which tool owns which niche today, and where the whole thing is heading.

The Product Analytics Landscape in 2026: A Developer's Comparison of GA4, PostHog, Mixpanel, Amplitude, Heap, Pendo, Statsig & More

· 18 min read
Pere Pages
Software Engineer
Product analytics tool logos arranged as a comparison grid

Picking a product analytics tool in 2026 means choosing between a dozen mature options that all claim to do the same thing. This is a developer's field guide to how Google Analytics 4 (GA4), PostHog, Mixpanel, Amplitude, Heap, Pendo, Statsig and the rest actually differ — on data model, instrumentation, self-hosting, and price.

How to Test Open Graph Tags Locally Before You Deploy

· 4 min read
Pere Pages
Software Engineer
A social link-preview card being checked on a laptop before publishing, joined by a local tunnel to social platform icons

https://ogp.me/

Testing Open Graph locally is a bit deceptive: your browser can see localhost, but Facebook, LinkedIn, Slack, Discord, X/Twitter, etc. cannot.

The best workflow is:

1. Check the HTML locally
2. Expose localhost with ngrok
3. Test the public URL in real social preview/debugger tools

Chrome plugins are useful for fast feedback, but the final validation should happen through a public HTTPS URL.

A Complete Guide to the Compound Component Pattern in React (With TypeScript Examples)

· 7 min read
Pere Pages
Software Engineer
Nested modular blocks snapping together around a shared glowing state core

The Compound Component Pattern has become a popular approach in React for building flexible, reusable components. You'll often see it in two flavors: separate exports (<SelectTrigger />) or dot notation (<Select.Trigger />). But like any pattern, it comes with significant trade-offs. Let's explore both sides.