TLDR JavaScript module formats
A quick overview of JavaScript module formats: IIFE for browsers, CommonJS for Node.js, and ES6 modules for modern frontend builds.
Carsten Behrens helps people build websites and web applications, sharing practical insights and tutorials on modern web development.
36 articles from this blog
A quick overview of JavaScript module formats: IIFE for browsers, CommonJS for Node.js, and ES6 modules for modern frontend builds.
An explanation of REST (Representational State Transfer) architectural style, its six constraints, and how to design RESTful web APIs.
Explains why using window.addEventListener('load') is better than window.onload in JavaScript to avoid overwriting event handlers.
Analyzes how the number of DOM elements affects website performance, including style calculations, layout, and scrolling, with practical test results.
A guide on using Lighthouse CLI to block third-party domains like ads and analytics for accurate performance measurement.
Explains JavaScript closures, how they combine functions with their lexical environment, and provides a code example.
A tutorial explaining how to render an array of items into a list in React, focusing on the map method and the importance of unique keys.
Explains the Interface Segregation Principle (ISP) from SOLID, demonstrating its application in JavaScript and TypeScript with code examples.
Explains the Liskov Substitution Principle (LSP) in SOLID, demonstrating correct and incorrect implementations in JavaScript/TypeScript with class examples.
Explains the Open-Closed Principle (OCP) from SOLID, demonstrating its implementation in JavaScript/TypeScript with code examples.
A guide on using npm link to streamline local development when working across multiple interdependent npm packages.
Explains the Single Responsibility Principle (SRP) in JavaScript with code examples, part of a series on SOLID design principles.
A technical guide on implementing Web Push Notifications, covering service worker push event handling and obtaining push subscriptions.
A technical guide to implementing web push notifications using the Notifications API, Push API, and Service Workers in JavaScript.
A brief explanation of recursion in JavaScript with a practical example comparing iterative and recursive vowel counting functions.
Explains pure functions in JavaScript, their characteristics, advantages like testability and reusability, and provides examples.