WebFiddle Blog

    Tutorials on web development and the languages WebFiddle runs, written by Atish Barua. Most examples open in a sandbox with one click.

    Featured

    CSS Box Model Explained with Examples

    CSS box model explained with examples: content, padding, border and margin, content-box vs border-box math, margin collapsing and DevTools tips.

    • CSS
    • Frontend
    • Design

    JavaScript Basics for Beginners

    Learn JavaScript basics: const and let, functions, the DOM, arrays and objects, with runnable examples and answers to common beginner questions.

    JavaScript4 min read

    Virtual DOM vs Real DOM in React

    How React's virtual DOM, reconciliation and commit phase update the real DOM, and what Fiber and React 18 concurrent rendering changed.

    React6 min read

    How We Run Node.js Code in the Browser

    How WebFiddle runs Node.js-style code in a Web Worker with a process and Buffer shim, and the limits: no require, npm packages or fs.

    Node.js5 min read

    PHP in WebAssembly vs Server-Side PHP

    How PHP in WebAssembly compares with server-side PHP on latency, privacy, databases and security, and when each one is the right choice.

    PHP5 min read

    Semantic HTML for SEO and Accessibility

    How semantic HTML elements like main, nav and article improve accessibility, and what Google actually says about semantic markup and SEO.

    HTML6 min read

    React Hooks Explained for Beginners

    A beginner's guide to React Hooks: useState, useEffect, useMemo, useCallback and useRef, the rules of hooks, and when each is worth using.

    React5 min read

    Node.js Event Loop Explained with Phases

    How the Node.js event loop works: its six phases, where process.nextTick and promises run, what libuv's thread pool does, and how to avoid blocking.

    Node.js6 min read

    Why Learn TypeScript: Benefits and Trade-offs

    Why learn TypeScript: static typing, interfaces and safer refactoring, plus real trade-offs such as build steps, erased runtime types and a learning curve.

    TypeScript5 min read

    How to Use npm Packages in the Browser

    Use npm packages in the browser without a bundler, using ES modules, import maps and ESM CDNs like esm.sh, plus what works in WebFiddle.

    NPM5 min read

    © 2026 WebFiddle.xyz