Skip to content

Search

Articles, tools, solutions and knowledge base guides

Start typing to search across articles, tools and apps.

Learning

For engineers and product teams

Reference material: explanations, tool comparisons and practical guidance. Company news is on the Blog.

210 articles on development, AI, security, performance and web strategy

Latest articles

Service Workers: Caching Strategies, Offline Applications and Lifecycle

A service worker runs outside the document context and can handle requests made by a controlled web application. Registering one does not make an application offline-ready. We will build a deliberately narrow fallback for a public documentation site, then choose caching policies for other resource types.

TypeScript tsconfig.json: Compiler Configuration Explained

A tsconfig.json describes a TypeScript project, not the entire execution environment. This guide connects compiler choices to the actual build, type checking and output layout, with separate examples for bundled applications, directly executed Node.js output and libraries.

TypeScript Type Guards and Type Narrowing: How to Recognize Types Safely

Why does TypeScript report a missing property when the data looks correct? An `as` assertion silences a type error but performs no runtime check. Narrowing lets the compiler derive a more precise type from conditions JavaScript actually evaluates. The examples below address forms, API boundaries and application state, using strict mode and an ES2022 environment.

HTML Forms: How to Validate Input and Handle Errors Accessibly

A form can look correct yet lose submitted values, remain invalid after a correction or fail to respond to Enter. A large validation library is not necessary for every field. Native HTML handles many constraints, while JavaScript adds business rules and better feedback. These independent examples explain what the browser guarantees and what it does not.

JavaScript Event Bubbling, Capturing and Delegation Explained

A click on a product card's button can activate both the button handler and the card handler. On a dynamic list, a newly added button may not respond at all. Both problems are related to the DOM event model. Understanding the event path helps fix the cause instead of sprinkling stopPropagation calls throughout the application. Each example is independent: place the HTML in a document and execute the JavaScript after parsing it.

CSS Container Queries vs Media Queries: How to Build Responsive Components

A product card fits in a catalog but breaks when reused in a sidebar. Adding viewport breakpoints cannot solve the underlying problem if both cards appear on the same screen. Container size queries allow components to respond to the space allocated to them. The examples below separate page-level layout from component-level layout and explain how to diagnose a query that does not apply.

CSS Specificity, Cascade and Inheritance: Why Are My Styles Not Working?

A matching selector is not a guarantee that its declaration will be used. When a button retains a vendor color, a margin disappears, or a theme token produces an unexpected result, adding !important is rarely the right starting point. Identify whether a declaration lost the cascade or failed later during value computation. Each example below has a reproducible browser outcome.

CSS z-index: Why Is It Not Working? Stacking Contexts Explained

A tooltip with z-index: 999999 can still appear behind a header. A dropdown can also be clipped even when its stacking order is correct. These are distinct problems. The examples below show how to diagnose paint order, containing blocks and clipping instead of escalating arbitrary numbers.

JavaScript Deep Copy vs Shallow Copy: How to Copy Objects Without Mutating the Original

You copy a profile using object spread, edit its address in a form and discover that the saved profile has changed too. A new top-level object does not guarantee an independent data structure. The appropriate method depends on the types involved, the isolation you need and whether you are updating one field or taking a snapshot.