Tagged articles
2421 articles
Page 1 of 25
DeepHub IMBA
DeepHub IMBA
May 7, 2026 · Frontend Development

Self‑Healing Playwright Tests with LLM‑Driven Locator Recovery

This article shows how to combine Playwright with an LLM (Groq) to build a self‑healing test framework that detects broken selectors, extracts a trimmed DOM snapshot, asks the model for a replacement locator, validates confidence, caches results, and integrates the logic via a Playwright fixture.

GroqJavaScriptLLM
0 likes · 17 min read
Self‑Healing Playwright Tests with LLM‑Driven Locator Recovery
Old Zhang's AI Learning
Old Zhang's AI Learning
Apr 28, 2026 · Frontend Development

Recreating a Social Media Anti‑Addiction Chrome Extension with AI (Open‑Source)

The author adapts a Japanese developer’s forced‑break Chrome extension using GitHub Copilot (Codex) to create an open‑source add‑on that blocks prolonged browsing on any specified sites—by default Zhihu and Weibo—displaying a full‑screen cat overlay after a configurable time.

AI code generationAnti-AddictionChrome Extension
0 likes · 3 min read
Recreating a Social Media Anti‑Addiction Chrome Extension with AI (Open‑Source)
Goodme Frontend Team
Goodme Frontend Team
Apr 27, 2026 · Mobile Development

Exploring BLE Printing in DingTalk Mini Programs: Implementation and Best Practices

This article provides a detailed engineering analysis of using Bluetooth Low Energy (BLE) within DingTalk mini programs to drive portable thermal printers, covering why BLE is chosen over classic Bluetooth, the GATT communication model, connection lifecycle management, ESC/POS command construction, packet splitting for the 20‑byte BLE limit, and practical image‑printing techniques, all illustrated with code examples and step‑by‑step guidance.

BLEDingTalkESC/POS
0 likes · 46 min read
Exploring BLE Printing in DingTalk Mini Programs: Implementation and Best Practices
James' Growth Diary
James' Growth Diary
Apr 25, 2026 · Artificial Intelligence

How to Use LangGraph Conditional Edge for Dynamic Branching Decisions

This article explains the concept of Conditional Edge in LangGraph, shows how to add conditional edges with three parameters, demonstrates rule‑based, multi‑branch, and loop routing patterns, compares rule‑based versus LLM‑based routing, provides a complete customer‑service agent example, and lists common pitfalls and best‑practice checklists.

Agentic LoopConditional EdgeJavaScript
0 likes · 20 min read
How to Use LangGraph Conditional Edge for Dynamic Branching Decisions
James' Growth Diary
James' Growth Diary
Apr 24, 2026 · Artificial Intelligence

How LangGraph Turns LLMs into a State Machine

This article dissects LangGraph's core execution engine, showing how it transforms LLM calls into a state‑machine workflow with mutable State, Nodes, Edges, Reducers, a scheduler loop, conditional branching, and parallel fan‑out/fan‑in execution.

JavaScriptLLMLangGraph
0 likes · 12 min read
How LangGraph Turns LLMs into a State Machine
AI Architect Hub
AI Architect Hub
Apr 10, 2026 · Artificial Intelligence

How to Build an AI‑Powered WeChat Article Automation Workflow with Prompt Engineering

This guide walks through creating a fully automated WeChat public‑account article publishing pipeline using large‑model prompt engineering, covering token retrieval, title generation, subtitle creation, hand‑drawn comic generation, content formatting, image handling, and final draft publishing with detailed code snippets.

AIJavaScriptPrompt engineering
0 likes · 11 min read
How to Build an AI‑Powered WeChat Article Automation Workflow with Prompt Engineering
Code Mala Tang
Code Mala Tang
Apr 10, 2026 · Frontend Development

Mastering CSS ‘:nth-child of’ Selector for Elegant Date Range Pickers

This guide demonstrates how to use the CSS ‘:nth-child of’ selector syntax together with minimal JavaScript to build a fully functional date‑range picker, covering selector mechanics, HTML structure, CSS grid layout, range‑selection logic, and visual styling of the selected period.

CSSDate PickerJavaScript
0 likes · 8 min read
Mastering CSS ‘:nth-child of’ Selector for Elegant Date Range Pickers
James' Growth Diary
James' Growth Diary
Apr 9, 2026 · Artificial Intelligence

How ReAct Enables Agents to Think While Acting

This article explains the ReAct pattern—interleaving reasoning and acting for LLM agents—by defining its core loop, comparing it with plain tool‑calling, providing a step‑by‑step hand‑written implementation in JavaScript, showing the LangChain.js wrapper, streaming output, and detailing five common pitfalls and a pre‑deployment checklist.

JavaScriptLLMLangChain
0 likes · 16 min read
How ReAct Enables Agents to Think While Acting
James' Growth Diary
James' Growth Diary
Apr 9, 2026 · Artificial Intelligence

Building a Tool-Calling Agent from Scratch with LangChain.js

This tutorial walks through creating a fully functional Tool-Calling Agent using LangChain.js, covering tool definition, model binding, manual execution loops, the high‑level createReactAgent API, streaming responses, state management with thread IDs, common pitfalls, and a complete runnable example.

JavaScriptLangChain.jsOpenAI
0 likes · 20 min read
Building a Tool-Calling Agent from Scratch with LangChain.js
Frontend AI Walk
Frontend AI Walk
Apr 8, 2026 · Frontend Development

Mastering Pretext: A Practical Frontend Guide for Precise Text Measurement

This article explains how the open‑source Pretext library enables fast, accurate multi‑line text measurement and layout in pure JavaScript/TypeScript, outlines the problems it solves, lists ideal front‑end scenarios, provides step‑by‑step API usage, and warns when the library should be avoided.

JavaScriptPretextVirtualization
0 likes · 12 min read
Mastering Pretext: A Practical Frontend Guide for Precise Text Measurement
Node.js Tech Stack
Node.js Tech Stack
Apr 1, 2026 · Frontend Development

How a Former React Core Engineer’s Pretext Library Solves a 30‑Year‑Old Browser Text Layout Problem

Front‑end developers struggle to measure text height without rendering, causing performance issues in virtual scrolling, chat bubbles, and masonry layouts, but the TypeScript‑based Pretext library bypasses the DOM, uses Canvas measureText, and delivers order‑of‑magnitude speedups while offering line‑level layout APIs.

JavaScriptPretextTypeScript
0 likes · 10 min read
How a Former React Core Engineer’s Pretext Library Solves a 30‑Year‑Old Browser Text Layout Problem
IT Services Circle
IT Services Circle
Mar 31, 2026 · Frontend Development

How Pretext Calculates Text Layout Without DOM Reflows

Pretext is a TypeScript‑based text layout engine that accurately computes line breaks and element heights using canvas.measureText and Intl.Segmenter, eliminating costly DOM measurements, reflows, and layout thrashing while delivering sub‑0.05 ms performance for dynamic UI scenarios.

CanvasJavaScripttext layout
0 likes · 5 min read
How Pretext Calculates Text Layout Without DOM Reflows
Machine Heart
Machine Heart
Mar 30, 2026 · Frontend Development

How Cheng Lou’s Pretext Library Powers the Viral Bad Apple Text‑Wrap Effect

The article introduces Pretext, a pure JavaScript/TypeScript text‑layout engine that measures and renders text without touching the DOM, claims speed hundreds of times faster than traditional methods, and showcases its use in the viral Bad Apple animation and several interactive demos, while highlighting its AI‑friendly API, tiny footprint, and open‑source impact.

AI-friendlyJavaScriptPretext
0 likes · 6 min read
How Cheng Lou’s Pretext Library Powers the Viral Bad Apple Text‑Wrap Effect
Coder Trainee
Coder Trainee
Mar 23, 2026 · Frontend Development

Build a Simple HTML/CSS Image Carousel from Scratch

The article walks through creating a basic image carousel using native HTML5, CSS positioning, and a minimal markup structure, explaining each step and providing code snippets while noting that JavaScript navigation still needs to be added.

CSSCarouselHTML
0 likes · 4 min read
Build a Simple HTML/CSS Image Carousel from Scratch
Coder Trainee
Coder Trainee
Mar 19, 2026 · Mobile Development

How to Wrap GET Requests with Parameters in WeChat Mini Programs

This article shows how to create a reusable GET request wrapper for WeChat Mini Programs, demonstrating the function that appends a base URL, passes query parameters, sets JSON headers, and handles success and failure callbacks.

GET requestJavaScriptWeChat Mini Program
0 likes · 1 min read
How to Wrap GET Requests with Parameters in WeChat Mini Programs
Full-Stack Cultivation Path
Full-Stack Cultivation Path
Mar 16, 2026 · Frontend Development

Vite+ Launches – A Unified Frontend Development Era Begins

Vite+ has been released as an MIT‑licensed, fully open‑source JavaScript development toolchain that unifies project creation, dependency management, linting, testing, building and monorepo tasks under a single CLI, while remaining compatible with the existing Vite ecosystem.

CLIJavaScriptRust
0 likes · 7 min read
Vite+ Launches – A Unified Frontend Development Era Begins
DevOps Coach
DevOps Coach
Mar 2, 2026 · Frontend Development

10 Essential Console Debugging Tricks Every Front‑End Developer Should Know

Discover how senior developers replace noisy console.log statements with powerful JavaScript console features—object shorthand, console.table, trace, assert, timing, styled logs, grouping, deep inspection, log levels, and DevTools shortcuts—to debug code faster and more precisely.

JavaScriptTipsWeb Development
0 likes · 11 min read
10 Essential Console Debugging Tricks Every Front‑End Developer Should Know
21CTO
21CTO
Mar 2, 2026 · Frontend Development

Why Modern JavaScript Frameworks Feel Familiar: The Return of Server‑Side Rendering

The article explains how web development is circling back to server‑side rendering, merging PHP's integrated simplicity with modern JavaScript ecosystems like Next.js, to improve performance, SEO, and developer productivity while addressing the complexities introduced by earlier single‑page application architectures.

JavaScriptPHPServer-side Rendering
0 likes · 6 min read
Why Modern JavaScript Frameworks Feel Familiar: The Return of Server‑Side Rendering
21CTO
21CTO
Feb 26, 2026 · Frontend Development

jQuery 4.0 Unveiled: New Features, Modern Architecture, and Upgrade Guide

On February 24, 2026, jQuery celebrated its 20th anniversary with the release of version 4.0, a major overhaul that streamlines the library, adopts ES modules, drops legacy browser support, improves security, and offers a lightweight, migration‑friendly upgrade path for developers.

ES ModulesJavaScriptLibrary
0 likes · 7 min read
jQuery 4.0 Unveiled: New Features, Modern Architecture, and Upgrade Guide
IT Services Circle
IT Services Circle
Feb 20, 2026 · Fundamentals

Why Java Remains China’s Tech Staple and the Next Languages to Master

Based on JetBrains' 2025 developer ecosystem report, this article reveals why Java still dominates Chinese enterprises, why Python is essential for AI development, how JavaScript fits the full‑stack future, and which AI coding assistants are gaining traction among local developers.

AI toolsChinaJavaScript
0 likes · 6 min read
Why Java Remains China’s Tech Staple and the Next Languages to Master
Black & White Path
Black & White Path
Feb 19, 2026 · Information Security

How to Hard‑Code the Encryption Key of a WeChat Public Account

The article walks through a security test of a WeChat public account that uses AES‑encrypted payloads, RSA‑encrypted keys, and an MD5 signature, showing how the author first tried memory editing with Cheat Engine, then succeeded by intercepting and modifying the JavaScript in Burp Suite to fix the key, and finally summarises why front‑end encryption can be bypassed.

Burp SuiteFront-end securityJavaScript
0 likes · 7 min read
How to Hard‑Code the Encryption Key of a WeChat Public Account
21CTO
21CTO
Feb 15, 2026 · Fundamentals

Why TypeScript 6.0 Beta Switches to Go: Faster Builds and Lower Memory

Microsoft announced the TypeScript 6.0 beta, the last version written in JavaScript, and revealed that the compiler will be re‑implemented in Go to improve editor startup, reduce build times, and cut memory usage, with new default compiler options and tsconfig behavior changes.

BetaJavaScriptTypeScript
0 likes · 3 min read
Why TypeScript 6.0 Beta Switches to Go: Faster Builds and Lower Memory
21CTO
21CTO
Feb 12, 2026 · Frontend Development

2026 JavaScript Survey Shows Date Handling Pain Points and Rise of Temporal API

The 2026 JavaScript developer survey of tens of thousands of frontend engineers highlights chronic issues with the native Date object, growing adoption of TypeScript, mixed opinions on Webpack and Next.js, and strong enthusiasm for ES2026 features like the Temporal API, which is now supported in major browsers and poised to replace legacy date handling.

JavaScriptTemporal APITypeScript
0 likes · 10 min read
2026 JavaScript Survey Shows Date Handling Pain Points and Rise of Temporal API
Woodpecker Software Testing
Woodpecker Software Testing
Jan 25, 2026 · Artificial Intelligence

Integrating LLMs with Speech: Whisper, Vosk, and Alibaba Cloud in Python and JavaScript

This tutorial walks through setting up local speech recognition with OpenAI's Whisper and Vosk, leveraging Alibaba Cloud's ASR services, building a WebSocket server/client for real‑time audio streaming, capturing audio in the browser via MediaRecorder or RecordRTC, and performing speech synthesis with pyttsx3 and Alibaba's Sambert model.

Alibaba CloudJavaScriptPython
0 likes · 20 min read
Integrating LLMs with Speech: Whisper, Vosk, and Alibaba Cloud in Python and JavaScript
Go Development Architecture Practice
Go Development Architecture Practice
Jan 17, 2026 · Backend Development

A Rapid Tour of 30+ Popular Web Frameworks Across Languages

This article provides concise, language‑by‑language overviews of more than thirty widely used web frameworks—including Ruby on Rails, ASP.NET, Vapor, Django, Flask, Phoenix, Laravel, Next.js, Astro, Spring Boot, Express.js, Gin, and Go‑specific frameworks—highlighting their core concepts, typical use cases, and notable projects built with them.

GoJavaScriptPython
0 likes · 16 min read
A Rapid Tour of 30+ Popular Web Frameworks Across Languages
DevOps Coach
DevOps Coach
Jan 13, 2026 · Backend Development

10 Common JSON Mistakes Developers Make and How to Fix Them

This article outlines ten frequent JSON pitfalls—from deeply nested structures and string literals to missing timezone data and lack of versioning—provides clear before‑and‑after code examples, and offers practical guidelines to write cleaner, safer, and more maintainable JSON for APIs and configuration files.

ConfigurationJSONJavaScript
0 likes · 10 min read
10 Common JSON Mistakes Developers Make and How to Fix Them
FunTester
FunTester
Jan 9, 2026 · Backend Development

Jest vs Mocha: Which JavaScript Testing Framework Fits Your Project?

This article provides a detailed comparison of Jest and Mocha, covering their core features, performance, flexibility, ecosystem support, and ideal use‑cases, helping developers choose the most suitable JavaScript testing framework for front‑end or back‑end projects.

JavaScriptJestNode.js
0 likes · 16 min read
Jest vs Mocha: Which JavaScript Testing Framework Fits Your Project?
IT Services Circle
IT Services Circle
Jan 7, 2026 · Frontend Development

Why Vite 8 Marks a Fundamental Shift in Frontend Build Tools

The article examines Vite's evolution from a clever dev‑experience enhancer using esbuild and Rollup to a fully re‑architected platform with Rolldown, Oxc, and a shared AST, explaining how these changes reflect a deeper strategic move toward a self‑contained, stable, and sustainable frontend infrastructure.

Build ToolBundlerJavaScript
0 likes · 6 min read
Why Vite 8 Marks a Fundamental Shift in Frontend Build Tools
JavaScript
JavaScript
Jan 7, 2026 · Fundamentals

How Guard Clauses and Early Returns Can Simplify Complex If‑Else Logic

This article explains why deeply nested if‑else statements hurt readability and maintainability, and demonstrates how using early return statements and guard‑clause patterns can flatten code, reduce cognitive load, and improve maintainability with clear examples in JavaScript.

Code RefactoringControl FlowEarly Return
0 likes · 5 min read
How Guard Clauses and Early Returns Can Simplify Complex If‑Else Logic
JavaScript
JavaScript
Jan 5, 2026 · Backend Development

Eliminate Nested try…catch: Go‑Style Error Handling for Async/Await

This article explains how the traditional try…catch pattern in JavaScript async/await can lead to deeply nested, hard‑to‑read code and introduces a Go‑inspired error‑handling helper that returns [error, data] tuples, flattening logic, reducing boilerplate, and improving readability.

Error HandlingGo styleJavaScript
0 likes · 7 min read
Eliminate Nested try…catch: Go‑Style Error Handling for Async/Await
Code Mala Tang
Code Mala Tang
Jan 5, 2026 · Frontend Development

Mastering Browser Blobs: Create, Use, and Optimize Blob URLs

This guide explains what a Blob is, how to create it with JavaScript, generate and manage temporary Blob URLs, compare it with Base64 and ArrayBuffer, and apply best‑practice patterns for previewing, downloading, and streaming large files in modern web applications.

BlobFile APIJavaScript
0 likes · 7 min read
Mastering Browser Blobs: Create, Use, and Optimize Blob URLs
JavaScript
JavaScript
Jan 4, 2026 · Frontend Development

Mastering JavaScript’s ‘this’: 4 Binding Rules and Arrow Function Secrets

This article explains why the JavaScript this keyword is notoriously tricky, demonstrates its behavior with concrete examples, outlines the four binding rules (default, implicit, explicit, new), shows how arrow functions simplify this handling, and offers practical best‑practice tips for writing robust code.

Arrow FunctionsBindingJavaScript
0 likes · 6 min read
Mastering JavaScript’s ‘this’: 4 Binding Rules and Arrow Function Secrets
Code Mala Tang
Code Mala Tang
Jan 2, 2026 · Frontend Development

Boost Web App Performance with Web Workers: A Practical Guide

This article explains how JavaScript's single‑threaded nature can freeze UI during heavy calculations and shows step‑by‑step how to offload work to Web Workers, integrate external libraries, configure build tools, and follow best practices for smooth, responsive web applications.

JavaScriptWeb DevelopmentWeb Workers
0 likes · 10 min read
Boost Web App Performance with Web Workers: A Practical Guide
Code Mala Tang
Code Mala Tang
Jan 2, 2026 · Frontend Development

Master Async Data Handling in JavaScript with Array.fromAsync

This guide explains how the new JavaScript Array.fromAsync() method converts async iterables, streams, or paginated API responses into clean arrays, offering clear syntax, practical use‑cases, and step‑by‑step code examples for front‑end developers.

APIArray.fromAsyncAsync
0 likes · 5 min read
Master Async Data Handling in JavaScript with Array.fromAsync
JavaScript
JavaScript
Dec 31, 2025 · Frontend Development

7 Reliable Alternatives to setTimeout for Precise JavaScript Timing

The article outlines seven browser‑based techniques—including requestAnimationFrame, setInterval, requestIdleCallback, Web Workers, Promise + async/await, the Web Animations API, and Intersection Observer—each offering higher accuracy, better resource handling, or smoother execution than the traditional setTimeout timer.

JavaScriptTimersWeb APIs
0 likes · 4 min read
7 Reliable Alternatives to setTimeout for Precise JavaScript Timing
JavaScript
JavaScript
Dec 31, 2025 · Frontend Development

Unlock Hidden Performance Gains in Front‑End Apps with Web Workers

Web Workers let JavaScript run heavy computations in background threads, freeing the main UI thread, boosting multi‑core utilization, and improving memory management, which together dramatically enhance front‑end performance for tasks like data processing, image filtering, media handling, and AI inference.

JavaScriptWeb Workersperformance optimization
0 likes · 5 min read
Unlock Hidden Performance Gains in Front‑End Apps with Web Workers
JavaScript
JavaScript
Dec 29, 2025 · Frontend Development

Master Concurrent JavaScript: Replace Promise.all with Promise.allSettled

While Promise.all is the traditional way to run multiple asynchronous operations in JavaScript, it aborts the whole batch when any promise rejects, making it impossible to know which calls succeeded; Promise.allSettled overcomes this by waiting for all promises and providing a detailed status for each result.

AsynchronousJavaScriptPromise
0 likes · 5 min read
Master Concurrent JavaScript: Replace Promise.all with Promise.allSettled
Woodpecker Software Testing
Woodpecker Software Testing
Dec 28, 2025 · Backend Development

Adjusting GUI and API Test Cases with ChatGPT

This article explains how to handle leading and trailing spaces in user input by applying the .trim() method in both front‑end JavaScript validation functions and back‑end Java controllers, updates test data and cases, and verifies that all GUI and API tests pass successfully.

.trimAPIGUI
0 likes · 19 min read
Adjusting GUI and API Test Cases with ChatGPT
Open Source Tech Hub
Open Source Tech Hub
Dec 27, 2025 · Frontend Development

Layui 3 v3.0.0‑alpha: New Build Tools, ES Modules & Theme Customization

Layui 3 v3.0.0‑alpha restructures the project with ES‑module migration, a Rollup‑Babel‑PostCSS build pipeline, Prettier + ESLint enforcement, Jest testing, CSS‑Variable theming, and multiple import methods, while keeping component APIs identical to v2 and dropping IE support.

CSS VariablesES ModulesJavaScript
0 likes · 5 min read
Layui 3 v3.0.0‑alpha: New Build Tools, ES Modules & Theme Customization
JavaScript
JavaScript
Dec 25, 2025 · Frontend Development

Boost JavaScript Async Performance by Up to 80% with Advanced Promise Techniques

This article explains why async/await can introduce performance overhead, then presents four optimized Promise‑based patterns—including chain optimization, Promise.all parallelism, batch processing, and pooling—that can improve JavaScript asynchronous code speed by up to 80% in high‑frequency or large‑scale scenarios.

JavaScriptPromiseasync/await
0 likes · 5 min read
Boost JavaScript Async Performance by Up to 80% with Advanced Promise Techniques
JavaScript
JavaScript
Dec 24, 2025 · Frontend Development

Beyond the Classic for Loop: Modern JavaScript Iteration Techniques

This article examines why traditional JavaScript for loops are often suboptimal and introduces more readable, functional, and powerful alternatives such as array methods, for...of, for...in, and the spread operator, while also outlining scenarios where the classic for loop still shines.

JavaScriptarray methodses6
0 likes · 7 min read
Beyond the Classic for Loop: Modern JavaScript Iteration Techniques
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 23, 2025 · Frontend Development

Generate Multi‑Page PDFs Directly in the Browser with dompdf.js

dompdf.js v1.1.0 lets developers convert HTML to searchable, lightweight, multi‑page PDFs entirely on the front end, fixing blur, large size, and inaccurate pagination issues, and provides features such as custom headers/footers, encryption, compression, font handling, and browser‑compatible rendering options.

JavaScriptdompdf.jsencryption
0 likes · 12 min read
Generate Multi‑Page PDFs Directly in the Browser with dompdf.js
21CTO
21CTO
Dec 21, 2025 · Frontend Development

Boost JavaScript Performance: A Hands‑On Guide to WebAssembly with AssemblyScript

This article explains how WebAssembly can dramatically improve JavaScript application speed, outlines its collaboration with JS, describes ideal use cases, and provides a step‑by‑step AssemblyScript tutorial—including prerequisites, project setup, code examples, and compilation commands.

AssemblyScriptJavaScriptWebAssembly
0 likes · 7 min read
Boost JavaScript Performance: A Hands‑On Guide to WebAssembly with AssemblyScript
JavaScript
JavaScript
Dec 16, 2025 · Frontend Development

Why Timestamp+Random Fails and How crypto.randomUUID() Guarantees Truly Unique IDs

This article explains common pitfalls of generating unique IDs with timestamps and simple counters in JavaScript, demonstrates why those methods can collide under high concurrency, and shows how the built‑in crypto.randomUUID() provides a standards‑based, cryptographically secure solution.

JavaScriptbest-practicescrypto
0 likes · 5 min read
Why Timestamp+Random Fails and How crypto.randomUUID() Guarantees Truly Unique IDs
Instant Consumer Technology Team
Instant Consumer Technology Team
Dec 12, 2025 · Artificial Intelligence

7 Must‑Try Open‑Source Tools to Supercharge Your Development (AI, UI, and More)

This article curates seven noteworthy open‑source projects—from a Linux‑based Windows app runner and a modern admin dashboard to AI‑focused tools like ComfyUI‑Manager, Claude quickstarts, and real‑time Whisper transcription—providing concise descriptions and direct repository links for developers seeking practical resources.

AIJavaScriptLinux
0 likes · 7 min read
7 Must‑Try Open‑Source Tools to Supercharge Your Development (AI, UI, and More)
JavaScript
JavaScript
Dec 12, 2025 · Frontend Development

Why try‑catch Fails in Async JavaScript and How Promise.try Solves It

This article explains the shortcomings of traditional try‑catch for asynchronous JavaScript errors, illustrates the complexity of mixing Promise.catch with sync code, and introduces Promise.try as a unified, micro‑task‑aware solution that simplifies error handling across both synchronous and asynchronous contexts.

Error HandlingJavaScriptPromise
0 likes · 4 min read
Why try‑catch Fails in Async JavaScript and How Promise.try Solves It
FunTester
FunTester
Dec 9, 2025 · Frontend Development

Mastering Ant Design Popups: Fix Overlay Issues with getPopupContainer

This guide explains why Ant Design dropdowns, tooltips, and popovers are often hidden or misaligned, how the default rendering to document.body causes these problems, and demonstrates practical use of the getPopupContainer property to control popup mounting and eliminate visual bugs in React applications.

Ant DesignJavaScriptReact
0 likes · 7 min read
Mastering Ant Design Popups: Fix Overlay Issues with getPopupContainer
JavaScript
JavaScript
Dec 8, 2025 · Frontend Development

Why JSON.parse(JSON.stringify(obj)) Fails for Deep Cloning and Better Alternatives

The article explains the hidden pitfalls of using JSON.parse(JSON.stringify(obj)) for deep cloning in JavaScript, such as circular references, loss of special types, prototype chain, and collection handling, and introduces the native structuredClone API as a more reliable solution.

JSONJavaScriptcircular reference
0 likes · 5 min read
Why JSON.parse(JSON.stringify(obj)) Fails for Deep Cloning and Better Alternatives
JavaScript
JavaScript
Dec 7, 2025 · Frontend Development

Unlock Faster Frontend Performance with Underused Web Workers

Web Workers, an often‑overlooked browser API, let JavaScript run in background threads, freeing the main thread, leveraging multi‑core CPUs, and improving memory management, with practical use‑cases ranging from large data processing to image filtering and AI inference, dramatically boosting frontend responsiveness.

JavaScriptWeb Workersmultithreading
0 likes · 5 min read
Unlock Faster Frontend Performance with Underused Web Workers
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 6, 2025 · Frontend Development

Build Realistic 3D Trees in Three.js with ez‑Tree – Quick Installation & Usage Guide

This article introduces the ez‑Tree plugin for Three.js, showing how to install it via npm or pnpm, import and instantiate the Tree class, configure position, scale, and animation updates, and customize parameters such as tree type, branch direction, and leaf density, with a link to the GitHub repository.

3D treesGraphicsJavaScript
0 likes · 4 min read
Build Realistic 3D Trees in Three.js with ez‑Tree – Quick Installation & Usage Guide
IT Services Circle
IT Services Circle
Dec 4, 2025 · Frontend Development

Why Vite 8’s Switch to Rolldown Could Boost Your Build Speed 10‑30×

Vite 8 Beta replaces its esbuild‑Rollup pipeline with the Rust‑based Rolldown, unifying the toolchain and delivering 10‑30× faster builds, flexible code‑splitting, module‑level caching, and upcoming Full Bundle mode, while offering optional tsconfig.paths, emitDecoratorMetadata support and a low‑cost migration path for large projects.

Frontend BuildJavaScriptRolldown
0 likes · 5 min read
Why Vite 8’s Switch to Rolldown Could Boost Your Build Speed 10‑30×
BirdNest Tech Talk
BirdNest Tech Talk
Dec 4, 2025 · Frontend Development

How to Build a Real‑Time AI Agent UI with SSE and Session Replay

This article walks through the design and implementation of a visually striking, real‑time front‑end for an AI agent, explaining why Server‑Sent Events were chosen, showing Go and JavaScript code for streaming, and detailing a session‑replay feature that lets users review every agent decision step.

AI AgentAgent UIGo
0 likes · 9 min read
How to Build a Real‑Time AI Agent UI with SSE and Session Replay
JavaScript
JavaScript
Dec 3, 2025 · Frontend Development

Why IIFEs Are Obsolete: Embrace Modern ES Modules in JavaScript

This article reviews the historic use of Immediately Invoked Function Expressions (IIFE) in JavaScript, outlines their drawbacks, and demonstrates how ES6 native modules provide a cleaner, more maintainable alternative with practical migration guidance.

IIFEJavaScriptModules
0 likes · 4 min read
Why IIFEs Are Obsolete: Embrace Modern ES Modules in JavaScript
ITPUB
ITPUB
Dec 2, 2025 · Frontend Development

Why Do Some Emojis Count as Multiple Characters in JavaScript?

When debugging a web app, the author discovered that certain emojis occupy more than one character slot in JavaScript strings, revealing that emoji length varies because they are composed of multiple Unicode code points such as variation selectors and zero‑width joiners.

EmojiJavaScriptUnicode
0 likes · 4 min read
Why Do Some Emojis Count as Multiple Characters in JavaScript?
php Courses
php Courses
Dec 1, 2025 · Frontend Development

How to Accurately Calculate and Display Pagination Indexes in JavaScript

This guide explains common pagination index problems in web apps and provides a step‑by‑step JavaScript solution—including a reusable function, a full HTML component, handling of empty and dynamic data sets, best‑practice tips, and complete code examples—for seamless user navigation.

Index CalculationJavaScriptWeb Development
0 likes · 8 min read
How to Accurately Calculate and Display Pagination Indexes in JavaScript
JavaScript
JavaScript
Dec 1, 2025 · Frontend Development

How Vue’s Upcoming Vapor Mode Could Revolutionize Frontend Performance

The article outlines Vue’s next‑generation Vapor Mode—a compilation strategy that removes the virtual DOM, introduces fine‑grained reactive tracking, and promises faster updates, smaller bundles, and a smoother developer experience for the anticipated Vue 4.0 release.

JavaScriptReactive SystemVapor Mode
0 likes · 5 min read
How Vue’s Upcoming Vapor Mode Could Revolutionize Frontend Performance
JavaScript
JavaScript
Nov 29, 2025 · Frontend Development

Why setTimeout Falls Short and How requestIdleCallback Keeps Your UI Smooth

The article explains how the browser’s single‑threaded nature makes long JavaScript tasks block rendering, outlines the timing issues of setTimeout, introduces requestAnimationFrame for visual sync, and shows how requestIdleCallback can safely schedule low‑priority work during idle periods.

Browser APIsJavaScriptrequestAnimationFrame
0 likes · 4 min read
Why setTimeout Falls Short and How requestIdleCallback Keeps Your UI Smooth
JavaScript
JavaScript
Nov 27, 2025 · Frontend Development

Why Facebook Limits Arrow Functions: Hidden Pitfalls Every JS Developer Should Know

Although arrow functions are concise, Facebook’s codebase deliberately restricts their use because they can cause subtle bugs related to this binding, prototype sharing, constructor usage, missing arguments, and readability, prompting developers to follow specific best‑practice guidelines.

Arrow FunctionsJavaScriptbest practices
0 likes · 4 min read
Why Facebook Limits Arrow Functions: Hidden Pitfalls Every JS Developer Should Know
JavaScript
JavaScript
Nov 25, 2025 · Fundamentals

Why === Isn’t Enough: Mastering Precise Equality with Object.is() in JavaScript

While the strict equality operator (===) works well for most cases, it fails with special values like NaN and distinguishes +0 and -0 incorrectly; JavaScript’s Object.is() method provides a more precise same‑value equality, correctly handling these edge cases and improving comparisons in Maps, Sets, and other structures.

+0 -0JavaScriptNaN
0 likes · 5 min read
Why === Isn’t Enough: Mastering Precise Equality with Object.is() in JavaScript
Goodme Frontend Team
Goodme Frontend Team
Nov 24, 2025 · Frontend Development

How React Fiber Eliminates UI Jank: A Step‑by‑Step Deep Dive

This article explains why web pages feel sluggish, how React Fiber’s interruptible asynchronous rendering solves the jank problem, and walks through progressively refined implementations—from a basic React demo to a full Fiber renderer with work‑loop scheduling, diffing, and performance optimizations.

Diff AlgorithmFiberJavaScript
0 likes · 19 min read
How React Fiber Eliminates UI Jank: A Step‑by‑Step Deep Dive
21CTO
21CTO
Nov 23, 2025 · Frontend Development

Why Bun v1.3.3 Is Redefining Full‑Stack JavaScript Development

Bun v1.3.3 transforms the JavaScript toolchain into a full‑stack platform by integrating native frontend serving, backend APIs, multi‑engine database support, and a high‑performance Redis client, while offering zero‑barrier installation across Linux, macOS, Windows, and Docker.

BunJavaScriptfull-stack
0 likes · 9 min read
Why Bun v1.3.3 Is Redefining Full‑Stack JavaScript Development
JavaScript
JavaScript
Nov 21, 2025 · Frontend Development

Why IndexedDB Beats localStorage: Performance, Capacity, and Security Explained

This article examines the security risks, synchronous blocking, size limits, and query shortcomings of localStorage, then shows how IndexedDB’s asynchronous API, larger storage capacity, stronger security model, and advanced indexing make it the superior choice for modern web applications.

IndexedDBJavaScriptWeb Performance
0 likes · 6 min read
Why IndexedDB Beats localStorage: Performance, Capacity, and Security Explained
JavaScript
JavaScript
Nov 20, 2025 · Frontend Development

Why forEach Slows You Down: Faster JavaScript Loop Alternatives

This article examines the performance drawbacks and limitations of JavaScript's forEach method and presents faster alternatives such as classic for loops, for…of, functional methods like map, filter, reduce, and early‑exit methods like some and every.

JavaScriptLoopsarray methods
0 likes · 3 min read
Why forEach Slows You Down: Faster JavaScript Loop Alternatives
JavaScript
JavaScript
Nov 19, 2025 · Frontend Development

Why Top Frontend Teams Ban `export default` and Prefer Named Exports

Although `export default` offers a concise syntax, leading frontend teams and large projects now forbid it because named exports enforce consistent naming, improve tree‑shaking, simplify barrel re‑exports, and reduce refactoring pain, making codebases more maintainable and tool‑friendly.

ES ModulesJavaScriptexport default
0 likes · 5 min read
Why Top Frontend Teams Ban `export default` and Prefer Named Exports
Java Web Project
Java Web Project
Nov 18, 2025 · Backend Development

Building a Real‑Time Device Monitoring Dashboard with WebSocket and Spring Boot

This tutorial walks through creating a fire‑equipment inspection system where the backend Spring Boot service pushes abnormal device alerts via WebSocket to a Vue‑based front‑end that visualizes device status on a map, covering project setup, WebSocket configuration, client‑side handling, and end‑to‑end testing.

JavaScriptSpring BootVue.js
0 likes · 10 min read
Building a Real‑Time Device Monitoring Dashboard with WebSocket and Spring Boot
Code Mala Tang
Code Mala Tang
Nov 16, 2025 · Frontend Development

How NavigateEvent.intercept() Simplifies SPA Routing and Improves Performance

This article explains how the new NavigateEvent API replaces scattered click, submit, and popstate listeners with a single, centralized navigation handler, showing practical code examples, interception logic, cancellation signals, scroll control, and when to adopt or avoid it in modern web apps.

InterceptJavaScriptNavigation API
0 likes · 9 min read
How NavigateEvent.intercept() Simplifies SPA Routing and Improves Performance
Deepin Linux
Deepin Linux
Nov 16, 2025 · Fundamentals

Unlock Asynchronous Power: Master Callback Functions in 3 Minutes

This article explains what callback functions are, how they enable asynchronous programming across languages, demonstrates their implementation with JavaScript, C/C++, Python and HTML examples, and discusses practical use‑cases, advantages, pitfalls like callback hell, and modern alternatives such as Promises and async/await.

AsynchronousC++Event-driven
0 likes · 23 min read
Unlock Asynchronous Power: Master Callback Functions in 3 Minutes
JavaScript
JavaScript
Nov 16, 2025 · Frontend Development

Boost JavaScript Deserialization: Overcome JSON.parse Limits and Performance Bottlenecks

This article explains how JSON.parse and JSON.stringify work, outlines their performance, type, and security limitations, and presents practical strategies such as reviver functions, streaming parsers, binary formats, Web Workers, and incremental loading to achieve faster and safer JavaScript deserialization.

Binary FormatDeserializationJSON
0 likes · 6 min read
Boost JavaScript Deserialization: Overcome JSON.parse Limits and Performance Bottlenecks
JavaScript
JavaScript
Nov 14, 2025 · Frontend Development

Can You Replace try…catch with a Go‑Style Helper in JavaScript?

This article explains how async/await simplifies asynchronous JavaScript but still forces repetitive try…catch blocks, and introduces a Go‑inspired helper function that returns an [error, data] tuple to flatten error handling, improve readability, and work seamlessly with Promise.all.

Code RefactoringError HandlingGo style
0 likes · 8 min read
Can You Replace try…catch with a Go‑Style Helper in JavaScript?
JavaScript
JavaScript
Nov 11, 2025 · Frontend Development

Unlock ES2025: How Pattern Matching, Pipelines, and Records Transform JavaScript

ES2025 introduces powerful new syntax—pattern matching, enhanced array destructuring, pipeline operators, native immutable Records and Tuples, a Decimal type, improved error handling, and Temporal API sugar—making JavaScript code more concise, readable, type‑safe, and performant, with practical examples and usage patterns for developers.

DecimalES2025JavaScript
0 likes · 7 min read
Unlock ES2025: How Pattern Matching, Pipelines, and Records Transform JavaScript
Open Source Tech Hub
Open Source Tech Hub
Nov 8, 2025 · Frontend Development

How to Build Real‑Time Chat in WeChat Mini‑Programs Using WebSocket

This guide explains how to implement live‑room features such as comments, joining, leaving, likes, follows, and product updates in a WeChat mini‑program by using WebSocket for full‑duplex communication, covering the handshake process, API usage, message handling logic, and heartbeat‑based reconnection strategies.

JavaScriptWeChat Mini ProgramWebSocket
0 likes · 13 min read
How to Build Real‑Time Chat in WeChat Mini‑Programs Using WebSocket
FunTester
FunTester
Nov 6, 2025 · Frontend Development

Mastering Event Bus: Decoupled Communication in Frontend Development

This article explains the concept of an Event Bus, when to apply it in frontend projects, provides a full JavaScript implementation, demonstrates its use with a login scenario, and outlines best practices and pitfalls for maintaining clean, decoupled code.

DecouplingJavaScriptPublish-Subscribe
0 likes · 11 min read
Mastering Event Bus: Decoupled Communication in Frontend Development
JavaScript
JavaScript
Nov 5, 2025 · Frontend Development

Beyond if‑else: 9 Cleaner JavaScript Patterns for Conditional Logic

This article presents nine practical JavaScript techniques—ranging from object maps and Array.includes to ternary chains, logical operators, switch statements, Proxy, functional patterns, state machines, and decorators—that replace verbose if‑else statements with cleaner, more maintainable code.

Code RefactoringConditional LogicJavaScript
0 likes · 3 min read
Beyond if‑else: 9 Cleaner JavaScript Patterns for Conditional Logic
FunTester
FunTester
Nov 4, 2025 · Frontend Development

Mastering DOM Events: From Basics to Advanced Event Flow

This article explains the fundamentals of DOM events, compares three ways to attach listeners, shows how to add and remove handlers, details event bubbling and capturing phases, and provides practical tips and common pitfalls for robust frontend interaction design.

DOMEvent PropagationJavaScript
0 likes · 8 min read
Mastering DOM Events: From Basics to Advanced Event Flow
Code Mala Tang
Code Mala Tang
Nov 1, 2025 · Frontend Development

Unlock JavaScript’s Static Initialization Blocks: Boost Your Custom Elements

This article explains JavaScript static initialization blocks, shows how they simplify shared resources and custom element setup, provides practical code examples, discusses benefits, browser compatibility issues, and offers guidance on when and how to use them effectively.

JavaScriptWeb Developmentcustom elements
0 likes · 6 min read
Unlock JavaScript’s Static Initialization Blocks: Boost Your Custom Elements
JavaScript
JavaScript
Oct 31, 2025 · Frontend Development

Why forEach Is Losing Favor: Switch to for...of for Safer Async Loops

The article explains why Array.prototype.forEach is increasingly discouraged in modern JavaScript, especially when combined with async/await, and shows how replacing it with a for...of loop resolves asynchronous pitfalls, enables proper flow‑control statements, and improves code clarity.

/loopJavaScriptarray methods
0 likes · 5 min read
Why forEach Is Losing Favor: Switch to for...of for Safer Async Loops
JavaScript
JavaScript
Oct 30, 2025 · Frontend Development

Unlock Hidden Performance: How Web Workers Supercharge Frontend Apps

Web Workers, an often‑overlooked browser API, enable JavaScript to run heavy computations in background threads, freeing the main UI thread, boosting multi‑core utilization, improving memory management, and powering use‑cases such as big data processing, image filtering, AI inference, and encryption, dramatically enhancing frontend performance.

JavaScriptWeb Workersfrontend performance
0 likes · 5 min read
Unlock Hidden Performance: How Web Workers Supercharge Frontend Apps
Dunmao Tech Hub
Dunmao Tech Hub
Oct 30, 2025 · Frontend Development

How to Build a WebRTC Voice Call App with PeerJS: Step‑by‑Step Guide

This guide walks through setting up a PeerJS‑based P2P voice call system, covering browser compatibility, Node environment preparation, installing and running the peerjs‑server (via npm or Docker), initializing the Peer object, handling connections, making and receiving calls, and customizing Peer IDs, with full code snippets and screenshots.

JavaScriptNode.jsP2P
0 likes · 8 min read
How to Build a WebRTC Voice Call App with PeerJS: Step‑by‑Step Guide
JavaScript
JavaScript
Oct 29, 2025 · Frontend Development

Why Traditional JavaScript for Loops Are Losing Ground—and What to Use Instead

While the classic JavaScript for loop remains fundamental, modern ECMAScript features and array methods like forEach, map, filter, and newer constructs such as for…of and the spread operator offer more readable, functional, and often more efficient alternatives, each suited to different scenarios.

JavaScriptarray methodses6
0 likes · 7 min read
Why Traditional JavaScript for Loops Are Losing Ground—and What to Use Instead
Code Mala Tang
Code Mala Tang
Oct 29, 2025 · Frontend Development

Implementing Robust Undo/Redo in Fabric.js Canvas Editors

This article explains how to add undo and redo functionality to a Fabric.js canvas editor by maintaining a history stack, provides full source code, discusses performance considerations, and compares alternative approaches such as the Command Pattern and object‑level diff snapshots.

CanvasFabric.jsJavaScript
0 likes · 8 min read
Implementing Robust Undo/Redo in Fabric.js Canvas Editors
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 29, 2025 · Frontend Development

Mastering the visibilitychange Event: Detect and React to Page Visibility Changes

This article explains the native visibilitychange event of the Page Visibility API, its core properties document.hidden and document.visibilityState, provides complete JavaScript examples for listening and removing the event, discusses practical use cases such as media control, request throttling, form saving, outlines browser compatibility, and highlights limitations and best‑practice considerations.

JavaScriptPage Visibility APIWeb Performance
0 likes · 16 min read
Mastering the visibilitychange Event: Detect and React to Page Visibility Changes