Vanilla JS - HTML Encode in JavaScript
A tutorial on creating a simple HTML encoding function in vanilla JavaScript to safely display code samples on web pages.
A tutorial on creating a simple HTML encoding function in vanilla JavaScript to safely display code samples on web pages.
A developer shares five hard truths about TypeScript, including its relationship to JavaScript and the complexity it adds.
A tutorial on creating a JavaScript function to convert any string into a URL-friendly slug, with a live demo.
Andy introduces a viewport logger tool to collect data on screen fragmentation and encourages testing on various devices.
A tutorial on wrapping JavaScript object methods in try/catch blocks for centralized error handling using Vanilla JS.
A discussion on managing complexity in front-end development, advocating for fewer dependencies and leveraging the web platform.
A guide to debugging JavaScript, covering principles, techniques, and real-world bug stories from conference talks.
Explains JavaScript Import Maps for ASP.NET Core devs, comparing traditional scripts to ES modules for better dependency management.
Learn to use the MutationObserver API to trigger code when specific elements are added or changed in the DOM.
A developer recommends two essential books for improving professional programming skills: one on browser networking and one on data-intensive applications.
Explains pure functions in JavaScript, their benefits, and how to identify and handle impure functions for better code.
The article argues that JavaScript's forEach method can be a code smell due to performance overhead from function allocation, especially in nested loops.
Explains short-circuit evaluation in JavaScript, covering AND, OR, and Nullish operators with practical examples.
Author argues against JS private class fields due to incompatibility with Proxies, impacting reactivity in frameworks like Vue.
Explains the Temporal Dead Zone (TDZ) in JavaScript, covering how it affects variables declared with let and const, with code examples.
Discloses a Local File Inclusion vulnerability in the xmlhttprequest npm package, allowing arbitrary file reads due to insecure default permissions.
A guide to unit testing 11ty (Eleventy) JavaScript/TypeScript templates using Vitest, focusing on testing data and render methods.
Explains the difference between assignment and mutation in JavaScript's const keyword, clarifying why objects declared with const can still be modified.
A tutorial on creating a free, customizable verification checkmark web component using JavaScript and SVG, inspired by Twitter's paid verification.
A guide to writing comments in React JSX, covering standard syntax and alternative JavaScript comment techniques for cleaner code.