Tagged articles
2421 articles
Page 3 of 25
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.

JavaScriptcode safetylanguage 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 automationJavaScriptReporting
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.

Error HandlingJavaScriptPromise
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.

Concurrency ControlFrontend OptimizationJavaScript
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 LibraryData visualization
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.

/loopJavaScriptPromise
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.

AsynchronousJavaScriptevent loop
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.

Error HandlingGo 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.

JavaScriptReal-TimeWebSocket
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 FingerprintingJavaScriptWeb Security
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.

JavaScriptPromisearray iteration
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 libraryImage ProcessingJavaScript
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.

AbortControllerJavaScriptPromise
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.

JavaScriptQR Code LoginREST API
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.

3DGame DevelopmentJavaScript
0 likes · 30 min read
Build a Crossy‑Road Style 3D Game with Three.js – A Step‑by‑Step Guide
Architecture and Beyond
Architecture and Beyond
Jun 8, 2025 · Frontend Development

Why Server‑Sent Events (SSE) Power Real‑Time Typing Effects in AI Chat Apps

Server‑Sent Events (SSE) offer a lightweight, HTTP‑native solution for real‑time, one‑way streaming, making them ideal for AI chat applications that need a typewriter‑style response, with advantages over WebSockets such as easy implementation, automatic reconnection, broad compatibility, and simple debugging.

JavaScriptPythonReal-time Streaming
0 likes · 13 min read
Why Server‑Sent Events (SSE) Power Real‑Time Typing Effects in AI Chat Apps
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.

JavaScriptSliceString Methods
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.jsV8
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.

Code CleanlinessJavaScriptfrontend
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.

ES2025JavaScriptfrontend
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.

Data visualizationEChartsJavaScript
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 FormatJSONJavaScript
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
Cognitive Technology Team
Cognitive Technology Team
May 17, 2025 · Fundamentals

Why Your Multithreaded Code Might Misbehave: A Deep Dive into Language Memory Models

This article explains how programming‑language memory models define the guarantees for shared‑memory concurrency, illustrates common pitfalls such as ordinary‑variable problems and instruction‑reordering, and surveys the evolution of memory models in Java, C++, Rust, Swift, JavaScript and hardware architectures.

JavaScriptMemory ModelRust
0 likes · 38 min read
Why Your Multithreaded Code Might Misbehave: A Deep Dive into Language Memory Models
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.

Error HandlingJavaScriptasync/await
0 likes · 5 min read
5 Common Async/Await Error‑Handling Pitfalls and How to Avoid Them
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 14, 2025 · Frontend Development

Front‑End Large File Upload: Principles, Key Features, and Using the enlarge‑file‑upload Library

This article explains the concept of large file upload in front‑end development, outlines the problems it solves, compares it with ordinary uploads, details essential implementation steps such as chunking, parallelism, resume, and integrity checks, and demonstrates practical usage of the enlarge‑file‑upload library across vanilla JavaScript, Vue2, Vue3, and React.

JavaScriptLarge File Uploadenlarge-file-upload
0 likes · 18 min read
Front‑End Large File Upload: Principles, Key Features, and Using the enlarge‑file‑upload Library
Senior Tony
Senior Tony
May 13, 2025 · Backend Development

Master WebSocket: From Handshake to Real‑Time Messaging with Java & Spring

This tutorial explains WebSocket’s full‑duplex protocol, compares it with HTTP polling, outlines typical real‑time use cases, details the handshake and frame structure, and provides complete client‑side JavaScript and Spring Boot server examples to help developers quickly implement bi‑directional communication.

JavaScriptSpring BootWebSocket
0 likes · 9 min read
Master WebSocket: From Handshake to Real‑Time Messaging with Java & Spring
JavaScript
JavaScript
May 12, 2025 · Frontend Development

Why Vue 3 Discourages Mixins and How Composition API Solves Their Problems

The article explains why Vue 3 no longer recommends the Mixins pattern, outlines its drawbacks such as naming conflicts and unclear data origins, and demonstrates how the Composition API provides a clearer, more maintainable alternative for reusable logic.

Composition APIJavaScriptMixins
0 likes · 5 min read
Why Vue 3 Discourages Mixins and How Composition API Solves Their Problems
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 12, 2025 · Frontend Development

Understanding Browser Rendering, Event Loop, and Techniques to Avoid Page Jank When Adding Massive DOM Elements

This article explains the underlying browser mechanisms that cause page jank when creating millions of DOM elements, analyzes the event loop, rendering pipeline, macro‑ and micro‑tasks, and presents practical solutions such as setTimeout, requestAnimationFrame, MessageChannel, and requestIdleCallback to keep the UI responsive.

BrowserDOMJavaScript
0 likes · 16 min read
Understanding Browser Rendering, Event Loop, and Techniques to Avoid Page Jank When Adding Massive DOM Elements
JavaScript
JavaScript
May 10, 2025 · Frontend Development

How Tree Shaking Trims Your JavaScript Bundle for Faster Loads

This article explains what Tree Shaking is, how it leverages the static nature of ES6 modules to eliminate dead code during bundling, and provides practical tips for developers to maximize bundle size reduction and improve web performance.

ES6 ModulesJavaScriptTree Shaking
0 likes · 9 min read
How Tree Shaking Trims Your JavaScript Bundle for Faster Loads
JavaScript
JavaScript
May 9, 2025 · Frontend Development

Why Fetch API Beats Ajax: Simplify Your Web Requests Today

This article compares the traditional XMLHttpRequest‑based Ajax approach with the modern fetch API, highlighting fetch's Promise‑based syntax, streamlined configuration, flexible response handling, abort capabilities, and important considerations for cookies, error handling, and timeouts.

HTTP requestsJavaScriptPromise
0 likes · 5 min read
Why Fetch API Beats Ajax: Simplify Your Web Requests Today
JavaScript
JavaScript
May 8, 2025 · Frontend Development

Modern JavaScript: Replace the arguments Object with Rest, Default, and Destructuring

The legacy arguments object in JavaScript is deprecated due to several drawbacks, and this article explains three modern, more efficient alternatives—rest parameters, default parameters, and destructuring assignment—detailing their advantages, usage examples, and how they improve readability, performance, and flexibility in function parameter handling.

Default ParametersDestructuringFunction Parameters
0 likes · 4 min read
Modern JavaScript: Replace the arguments Object with Rest, Default, and Destructuring
JavaScript
JavaScript
May 7, 2025 · Frontend Development

Why Promise.allSettled Beats Promise.all for Robust Async Handling

Promise.allSettled enhances JavaScript concurrency by waiting for every promise to settle—whether fulfilled or rejected—so developers can retrieve all results and handle errors more flexibly, unlike Promise.all which aborts on the first rejection.

Error HandlingJavaScriptPromise.allSettled
0 likes · 4 min read
Why Promise.allSettled Beats Promise.all for Robust Async Handling
JavaScript
JavaScript
May 6, 2025 · Frontend Development

Why Sticking to ES5 Is Holding Your JavaScript Back – Modern Alternatives Explained

This article examines common ES5 JavaScript patterns—such as var declarations, mixed function definitions, callback hell, the arguments object, constructor‑based inheritance, string concatenation, and manual loops—and shows how modern ES6+ features like let/const, arrow functions, promises, rest parameters, classes, template literals, spread syntax, and array methods provide cleaner, safer, and more maintainable code.

Arrow FunctionsJavaScriptasync/await
0 likes · 8 min read
Why Sticking to ES5 Is Holding Your JavaScript Back – Modern Alternatives Explained
JavaScript
JavaScript
May 5, 2025 · Frontend Development

Replace Switch Statements with Object Maps and ES6 Map for Cleaner JavaScript

Modern JavaScript offers more elegant alternatives to traditional if‑else and switch statements, such as using object literals for simple mappings and the ES6 Map structure for complex or dynamic key‑value logic, resulting in shorter, less error‑prone, and more maintainable code.

Code OptimizationJavaScriptMAP
0 likes · 4 min read
Replace Switch Statements with Object Maps and ES6 Map for Cleaner JavaScript
JavaScript
JavaScript
May 4, 2025 · Frontend Development

Master Cleaner Conditional Logic in JavaScript: 10 Powerful Alternatives

This article examines the drawbacks of traditional if/else and switch statements in JavaScript and presents ten concise, maintainable, and performant alternatives—including ternary operators, short‑circuit evaluation, object and Map lookups, function mapping, strategy pattern, optional chaining, nullish coalescing, and logical grouping—while providing code examples, pros and cons, and a performance comparison.

Conditional LogicJavaScriptfrontend development
0 likes · 11 min read
Master Cleaner Conditional Logic in JavaScript: 10 Powerful Alternatives
JavaScript
JavaScript
May 3, 2025 · Frontend Development

Why Google Engineers Avoid JavaScript Default Parameters (And What to Use Instead)

This article explains the subtle bugs, predictability issues, scope interactions, and readability concerns that can arise from JavaScript default parameters, and presents explicit argument handling and object destructuring as safer alternatives for large‑scale development.

Default ParametersFunction ArgumentsJavaScript
0 likes · 3 min read
Why Google Engineers Avoid JavaScript Default Parameters (And What to Use Instead)
Code Mala Tang
Code Mala Tang
May 3, 2025 · Frontend Development

How Top Engineers Refactor Complex Conditional Logic for Cleaner Code

This article examines why developers often over‑nest and misuse conditional statements, then presents proven techniques—early returns, lookup objects, optional chaining, guard clauses, and state machines—to simplify, improve readability, and make conditional logic more maintainable and scalable.

Conditional LogicJavaScriptcode readability
0 likes · 8 min read
How Top Engineers Refactor Complex Conditional Logic for Cleaner Code
JavaScript
JavaScript
May 2, 2025 · Frontend Development

Mastering Async/Await: Turn JavaScript Asynchronous Code into Synchronous‑Style Logic

This article walks through the evolution of JavaScript asynchronous programming—from callback hell to promises and finally async/await—explaining how async/await works, when true synchronous execution is needed, and providing practical techniques and code examples for clean, maintainable async code.

Code ExamplesJavaScriptasync/await
0 likes · 6 min read
Mastering Async/Await: Turn JavaScript Asynchronous Code into Synchronous‑Style Logic
JavaScript
JavaScript
May 1, 2025 · Frontend Development

Avoid Common Arrow Function Pitfalls in JavaScript

Arrow functions in ES6 offer concise syntax, but they come with several traps—such as lacking their own this binding, being unusable as constructors, missing arguments, and incompatibility with call/apply/bind—so developers must know when to avoid them and when they’re appropriate.

JavaScriptbest practiceses6
0 likes · 5 min read
Avoid Common Arrow Function Pitfalls in JavaScript
JavaScript
JavaScript
Apr 29, 2025 · Frontend Development

Replace Switch Statements with Object Maps for Cleaner JavaScript

Learn how modern JavaScript lets you replace verbose if‑else and switch statements with concise object literal mappings and the powerful ES6 Map structure, improving readability, reducing errors, and simplifying maintenance for both simple and complex branching logic.

JavaScriptMAPobject literal
0 likes · 4 min read
Replace Switch Statements with Object Maps for Cleaner JavaScript
Liangxu Linux
Liangxu Linux
Apr 28, 2025 · Backend Development

How to Fix Cross-Origin Issues with Nginx: A Step‑by‑Step Demo

This guide explains when cross‑origin problems occur, demonstrates a concrete Nginx‑based example with client‑side JavaScript, and shows how to resolve the issue by adding the appropriate Access‑Control‑Allow‑Origin and Access‑Control‑Allow‑Methods headers.

CORSCross-OriginJavaScript
0 likes · 5 min read
How to Fix Cross-Origin Issues with Nginx: A Step‑by‑Step Demo
JavaScript
JavaScript
Apr 28, 2025 · Frontend Development

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

This article explains the limitations of traditional try‑catch for asynchronous JavaScript errors, demonstrates how Promise.try unifies sync and async error handling, and shows its advantages with code examples and micro‑task scheduling benefits.

AsyncError HandlingJavaScript
0 likes · 4 min read
Why try‑catch Fails in Async JavaScript and How Promise.try Solves It
JavaScript
JavaScript
Apr 27, 2025 · Frontend Development

Mastering JavaScript Object Copying: Shallow vs Deep Techniques

Understanding how JavaScript handles object references is crucial, as improper copying can cause unexpected side effects; this guide explains the differences between shallow and deep copies, demonstrates various methods—including Object.assign, spread operator, JSON serialization, lodash, and the native structuredClone API—and offers practical tips for choosing the right strategy.

JavaScriptObject Copyperformance
0 likes · 10 min read
Mastering JavaScript Object Copying: Shallow vs Deep Techniques
AI Algorithm Path
AI Algorithm Path
Apr 26, 2025 · Artificial Intelligence

OpenAI Launches GPT-Image-1: Bringing ChatGPT‑Style Image Generation to Developers

OpenAI has opened the GPT‑Image‑1 API, a multimodal model that supports both image generation and editing, offers configurable quality, size, and format options, provides JavaScript code samples, outlines token‑based pricing, and is already being integrated by platforms such as Adobe, Canva, and HeyGen.

APIGPT-Image-1Image Generation
0 likes · 9 min read
OpenAI Launches GPT-Image-1: Bringing ChatGPT‑Style Image Generation to Developers
JavaScript
JavaScript
Apr 26, 2025 · Frontend Development

Master JavaScript flatMap: Simplify Array Transformations and Boost Performance

The article explains JavaScript’s flatMap() method, detailing its combination of map() and flat() functionality, syntax, parameters, use‑cases such as flattening nested arrays, filtering and transforming elements, handling one‑to‑many relationships, performance benefits, caveats, and real‑world examples with code snippets.

JavaScriptarray methodsdata-processing
0 likes · 4 min read
Master JavaScript flatMap: Simplify Array Transformations and Boost Performance
php Courses
php Courses
Apr 24, 2025 · Frontend Development

Six Lesser‑Known Ways to Output Data in JavaScript

This article introduces six alternative JavaScript output techniques—including document.write, advanced console methods, the Notification API, speech synthesis, Blob with URL.createObjectURL, and WebSocket—providing developers with richer options beyond console.log and alert for diverse web scenarios.

JavaScriptWeb APIsconsole
0 likes · 5 min read
Six Lesser‑Known Ways to Output Data in JavaScript
JavaScript
JavaScript
Apr 24, 2025 · Frontend Development

Why for...in Loops Can Break Your JavaScript Arrays and Safer Alternatives

The article explains that JavaScript’s for...in loop, intended for object property enumeration, can produce unordered results, traverse custom and prototype properties, and cause performance and bug issues when used on arrays, and it recommends safer alternatives such as classic for loops, for…of, forEach, and functional methods.

JavaScriptarray iterationbest practices
0 likes · 4 min read
Why for...in Loops Can Break Your JavaScript Arrays and Safer Alternatives
Alibaba Cloud Developer
Alibaba Cloud Developer
Apr 22, 2025 · Artificial Intelligence

Can AI Self‑Upgrade by Writing Its Own Code? A Detective Game Demo

This article showcases how an AI can self‑upgrade by dynamically injecting and executing JavaScript code within a simulated detective game, using an MCP server that provides tools for starting the game, retrieving clues, executing code, and submitting a solution, ultimately identifying the thief through logical reasoning.

AI self‑upgradeJavaScriptMCP Server
0 likes · 15 min read
Can AI Self‑Upgrade by Writing Its Own Code? A Detective Game Demo
JavaScript
JavaScript
Apr 21, 2025 · Frontend Development

Why JSON.parse(JSON.stringify) Fails for Deep Cloning and What to Use Instead

This article explains the hidden pitfalls of using JSON.parse(JSON.stringify) for deep cloning in JavaScript—such as circular references, loss of special types, prototype chain, and collection data—while recommending the native structuredClone API as a more reliable alternative.

JSONJavaScriptdeep copy
0 likes · 4 min read
Why JSON.parse(JSON.stringify) Fails for Deep Cloning and What to Use Instead
JavaScript
JavaScript
Apr 20, 2025 · Frontend Development

Replace Nested Loops with Elegant JavaScript Array Methods

This article explains how to replace verbose nested for‑loops in JavaScript with functional array methods like flat, map, filter, flatMap, and reduce, improving code readability, maintainability, and often performance for handling multi‑dimensional arrays.

FlatJavaScriptarray methods
0 likes · 4 min read
Replace Nested Loops with Elegant JavaScript Array Methods
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 20, 2025 · Frontend Development

Vue 2.0 vs Vue 3.0: Core Differences, Reactive System, Composition API, Lifecycle Hooks and Practical Code Examples

This article provides a comprehensive comparison between Vue 2 and Vue 3, covering changes in reactivity implementation, the introduction of the Composition API, lifecycle hook updates, component caching, data binding techniques, state‑management alternatives, storage options, and numerous code snippets that illustrate each concept for developers preparing for interviews or upgrading projects.

Composition APIJavaScriptVue2
0 likes · 25 min read
Vue 2.0 vs Vue 3.0: Core Differences, Reactive System, Composition API, Lifecycle Hooks and Practical Code Examples
Full-Stack Cultivation Path
Full-Stack Cultivation Path
Apr 18, 2025 · Fundamentals

Introducing Promise.try(): A Super‑Useful ES2025 API for Cleaner Async Code

Promise.try(), added in ES2025, is a static method that wraps any function—sync or async—into a Promise, automatically captures synchronous errors, and provides a unified, concise API for handling both synchronous and asynchronous operations, as demonstrated through multiple code examples and practical scenarios.

ES2025Error HandlingJavaScript
0 likes · 7 min read
Introducing Promise.try(): A Super‑Useful ES2025 API for Cleaner Async Code
JavaScript
JavaScript
Apr 17, 2025 · Frontend Development

Why JavaScript’s New Temporal API Beats the Old Date Object

The article explains the long‑standing pain points of JavaScript’s Date object, introduces the modern, immutable Temporal API with its intuitive design, showcases core features and components, provides practical code examples, compares both APIs, and notes current browser support and polyfill options.

JavaScriptTemporal APIWeb Development
0 likes · 6 min read
Why JavaScript’s New Temporal API Beats the Old Date Object
JavaScript
JavaScript
Apr 16, 2025 · Frontend Development

Master Deep Copy in JavaScript with the Native structuredClone() Method

This article explains the challenges of deep copying in JavaScript, compares traditional methods like JSON.parse(JSON.stringify) and custom recursion, and introduces the modern native structuredClone() function, detailing its usage, supported data types, advantages, and current limitations across browsers and Node.js.

JavaScriptdeep copystructuredClone
0 likes · 5 min read
Master Deep Copy in JavaScript with the Native structuredClone() Method
Java Backend Full-Stack
Java Backend Full-Stack
Apr 15, 2025 · Backend Development

How to Retrieve Nearby Charging Station Information Using Redis GEO

This tutorial shows how to obtain a user's current latitude and longitude via an IP API, send the coordinates to a backend service that stores charging stations in Redis GEO, and query stations within a 20‑kilometer radius, with complete front‑end and back‑end code examples.

Charging StationGEOJavaScript
0 likes · 4 min read
How to Retrieve Nearby Charging Station Information Using Redis GEO
JavaScript
JavaScript
Apr 15, 2025 · Frontend Development

Why Set Beats Traditional Array Deduplication in JavaScript

This article explains how using ES6 Set for array deduplication in JavaScript yields dramatically shorter code and up to 300× faster performance compared to traditional indexOf or filter methods, backed by benchmark results and best‑practice patterns combining Set with Array methods.

Array DeduplicationJavaScriptSet
0 likes · 6 min read
Why Set Beats Traditional Array Deduplication in JavaScript
JavaScript
JavaScript
Apr 14, 2025 · Frontend Development

7 Better Alternatives to setTimeout for Reliable JavaScript Timing

While setTimeout is a common JavaScript timer, its limited precision and throttling in inactive tabs can cause issues; this article presents seven more reliable alternatives—including requestAnimationFrame, setInterval, requestIdleCallback, Web Workers, Promise/async‑await, Web Animations API, and Intersection Observer—each with key advantages and usage examples.

JavaScriptTimerssetTimeout
0 likes · 5 min read
7 Better Alternatives to setTimeout for Reliable JavaScript Timing
macrozheng
macrozheng
Apr 13, 2025 · Fundamentals

Master Breakpoint Debugging: From IDEs to Browser Console

This guide explains what breakpoint debugging is, how to set breakpoints in popular IDEs and command‑line tools, start a debugging session, perform single‑step actions, and use browser developer tools for JavaScript, providing essential skills for any developer.

IDEJavaScriptSoftware Development
0 likes · 5 min read
Master Breakpoint Debugging: From IDEs to Browser Console
JavaScript
JavaScript
Apr 12, 2025 · Frontend Development

20 Powerful JavaScript One‑Liners to Boost Your Coding Efficiency

Discover 20 concise JavaScript one‑line tricks—from array deduplication and variable swapping to debouncing and date calculations—that streamline common tasks, boost performance, and make your code more elegant, all explained with clear examples and brief explanations.

JavaScriptOne-linersTips
0 likes · 7 min read
20 Powerful JavaScript One‑Liners to Boost Your Coding Efficiency
JavaScript
JavaScript
Apr 11, 2025 · Frontend Development

Boost JavaScript Async Performance by Up to 80% with New Patterns

This article examines the performance drawbacks of JavaScript's async/await, introduces optimized Promise chaining, parallel execution with Promise.all, batch processing, and a Promise pooling technique, and presents benchmark results showing up to 80% speed improvements in various asynchronous scenarios.

AsyncJavaScriptPromise
0 likes · 5 min read
Boost JavaScript Async Performance by Up to 80% with New Patterns
Sohu Tech Products
Sohu Tech Products
Apr 9, 2025 · Frontend Development

React Compound Components Pattern: A Complete Guide

The article introduces the React Compound Components pattern, showing how a parent component with shared Context can expose reusable child parts—like Title, FormInputs, and SubmitButtons—so the same logic can be flexibly arranged in different layouts such as full‑page or modal, improving reuse, readability, and maintainability.

Component Design PatternCompound ComponentsJavaScript
0 likes · 11 min read
React Compound Components Pattern: A Complete Guide
Java Captain
Java Captain
Apr 9, 2025 · Backend Development

Server‑Sent Events (SSE) vs WebSocket vs Polling: Usage Scenarios, Advantages, and Implementation Demo

This article explains the three common server‑to‑client push techniques—polling, WebSocket, and SSE—detailing their principles, pros and cons, browser compatibility, and provides step‑by‑step Node.js/Express and plain JavaScript demos to illustrate how to implement SSE in real‑time applications.

ExpressJavaScriptNode.js
0 likes · 13 min read
Server‑Sent Events (SSE) vs WebSocket vs Polling: Usage Scenarios, Advantages, and Implementation Demo
JavaScript
JavaScript
Apr 9, 2025 · Frontend Development

Why Top Tech Companies Ban == and Enforce === in JavaScript

Large tech firms now prohibit the double‑equals operator in JavaScript, favoring triple‑equals to avoid type‑coercion bugs, improve readability, enhance security, and gain slight performance benefits, while static analysis tools enforce this best practice across codebases.

JavaScriptStrict Equalitycode quality
0 likes · 4 min read
Why Top Tech Companies Ban == and Enforce === in JavaScript