Tagged articles

JavaScript

2473 articles · Page 3 of 25
JavaScript
JavaScript
Aug 30, 2025 · Frontend Development

Why Fetch + AbortController Is Replacing Axios for Modern Web Apps

This article explains how the native fetch API, combined with the AbortController Web API, now offers zero‑dependency, cancellable, and timeout‑capable HTTP requests, effectively addressing the shortcomings that once made Axios the default choice for JavaScript developers.

AbortControllerJavaScriptfetch
0 likes · 5 min read
Why Fetch + AbortController Is Replacing Axios for Modern Web Apps
JavaScript
JavaScript
Aug 29, 2025 · Frontend Development

Why encodeURIComponent Is Obsolete: Master URLSearchParams for Safer URLs

The article explains the pitfalls of manually concatenating URLs with encodeURIComponent, introduces the modern URL and URLSearchParams APIs, and demonstrates how these objects simplify encoding, adding, modifying, and deleting query parameters safely and cleanly in both browsers and Node.js environments.

JavaScriptURLURLSearchParams
0 likes · 7 min read
Why encodeURIComponent Is Obsolete: Master URLSearchParams for Safer URLs
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 29, 2025 · Frontend Development

How I Built a One‑Click HTML Table Generator for Complex Forms

A boss’s urgent request to create a multi‑row, multi‑column registration form sparked a deep dive into layout techniques, leading to the development of zyTableGenerator—a lightweight frontend tool that simplifies table creation, handles merges, styles, and exports clean HTML with a single click.

HTMLJavaScriptgrid layout
0 likes · 8 min read
How I Built a One‑Click HTML Table Generator for Complex Forms
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 27, 2025 · Frontend Development

How to Build a Versatile Canvas Library with Edge Detection, Video Capture, and Particle Effects

Discover how to create a powerful, all‑in‑one Canvas toolkit that includes high‑performance edge detection, Web‑Worker‑accelerated video frame capture, particle‑based fade‑out effects, and a feature‑rich online drawing board, complete with undo/redo, layer management, and GPU‑smooth zoom and drag.

CanvasImageProcessingJavaScript
0 likes · 27 min read
How to Build a Versatile Canvas Library with Edge Detection, Video Capture, and Particle Effects
FunTester
FunTester
Aug 24, 2025 · Frontend Development

How to Build a Powerful Chrome Tab Manager Extension with FunTester

This article details the design and implementation of FunTester, a Chrome extension that provides a sidebar for comprehensive tab management, including domain grouping, theme switching, tab actions, custom right‑click menus, dynamic icons, and real‑time status updates, all illustrated with JavaScript code examples.

Chrome ExtensionContext MenuJavaScript
0 likes · 10 min read
How to Build a Powerful Chrome Tab Manager Extension with FunTester
JavaScript
JavaScript
Aug 24, 2025 · Frontend Development

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

The article explains why many large‑scale front‑end teams discourage the use of JavaScript's `export default` in favor of named exports, citing benefits for naming consistency, tree‑shaking efficiency, and simpler module re‑exports in long‑term projects.

ES ModulesJavaScriptTree-shaking
0 likes · 4 min read
Why Top Frontend Teams Ban `export default` and Prefer Named Exports
Code Mala Tang
Code Mala Tang
Aug 23, 2025 · Frontend Development

Why ESM Is Overtaking CommonJS: A Deep Dive into JavaScript Modules

This article traces the history and reasons behind JavaScript’s module formats—from early AMD and UMD to Node’s CommonJS and the modern ECMAScript modules—explains migration challenges, tooling, testing nuances, and best practices for managing dual builds in contemporary projects.

CommonJSESMJavaScript
0 likes · 22 min read
Why ESM Is Overtaking CommonJS: A Deep Dive into JavaScript Modules
php Courses
php Courses
Aug 22, 2025 · Frontend Development

7 Upcoming JavaScript Features That Will Feel Familiar to PHP Developers

JavaScript is introducing seven new language features—pipe operator, property shorthand, nullish coalescing, optional chaining, tuples, pattern matching, and enums—that echo familiar PHP constructs, making data handling, default values, and conditional logic more intuitive for developers transitioning between the two languages.

JavaScriptLanguage FeaturesPHP
0 likes · 6 min read
7 Upcoming JavaScript Features That Will Feel Familiar to PHP Developers
JavaScript
JavaScript
Aug 21, 2025 · Frontend Development

Avoid UI Crashes: Mastering Promise.all vs. Promise.allSettled in JavaScript

When fetching multiple APIs concurrently, Promise.all aborts all results if any request fails, leading to poor user experience, whereas Promise.allSettled returns outcomes for every promise without rejecting, allowing graceful handling of partial failures and more robust UI rendering.

JavaScriptPromisefrontend
0 likes · 5 min read
Avoid UI Crashes: Mastering Promise.all vs. Promise.allSettled in JavaScript
JavaScript
JavaScript
Aug 19, 2025 · Frontend Development

Why Object.assign Can Break Your React Apps and How Spread Syntax Saves You

This article explains the hidden pitfalls of JavaScript's Object.assign—mutating the target object and performing only shallow copies—illustrates the bugs they can cause in modern frontend frameworks, and shows how the spread operator (or structuredClone) provides a safer, more readable alternative.

Immutable DataJavaScriptObject.assign
0 likes · 5 min read
Why Object.assign Can Break Your React Apps and How Spread Syntax Saves You
JavaScript
JavaScript
Aug 18, 2025 · Frontend Development

Unlock JavaScript’s Hidden APIs: URLSearchParams, structuredClone & Object.groupBy

Learn how modern browsers’ built-in JavaScript APIs—URLSearchParams for effortless query parsing, structuredClone for reliable deep cloning, and the new Object.groupBy method for concise array grouping—replace verbose legacy code with clean, robust one-liners, boosting readability and development speed.

Array groupingJavaScriptObject.groupBy
0 likes · 5 min read
Unlock JavaScript’s Hidden APIs: URLSearchParams, structuredClone & Object.groupBy
Laravel Tech Community
Laravel Tech Community
Aug 16, 2025 · Frontend Development

What’s New in jQuery 4.0.0 RC1? Key Changes and Slim Build Overview

jQuery 4.0.0 Release Candidate 1 introduces major updates such as dropping legacy browser support, removing deprecated APIs, adding a slim build without AJAX and animation, and improving event handling and modern browser compatibility, inviting developers to test before the final release.

JavaScriptSlim BuildWeb Development
0 likes · 3 min read
What’s New in jQuery 4.0.0 RC1? Key Changes and Slim Build Overview
Full-Stack Cultivation Path
Full-Stack Cultivation Path
Aug 1, 2025 · Frontend Development

ECharts 6.0 Released: A Complete Visual and Functional Overhaul

Version 6.0 of the open‑source ECharts library introduces a sweeping visual redesign, dynamic theme switching, intelligent scatter jitter, new chord diagrams, axis breakpoints, matrix coordinate systems, label overflow protection, upgraded mark layers, and stronger custom series, making both new and existing projects more powerful and easier to develop.

Chart LibraryEChartsJavaScript
0 likes · 7 min read
ECharts 6.0 Released: A Complete Visual and Functional Overhaul
JavaScript
JavaScript
Jul 23, 2025 · Frontend Development

Master JSONP: Build a Cross‑Domain Hack Before CORS Era

This article explains the historical background of JSONP as a clever workaround for same‑origin restrictions, walks through its core concept and dialogue, provides a complete vanilla JavaScript implementation with usage examples, and discusses its limitations compared to modern CORS solutions.

CORSCross-OriginJSONP
0 likes · 10 min read
Master JSONP: Build a Cross‑Domain Hack Before CORS Era
JavaScript
JavaScript
Jul 22, 2025 · Frontend Development

How ShadowRealm Can Safely Isolate Untrusted JavaScript in Your Web Apps

This article explains the security risks of integrating third‑party scripts, why traditional isolation methods like iframes, Web Workers, and eval fall short, and introduces the upcoming ShadowRealm proposal with its lightweight, synchronous, and fully isolated JavaScript global environment and simple API.

JavaScriptSecurityShadowRealm
0 likes · 4 min read
How ShadowRealm Can Safely Isolate Untrusted JavaScript in Your Web Apps
JavaScript
JavaScript
Jul 21, 2025 · Frontend Development

Can Import Maps Eliminate the Need for Build Tools?

This article explains how Import Maps let browsers understand bare module specifiers, offering a native alternative to traditional bundlers like Webpack, while still acknowledging the essential roles of build tools in transpilation, optimization, and resource processing.

Build ToolsImport MapsJavaScript
0 likes · 6 min read
Can Import Maps Eliminate the Need for Build Tools?
JavaScript
JavaScript
Jul 20, 2025 · Frontend Development

What Does an async Function Actually Return? Uncover the Promise Mechanics

This article explains how async functions always return a Promise—whether they return a plain value, an explicit Promise, throw an error, or omit a return—detailing the automatic wrapping, unwrapping, and error handling mechanisms that underpin async/await in JavaScript.

Async/AwaitJavaScriptPromise
0 likes · 6 min read
What Does an async Function Actually Return? Uncover the Promise Mechanics
JavaScript
JavaScript
Jul 19, 2025 · Frontend Development

How to Reliably Send Data When Users Close a Page: sendBeacon vs fetch keepalive

This article explains why traditional fetch or XMLHttpRequest calls often fail during page unload, and demonstrates two modern browser APIs—navigator.sendBeacon and fetch with keepalive:true—that reliably transmit analytics or draft data without blocking the user experience.

JavaScriptWeb APIfetch keepalive
0 likes · 7 min read
How to Reliably Send Data When Users Close a Page: sendBeacon vs fetch keepalive
JavaScript
JavaScript
Jul 18, 2025 · Frontend Development

Why Does async/await Appear to Block Page Rendering? The Real Reason Explained

This article explains why using async/await inside a loop can make a page seem frozen, clarifies that await itself does not block the main thread, and shows how to replace serial awaits with Promise.all and other concurrency tools for truly non‑blocking UI updates.

Async/AwaitJavaScriptPromise
0 likes · 8 min read
Why Does async/await Appear to Block Page Rendering? The Real Reason Explained
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jul 18, 2025 · Frontend Development

5 Compelling Reasons to Adopt TypeScript Over JavaScript

This article explains why many large‑scale frontend projects are switching from JavaScript to TypeScript, highlighting how static typing, early error detection, type inference, better team collaboration, and IDE support improve code safety, development efficiency, and overall developer experience.

IDE integrationJavaScriptTypeScript
0 likes · 7 min read
5 Compelling Reasons to Adopt TypeScript Over JavaScript
php Courses
php Courses
Jul 17, 2025 · Frontend Development

How to Dynamically Adjust PHP Page Layout Based on User Scroll Speed

This guide explains how to capture a visitor's scroll speed with JavaScript, send the data to a PHP backend, and dynamically modify page layout in real time to improve user experience, covering implementation details, performance tips, and privacy considerations.

JavaScriptPHPUX
0 likes · 6 min read
How to Dynamically Adjust PHP Page Layout Based on User Scroll Speed
JavaScript
JavaScript
Jul 16, 2025 · Frontend Development

Why JavaScript’s Date Is a Nightmare and How to Fix It

JavaScript’s native Date object is fraught with inconsistencies—ambiguous parsing, mutable instances, zero‑based months, and no built‑in formatting—leading to bugs across browsers and time zones, so developers should adopt immutable third‑party libraries like Day.js or the upcoming Temporal API for reliable date handling.

Day.jsJavaScriptdate
0 likes · 8 min read
Why JavaScript’s Date Is a Nightmare and How to Fix It
IT Services Circle
IT Services Circle
Jul 15, 2025 · Backend Development

How QuickJS Brings Modern JavaScript to Nginx via njs

This article explores how the new QuickJS engine enables full‑featured ES2023 JavaScript within Nginx using the njs module, allowing developers to write modern async code, import/export modules, and implement complex routing and security logic directly in the web server configuration.

JavaScriptQuickJSServer configuration
0 likes · 7 min read
How QuickJS Brings Modern JavaScript to Nginx via njs
JavaScript
JavaScript
Jul 14, 2025 · Frontend Development

Why Timestamp+Random Fails and How crypto.randomUUID() Guarantees True Uniqueness

This article explains common pitfalls of generating unique IDs with timestamps and Math.random(), shows why naive counters are unreliable in browsers, and demonstrates the robust, standards‑based solution using the built‑in crypto.randomUUID() method, which offers cryptographic security and near‑zero collision risk.

JavaScriptUnique IDcrypto
0 likes · 5 min read
Why Timestamp+Random Fails and How crypto.randomUUID() Guarantees True Uniqueness
JavaScript
JavaScript
Jul 13, 2025 · Frontend Development

Boost React State Updates with the New Array.prototype.with() Method

This article explains why mutating state in React or Vue breaks predictability, compares traditional immutable update techniques like map() and spread syntax, and demonstrates how the native Array.prototype.with() method provides a concise, high‑performance, immutable way to replace array elements in a single step.

ArrayImmutabilityJavaScript
0 likes · 5 min read
Boost React State Updates with the New Array.prototype.with() Method
JavaScript
JavaScript
Jul 12, 2025 · Frontend Development

How to Build a Browser Screen Recorder with the MediaRecorder API

This guide explains how to use the native MediaRecorder API to capture screen, audio, or canvas streams in the browser, walk through a three‑step implementation—getting the stream, recording it, and handling the output—and shares best practices for compatibility, MIME types, user permissions, resource cleanup, and performance.

BrowserJavaScriptMediaRecorder
0 likes · 7 min read
How to Build a Browser Screen Recorder with the MediaRecorder API
JavaScript
JavaScript
Jul 11, 2025 · Frontend Development

Make JavaScript Polling Smarter: From setInterval to Adaptive Strategies

This article examines the inefficiencies of traditional setInterval polling and presents three intelligent alternatives—using recursive setTimeout, applying exponential backoff, and leveraging the Page Visibility API—while providing code samples and highlighting their benefits over naive polling.

JavaScriptPage Visibility APIPolling
0 likes · 6 min read
Make JavaScript Polling Smarter: From setInterval to Adaptive Strategies
21CTO
21CTO
Jul 6, 2025 · Frontend Development

30 Years of JavaScript: 10 Milestones That Shaped the Web

From Brendan Eich’s ten‑day creation of Mocha in 1995 to the rise of WebAssembly at the edge in 2022, this article chronicles ten pivotal JavaScript milestones—including ECMAScript, Ajax, Node.js, npm, React, TypeScript, and more—that transformed the language into the web’s dominant programming force.

ECMAScriptJavaScriptNode.js
0 likes · 11 min read
30 Years of JavaScript: 10 Milestones That Shaped the Web
JavaScript
JavaScript
Jul 5, 2025 · Fundamentals

Why Do Top JavaScript Libraries Use void 0 Instead of undefined?

This article explains the historical reason why JavaScript's undefined is not a keyword, how the void operator reliably returns undefined, and why high‑quality libraries prefer the concise void 0 syntax for safety and minification.

Code safetyJavaScriptlanguage fundamentals
0 likes · 5 min read
Why Do Top JavaScript Libraries Use void 0 Instead of undefined?
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jul 5, 2025 · Fundamentals

Master the 2025 Frontend & Full‑Stack Knowledge System: Server Basics to DevOps

This comprehensive guide outlines a 2025 front‑end and full‑stack knowledge system, covering server fundamentals, JavaScript runtimes, databases, storage, cloud services, Docker, serverless, micro‑services, major frameworks (React, Vue, Angular, etc.), mobile development, PC clients, engineering tooling, CI/CD, testing, monitoring, security, performance optimization, project management, and practical non‑technical advice.

DevOpsJavaScriptReAct
0 likes · 23 min read
Master the 2025 Frontend & Full‑Stack Knowledge System: Server Basics to DevOps
JavaScript
JavaScript
Jul 4, 2025 · Frontend Development

Boost JavaScript Array Performance: Avoid Common Pitfalls and Optimize Loops

Learn how typical JavaScript array methods like map, filter, and reduce can cause hidden performance bottlenecks on large datasets, and discover practical optimizations—single-pass loops, avoiding unshift/shift, and using Set or Map for fast lookups—to keep your UI responsive.

Array PerformanceJavaScriptfrontend development
0 likes · 7 min read
Boost JavaScript Array Performance: Avoid Common Pitfalls and Optimize Loops
ByteDance Web Infra
ByteDance Web Infra
Jul 3, 2025 · Artificial Intelligence

How the New XPath‑Based Cache Boosts AI Automation Performance by 37%

The update introduces a YAML‑based cache with precise XPath targeting, dual‑validation and smart fallback, a structured API for extracting booleans, numbers, strings and queries, enhanced replay reports with custom nodes and video export, plus extensive web, Android, and reporting optimizations that dramatically improve performance and reduce report size.

AI automationJavaScriptPerformance
0 likes · 5 min read
How the New XPath‑Based Cache Boosts AI Automation Performance by 37%
JavaScript
JavaScript
Jul 2, 2025 · Frontend Development

Why try...catch Misses Promise Errors and How async/await Solves It

This article explains why a traditional try...catch block cannot catch asynchronous Promise rejections in JavaScript, illustrates the sync‑async mismatch with a food‑delivery analogy, and shows how using async/await or .catch() correctly handles such errors.

Async/AwaitJavaScriptPromise
0 likes · 6 min read
Why try...catch Misses Promise Errors and How async/await Solves It
JavaScript
JavaScript
Jul 1, 2025 · Frontend Development

How to Prevent Request Overload with a Simple Frontend Request Queue

When a page needs to fire many simultaneous requests—such as loading ten resources at once or uploading dozens of files—the browser can freeze and the server can be overwhelmed, so using a request queue to limit concurrency keeps both responsive and stable.

Async ProgrammingConcurrency ControlFrontend Optimization
0 likes · 7 min read
How to Prevent Request Overload with a Simple Frontend Request Queue
Open Source Tech Hub
Open Source Tech Hub
Jun 30, 2025 · Frontend Development

What’s New in Apache ECharts 6.0? 12 Major Upgrades Unveiled

Apache ECharts 6.0 beta introduces twelve major upgrades—including a new default theme, dynamic theme switching, dark‑mode support, new chart types like chord and beeswarm, a matrix coordinate system, reusable custom series, and axis‑label optimizations—while providing migration guidance and breaking‑change notes for developers.

Apache EChartsChart LibraryJavaScript
0 likes · 15 min read
What’s New in Apache ECharts 6.0? 12 Major Upgrades Unveiled
JavaScript
JavaScript
Jun 30, 2025 · Frontend Development

Why forEach + async/await Breaks and How to Properly Await in JavaScript

This article explains why combining forEach with async/await leads to unexpected immediate execution, analyzes the underlying behavior of forEach, and presents three reliable patterns—sequential for...of loops, parallel Promise.all with map, and traditional for loops—to correctly handle asynchronous operations in JavaScript.

Async/AwaitJavaScriptPromise
0 likes · 7 min read
Why forEach + async/await Breaks and How to Properly Await in JavaScript
ITPUB
ITPUB
Jun 27, 2025 · Fundamentals

Why Does num === num - 1 Sometimes Return True in JavaScript?

This article explains the special cases where the JavaScript expression num === num - 1 evaluates to true, covering Infinity, numbers beyond the safe integer range, how to detect unsafe values, and practical solutions using Number.isSafeInteger, BigInt, bignumber.js, and a custom big‑integer addition implementation.

Arbitrary PrecisionBigIntInfinity
0 likes · 8 min read
Why Does num === num - 1 Sometimes Return True in JavaScript?
JavaScript
JavaScript
Jun 27, 2025 · Frontend Development

How setTimeout(fn, 0) Unblocks the Main Thread and Boosts UI Responsiveness

Using setTimeout(fn, 0) tricks the JavaScript event loop to downgrade heavy tasks to asynchronous callbacks, freeing the main thread for UI rendering and user interactions, and the article explains the underlying mechanics, practical examples, and modern alternatives like requestAnimationFrame, queueMicrotask, and Web Workers.

AsynchronousJavaScriptPerformance
0 likes · 10 min read
How setTimeout(fn, 0) Unblocks the Main Thread and Boosts UI Responsiveness
JavaScript
JavaScript
Jun 24, 2025 · Frontend Development

How to Replace Nested try…catch in JavaScript with Go‑Style Error Handling

This article explains how async/await simplifies asynchronous JavaScript, reveals the pitfalls of repeatedly nesting try…catch blocks, and introduces a Go‑inspired error‑handling helper that returns [error, data] tuples, enabling flatter, more readable code and seamless integration with Promise.all for concurrent operations.

Async/AwaitGo styleJavaScript
0 likes · 9 min read
How to Replace Nested try…catch in JavaScript with Go‑Style Error Handling
Full-Stack Cultivation Path
Full-Stack Cultivation Path
Jun 23, 2025 · Backend Development

Evan You Recommends the High‑Performance H3 Web Framework

H3 is a lightweight, high‑performance HTTP server framework built on Web standards that supports multiple JavaScript runtimes, offers a concise API, composable middleware and plugin systems, and is recommended by Evan You for rapid prototyping, edge computing, and small web services.

BunDenoH3
0 likes · 7 min read
Evan You Recommends the High‑Performance H3 Web Framework
Open Source Tech Hub
Open Source Tech Hub
Jun 22, 2025 · Frontend Development

Master WebSocket Basics: Handshake, Protocol, and a Live JavaScript Demo

This tutorial explains the WebSocket protocol, shows the exact client handshake request and server response, and provides a concise JavaScript example that opens a connection, sends a message, receives a reply, and closes the socket, illustrating real‑time full‑duplex communication.

JavaScriptprotocolreal-time
0 likes · 2 min read
Master WebSocket Basics: Handshake, Protocol, and a Live JavaScript Demo
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 19, 2025 · Information Security

How to Generate Reliable Browser Fingerprints with Navigator, Canvas, and WebGL

This article explains what browser fingerprinting is, outlines common techniques such as Navigator, Canvas, and WebGL fingerprints, and provides complete JavaScript examples that collect device information and generate stable hashes, helping developers understand and implement device‑unique identifiers for identity verification.

Browser FingerprintingJavaScriptcanvas fingerprint
0 likes · 11 min read
How to Generate Reliable Browser Fingerprints with Navigator, Canvas, and WebGL
JavaScript
JavaScript
Jun 17, 2025 · Frontend Development

When to Use Arrow Functions vs Traditional Functions in JavaScript

This article explains the fundamental differences between arrow functions and traditional functions in JavaScript, shows five common scenarios where using a regular function is essential, and highlights the best situations to prefer arrow functions for concise, lexical this binding.

Arrow FunctionsJavaScriptbest practices
0 likes · 9 min read
When to Use Arrow Functions vs Traditional Functions in JavaScript
JavaScript
JavaScript
Jun 16, 2025 · Frontend Development

5 Hidden JavaScript Pitfalls That Can Break Your Code

This article uncovers five subtle JavaScript pitfalls—including async/await errors, Promise.all fail‑fast behavior, array mutation during iteration, closure‑induced memory leaks, and shallow versus deep copying—providing clear examples and best‑practice solutions to write more robust, predictable code.

Async/AwaitJavaScriptPromise
0 likes · 10 min read
5 Hidden JavaScript Pitfalls That Can Break Your Code
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 15, 2025 · Frontend Development

Master Cross‑Tab Communication: BroadcastChannel vs localStorage in JavaScript

Learn how to synchronize data across multiple browser tabs using the native BroadcastChannel API and the fallback localStorage + storage event, with step‑by‑step code examples, usage scenarios, feature comparisons, compatibility notes, and a reusable TabMessenger class for seamless inter‑tab messaging.

BroadcastChannelJavaScriptWeb API
0 likes · 9 min read
Master Cross‑Tab Communication: BroadcastChannel vs localStorage in JavaScript
Java Web Project
Java Web Project
Jun 14, 2025 · Backend Development

When to Choose SSE, WebSocket, or Polling: A Practical Comparison

This article examines three server‑to‑client push techniques—polling, WebSocket, and Server‑Sent Events (SSE)—by detailing their mechanisms, listing concrete drawbacks and advantages, comparing them side‑by‑side, and providing step‑by‑step Node.js demos for real‑time dashboards and chat scenarios.

ExpressJavaScriptNode.js
0 likes · 13 min read
When to Choose SSE, WebSocket, or Polling: A Practical Comparison
php Courses
php Courses
Jun 13, 2025 · Backend Development

How to Build a Real-Time Camera Filter App with PHP and JavaScript

This tutorial walks you through installing PHP‑GD and Video4Linux, creating a web page that previews the webcam using getUserMedia, adding a filter selector, and processing the image on the server with PHP‑GD to apply real‑time visual effects.

GD libraryJavaScriptReal-time Filters
0 likes · 9 min read
How to Build a Real-Time Camera Filter App with PHP and JavaScript
JavaScript
JavaScript
Jun 13, 2025 · Frontend Development

How to Cancel Ongoing Promises in JavaScript with AbortController

This article explains why native JavaScript Promises cannot be cancelled, introduces the AbortController API as the standard solution, and provides practical examples for using it with fetch and custom asynchronous functions to safely abort operations and improve application robustness.

AbortControllerAsync/AwaitJavaScript
0 likes · 6 min read
How to Cancel Ongoing Promises in JavaScript with AbortController
Architect's Guide
Architect's Guide
Jun 12, 2025 · Backend Development

How to Build QR Code Login with WebSocket in Spring Boot

This tutorial walks through designing a QR‑code login flow, defining a token table, outlining client and server roles, implementing two REST endpoints, configuring Spring Boot WebSocket support, and handling real‑time login notifications with Java and JavaScript code examples.

JavaJavaScriptQR Code Login
0 likes · 13 min read
How to Build QR Code Login with WebSocket in Spring Boot
Code Mala Tang
Code Mala Tang
Jun 10, 2025 · Frontend Development

7 Powerful Ways to Compare JavaScript Arrays (Including Deep Equality)

This guide explains eight practical techniques—from strict reference checks to deep recursive comparisons and Lodash utilities—for accurately comparing JavaScript arrays, handling simple values, nested structures, unordered elements, and finding differences or common items.

JavaScriptarray comparisondeep equality
0 likes · 7 min read
7 Powerful Ways to Compare JavaScript Arrays (Including Deep Equality)
Software Development Quality
Software Development Quality
Jun 10, 2025 · Frontend Development

How Midscene.js Leverages Multimodal AI for Zero‑Code UI Automation

Midscene.js, an open‑source UI automation framework from ByteDance’s Web Infra team, combines multimodal AI inference with Chrome extensions, YAML scripts, and JavaScript SDKs to enable zero‑code testing across Web, Android, Playwright, and Puppeteer, offering key interfaces for actions, queries, and assertions.

JavaScriptMultimodal AIPlaywright
0 likes · 8 min read
How Midscene.js Leverages Multimodal AI for Zero‑Code UI Automation
JavaScript
JavaScript
Jun 10, 2025 · Frontend Development

What JavaScript APIs Are Deprecated and Which Modern Alternatives Should You Use?

This article outlines ten JavaScript APIs that have been deprecated or discouraged—such as document.execCommand, escape, XMLHttpRequest sync mode, and performance.timing—explaining why they’re problematic and providing modern, safer alternatives like the Clipboard API, fetch, PerformanceNavigationTiming, and standardized string methods.

Deprecated APIsJavaScriptWeb Development
0 likes · 13 min read
What JavaScript APIs Are Deprecated and Which Modern Alternatives Should You Use?
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 10, 2025 · Game Development

Build a Crossy‑Road Style 3D Game with Three.js – A Step‑by‑Step Guide

This tutorial walks you through creating a lightweight, child‑friendly 3D Crossy Road‑style game using Three.js, covering scene setup, metadata‑driven terrain generation, asset loading, player movement queues, dynamic collision detection, UI communication, and deployment tips, all illustrated with code snippets and screenshots.

3DCollision DetectionJavaScript
0 likes · 30 min read
Build a Crossy‑Road Style 3D Game with Three.js – A Step‑by‑Step Guide
Subtle Storm
Subtle Storm
Jun 6, 2025 · Frontend Development

Step-by-Step Guide to Building a Chrome Extension

This guide walks through building a Chrome extension from scratch, covering manifest configuration, UI pages, content and background scripts, required permissions, development tools, debugging techniques, packaging, publishing to the Chrome Web Store, and common feature implementations such as page interaction, messaging, and request interception.

Chrome ExtensionChrome Web StoreContent Script
0 likes · 7 min read
Step-by-Step Guide to Building a Chrome Extension
JavaScript
JavaScript
Jun 6, 2025 · Frontend Development

Why slice() Beats substr() and substring() in Modern JavaScript

This article explains the three JavaScript string extraction methods—substr(), substring() and slice()—highlighting why slice() is now preferred, detailing deprecation reasons for substr(), comparing behavior, parameter handling, and consistency, and summarizing its advantages over the other methods.

JavaScriptString MethodsSubstring
0 likes · 4 min read
Why slice() Beats substr() and substring() in Modern JavaScript
JavaScript
JavaScript
Jun 3, 2025 · Frontend Development

Why IIFEs Are Obsolete: Embrace Block Scope with let/const

This article explains how the traditional IIFE pattern, once essential for creating private scopes in JavaScript, has been superseded by modern block‑level scope using let and const, offering cleaner syntax, better performance, easier debugging, and seamless integration with ES6+ features.

IIFEJavaScriptblock scope
0 likes · 5 min read
Why IIFEs Are Obsolete: Embrace Block Scope with let/const
Code Mala Tang
Code Mala Tang
Jun 2, 2025 · Backend Development

Why Node.js 24 Is a Game-Changer for Backend Development

Node.js 24 introduces native fetch support, a faster V8 engine, enhanced module interoperability, full Web Streams API, and numerous ecosystem upgrades, making it a compelling upgrade for developers seeking modern, high‑performance server‑side JavaScript.

JavaScriptNode.jsPerformance
0 likes · 7 min read
Why Node.js 24 Is a Game-Changer for Backend Development
JavaScript
JavaScript
May 30, 2025 · Frontend Development

Boost JavaScript Performance: Eliminate Unnecessary else Statements

This article explains how removing unnecessary else clauses and using early return guard statements can streamline JavaScript functions, reduce nesting, cut condition checks, and improve execution speed, illustrated with before-and-after code examples and best‑practice guidelines for loops and async operations.

Code RefactoringEarly ReturnJavaScript
0 likes · 3 min read
Boost JavaScript Performance: Eliminate Unnecessary else Statements
JavaScript
JavaScript
May 29, 2025 · Frontend Development

Master JavaScript Optional Chaining and Nullish Coalescing for Cleaner Code

This article explains how the optional‑chaining (?.) and nullish‑coalescing (??) operators simplify deep object access and default‑value handling in JavaScript, offering concise, safe alternatives to verbose if‑else checks, try‑catch blocks, and the logical‑or operator.

JavaScriptcode cleanlinessfrontend
0 likes · 3 min read
Master JavaScript Optional Chaining and Nullish Coalescing for Cleaner Code
JavaScript
JavaScript
May 28, 2025 · Frontend Development

Simplify JavaScript Resource Management with the New ‘using’ Declaration

This article explains why the traditional try‑finally pattern for resource handling in JavaScript is verbose and error‑prone, and introduces the upcoming ECMAScript ‘using’ declaration that provides automatic, scope‑based cleanup, supports async resources, and makes code cleaner and safer.

ECMAScriptJavaScripttry-finally
0 likes · 2 min read
Simplify JavaScript Resource Management with the New ‘using’ Declaration
JavaScript
JavaScript
May 27, 2025 · Frontend Development

Explore ES2025: 10 Must‑Know JavaScript Features for Front‑End Devs

The article introduces ten groundbreaking ES2025 JavaScript enhancements—including pattern matching, the pipeline operator, records and tuples, decimal type, iterator helpers, import assertions, improved error handling, Temporal API sugar, template string upgrades, and advanced destructuring—showing how they simplify code, boost readability, and improve performance for front‑end developers.

ES2025JavaScriptPattern Matching
0 likes · 8 min read
Explore ES2025: 10 Must‑Know JavaScript Features for Front‑End Devs
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 24, 2025 · Frontend Development

Bookmarklet Tutorial: Turning Any Webpage into an Editable Tool with JavaScript Bookmarks

This article explains what Bookmarklets are, how to create them in Chrome by converting a normal bookmark into a JavaScript snippet, and showcases practical use‑cases such as making pages editable, highlighting links, applying CSS filters, scrolling, and element hover highlighting, all with concise code examples.

BookmarkletJavaScriptbrowser tools
0 likes · 4 min read
Bookmarklet Tutorial: Turning Any Webpage into an Editable Tool with JavaScript Bookmarks
php Courses
php Courses
May 21, 2025 · Frontend Development

Generating Charts with Labels and Legends using ECharts and PHP API

This article demonstrates how to integrate the open‑source ECharts library with a PHP backend to dynamically generate a labeled, legend‑enabled statistical chart, covering resource inclusion, data preparation in JSON, HTML container setup, and JavaScript configuration with init() and setOption() calls.

EChartsJavaScriptPHP
0 likes · 7 min read
Generating Charts with Labels and Legends using ECharts and PHP API
JavaScript
JavaScript
May 21, 2025 · Fundamentals

Boost JavaScript Deserialization: When JSON.parse Falls Short and Faster Alternatives

While JSON.parse() and JSON.stringify() are the default methods for JavaScript data serialization, they can become performance bottlenecks and lack support for special types, so this guide explores their limitations and presents strategies such as reviver functions, streaming parsers, binary formats, Web Workers, and incremental loading to improve deserialization efficiency.

Binary FormatJavaScriptWeb Workers
0 likes · 6 min read
Boost JavaScript Deserialization: When JSON.parse Falls Short and Faster Alternatives
JavaScript
JavaScript
May 19, 2025 · Frontend Development

Mastering Promise Concurrency: Alternatives to Promise.all in JavaScript

While Promise.all is a common way to run multiple promises concurrently, it fails when any promise rejects and offers no control over the number of simultaneous executions; this article explores its limitations and presents elegant alternatives such as Promise.allSettled, simple queue implementations, and libraries like p-limit for effective concurrency management.

JavaScriptPromisePromise.allSettled
0 likes · 3 min read
Mastering Promise Concurrency: Alternatives to Promise.all in JavaScript
Top Architecture Tech Stack
Top Architecture Tech Stack
May 19, 2025 · Backend Development

Understanding Server‑Sent Events (SSE): Concepts, Comparison with Polling and WebSocket, and Practical Implementation

This article explains the scenarios where servers need to push data to clients, compares three implementation methods—polling, WebSocket, and SSE—highlights their advantages and drawbacks, and provides step‑by‑step frontend and Node.js backend demos for building a real‑time SSE connection.

ExpressJavaScriptNode.js
0 likes · 13 min read
Understanding Server‑Sent Events (SSE): Concepts, Comparison with Polling and WebSocket, and Practical Implementation
JavaScript
JavaScript
May 17, 2025 · Frontend Development

Master JavaScript Destructuring: 7 Powerful Tricks to Write Cleaner Code

Learn how JavaScript's ES6 destructuring assignment can simplify tasks such as swapping variables, extracting object properties, handling function parameters, processing arrays with rest elements, returning multiple values, using dynamic property names, and iterating over data structures, all with concise, readable code examples.

JavaScriptes6frontend
0 likes · 6 min read
Master JavaScript Destructuring: 7 Powerful Tricks to Write Cleaner Code
JavaScript
JavaScript
May 16, 2025 · Frontend Development

5 Common Async/Await Error‑Handling Pitfalls and How to Avoid Them

This article outlines five frequent async/await error‑handling mistakes developers encounter in production JavaScript code—such as missing try/catch, lost Promise errors, loop handling issues, synchronous errors, and unchecked Promise states—and provides clear, corrected patterns to prevent crashes.

Async/AwaitJavaScripterror-handling
0 likes · 5 min read
5 Common Async/Await Error‑Handling Pitfalls and How to Avoid Them