Tagged articles

JavaScript

2446 articles · Page 2 of 25
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.

JavaJavaScriptSpring Boot
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.

C++CallbackJavaScript
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 FormatJavaScriptWeb Workers
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.

Async/AwaitCode RefactoringError handling
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.

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

JavaScriptReal-time communicationWeChat Mini Program
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.

JavaScriptdecouplingevent bus
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.

Best PracticesCode RefactoringConditional Logic
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
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.

Async/AwaitJavaScriptarray 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.

JavaScriptPerformance optimizationWeb Workers
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
JavaScript
JavaScript
Oct 28, 2025 · Frontend Development

Why Promise.allFails and How Promise.allSettled Solves It

Promise.all stops all concurrent operations when any promise rejects, leaving you unaware of which tasks succeeded; using Promise.allSettled instead lets you wait for every promise to settle, providing a detailed result array that distinguishes fulfilled values from rejected reasons, enabling resilient async workflows.

JavaScriptPromisePromise.allSettled
0 likes · 5 min read
Why Promise.allFails and How Promise.allSettled Solves It
Code Mala Tang
Code Mala Tang
Oct 27, 2025 · Frontend Development

Master Fabric.js: Build Interactive Canvas with Zoom, Snap, and Guides

This article walks through setting up Fabric.js on a web page, creating a canvas, drawing rectangles, adding zoom and pan controls, implementing object snapping and alignment guides, and provides complete source code so readers can quickly build an interactive canvas application.

CanvasFabric.jsFrontend
0 likes · 21 min read
Master Fabric.js: Build Interactive Canvas with Zoom, Snap, and Guides
JavaScript
JavaScript
Oct 25, 2025 · Frontend Development

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

This article explains how async/await simplifies asynchronous JavaScript but still requires try…catch, and shows how to adopt Go‑style error handling with a tiny helper that returns [error, data] to flatten code, reduce boilerplate, and improve readability.

Async/AwaitError handlingGo style
0 likes · 9 min read
Replace Nested try…catch with Go‑Style Error Handling in JavaScript
JavaScript
JavaScript
Oct 24, 2025 · Frontend Development

7 Better Alternatives to setTimeout for Reliable JavaScript Timing

While setTimeout is a common JavaScript timer API, it suffers from precision and throttling issues; this article introduces seven more reliable alternatives—including requestAnimationFrame, setInterval, requestIdleCallback, Web Workers, Promises with async/await, the Web Animations API, and Intersection Observer—detailing their advantages and usage examples.

JavaScriptPerformanceTimers
0 likes · 5 min read
7 Better Alternatives to setTimeout for Reliable JavaScript Timing
JavaScript
JavaScript
Oct 17, 2025 · Frontend Development

Why IndexedDB Is the Modern Frontend Storage Powerhouse Over localStorage

While localStorage has long been the default client‑side storage for web apps, its security risks, synchronous blocking, limited capacity, and lack of advanced querying make it unsuitable for modern applications, and IndexedDB emerges as a superior, asynchronous, high‑capacity, secure, and query‑rich alternative, especially when paired with helper libraries like idb, Dexie.js, and localForage.

FrontendIndexedDBJavaScript
0 likes · 5 min read
Why IndexedDB Is the Modern Frontend Storage Powerhouse Over localStorage
FunTester
FunTester
Oct 17, 2025 · Fundamentals

Why Does var Print 2 Twice? Unraveling JavaScript’s Function Scope and Hoisting

This article explains why a JavaScript function using var prints “2” twice, by detailing var’s function scope, variable hoisting, the compilation and execution phases, and contrasting the behavior with let and const, while offering practical coding recommendations to avoid common pitfalls.

JavaScriptScopeconst
0 likes · 9 min read
Why Does var Print 2 Twice? Unraveling JavaScript’s Function Scope and Hoisting
JavaScript
JavaScript
Oct 16, 2025 · Frontend Development

10 Cleaner Alternatives to if‑else in JavaScript

This guide shows how to replace verbose if‑else chains in JavaScript with cleaner techniques such as object mapping, Array.includes, ternary operators, logical shortcuts, switch statements, Proxy interception, functional patterns, state machines, and decorators, providing concise code examples for each method.

Code RefactoringConditional LogicDesign Patterns
0 likes · 3 min read
10 Cleaner Alternatives to if‑else in JavaScript
JavaScript
JavaScript
Oct 14, 2025 · Frontend Development

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

While async/await simplifies JavaScript code, it can introduce significant overhead in high‑frequency or compute‑heavy scenarios; this article introduces alternative async patterns—optimized Promise chaining, parallel Promise.all, batch processing, and pooling—that can reduce context switches and deliver performance gains of up to 80%.

Async/AwaitJavaScriptPerformance optimization
0 likes · 5 min read
Boost JavaScript Async Performance by Up to 80% with New Promise Techniques
JavaScript
JavaScript
Oct 13, 2025 · Frontend Development

When JSON.parse Slows You Down: Faster Deserialization Strategies

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

JavaScriptWeb Workersbinary formats
0 likes · 6 min read
When JSON.parse Slows You Down: Faster Deserialization Strategies
21CTO
21CTO
Oct 12, 2025 · Frontend Development

Are Native Browser APIs Replacing Front‑End Frameworks?

The article argues that modern browsers now provide powerful native alternatives for routing, state management, and components, reducing the need for frameworks like React, Vue, and Angular, and explains how emerging standards are reshaping front‑end development, performance, and developer ergonomics.

Browser APIsFrontendJavaScript
0 likes · 11 min read
Are Native Browser APIs Replacing Front‑End Frameworks?
JavaScript
JavaScript
Oct 11, 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, outlines five common scenarios where using a regular function is required, and provides clear code examples to help developers choose the right syntax for reliable code.

Arrow FunctionsBest PracticesJavaScript
0 likes · 8 min read
When to Use Arrow Functions vs Traditional Functions in JavaScript
IT Services Circle
IT Services Circle
Oct 9, 2025 · Backend Development

Why Modern JavaScript Runtimes Matter: Bun, Deno, and Edge in 2024

This guide explains how newer JavaScript runtimes like Bun, Deno, and edge platforms reshape development speed, security, and global performance, offering code examples, benchmark comparisons, and practical advice for choosing the right runtime for your projects.

BunDenoEdge Computing
0 likes · 7 min read
Why Modern JavaScript Runtimes Matter: Bun, Deno, and Edge in 2024
JavaScript
JavaScript
Oct 9, 2025 · Frontend Development

Why You Should Rethink Using ‘else’ in JavaScript: Embrace Guard Clauses

Modern JavaScript style guides increasingly recommend avoiding deep if…else chains by using guard clauses and early returns, a practice that flattens code, reduces cognitive load, separates concerns, improves maintainability, and encourages expressive data structures, while still allowing simple cases where if…else remains appropriate.

Code styleEarly ReturnJavaScript
0 likes · 7 min read
Why You Should Rethink Using ‘else’ in JavaScript: Embrace Guard Clauses
JavaScript
JavaScript
Oct 6, 2025 · Frontend Development

Why Timestamp+Random Fails and How to Generate Truly Unique IDs in JavaScript

Generating unique IDs may seem trivial, but common approaches like combining Date.now() with Math.random() or using a simple counter suffer from timestamp precision limits and non‑cryptographic randomness, whereas the modern, standards‑based crypto.randomUUID() provides collision‑free, cryptographically secure identifiers across browsers and Node.js.

JavaScriptUUIDUnique ID
0 likes · 4 min read
Why Timestamp+Random Fails and How to Generate Truly Unique IDs in JavaScript
Liangxu Linux
Liangxu Linux
Oct 4, 2025 · Fundamentals

Why Is Code Called a “Script”? Uncovering the Origins and Myths

This article investigates why programmers refer to code as “scripts,” examining humorous misconceptions, historical translation quirks, the word’s original meaning, scripting language characteristics, and web‑page placement to provide a comprehensive understanding of the term’s evolution.

JavaScriptScriptScripting
0 likes · 4 min read
Why Is Code Called a “Script”? Uncovering the Origins and Myths
JavaScript
JavaScript
Oct 3, 2025 · Fundamentals

How Early Returns Can Simplify Complex If‑Else Logic in JavaScript

This article explains why deeply nested if‑else statements hurt code readability and maintainability, and demonstrates how using early return statements and the Guard Clause pattern can flatten the structure, reduce cognitive load, and improve overall code quality.

JavaScriptcode optimizationguard-clauses
0 likes · 5 min read
How Early Returns Can Simplify Complex If‑Else Logic in JavaScript
IT Services Circle
IT Services Circle
Oct 2, 2025 · Frontend Development

Why WebAssembly Is the Fourth Language Every Frontend Developer Needs

WebAssembly, the emerging "fourth language" for the web, extends HTML, CSS, and JavaScript by enabling high‑performance, cross‑platform binaries compiled from languages like C, C++, Rust, and Go, and its 3.0 release brings major enhancements such as 64‑bit memory, multi‑memory support, and tighter JavaScript integration.

JavaScriptWasm 3.0WebAssembly
0 likes · 7 min read
Why WebAssembly Is the Fourth Language Every Frontend Developer Needs
Radish, Keep Going!
Radish, Keep Going!
Oct 2, 2025 · Frontend Development

A Snake Game in the URL Bar: What It Shows About Modern Web Security

This article explores how a quirky snake game runs inside a browser’s address bar, the technical tricks behind it, and how recent security and API changes in modern browsers have turned such creative hacks into fragile experiments, highlighting the tension between innovation and safety.

Browser SecurityFrontendJavaScript
0 likes · 11 min read
A Snake Game in the URL Bar: What It Shows About Modern Web Security
JavaScript
JavaScript
Oct 2, 2025 · Frontend Development

Unlock Hidden Performance: How Web Workers Supercharge Frontend Apps

This article explains why Web Workers, an often‑overlooked browser API, can free the main thread, leverage multi‑core CPUs, and improve memory management, offering concrete scenarios and code examples to dramatically boost JavaScript performance in modern front‑end applications.

JavaScriptPerformance optimizationWeb Workers
0 likes · 5 min read
Unlock Hidden Performance: How Web Workers Supercharge Frontend Apps
JavaScript
JavaScript
Oct 1, 2025 · Frontend Development

Why Vue 3’s Composition API Beats Mixins: Real‑World Refactor Insights

Vue 3 replaces the once‑popular mixins pattern with the Composition API, offering explicit dependencies, clearer source tracing, better TypeScript support, and improved maintainability, as illustrated by a fintech trading platform’s migration from tangled mixins to clean, reusable composition functions.

Composition APIJavaScriptTypeScript
0 likes · 6 min read
Why Vue 3’s Composition API Beats Mixins: Real‑World Refactor Insights
Dunmao Tech Hub
Dunmao Tech Hub
Sep 30, 2025 · Frontend Development

Generate QR Codes with Logos in Vue Using qrcode & Jimp

This guide walks through generating standard and logo‑embedded QR codes in a Vue application using the qrcode and Jimp libraries, covering installation, imports, the toCanvas API, and a complete async function for compositing a logo onto the QR image.

JavaScriptJimpQR code
0 likes · 5 min read
Generate QR Codes with Logos in Vue Using qrcode & Jimp
JavaScript
JavaScript
Sep 30, 2025 · Frontend Development

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

This article explains the limitations of Promise.all, demonstrates how Promise.allSettled handles both fulfilled and rejected promises without aborting the whole operation, and shows practical code examples for building more resilient JavaScript applications.

FrontendJavaScriptPromise
0 likes · 5 min read
Why Promise.allSettled Beats Promise.all for Robust Async JavaScript
Architect
Architect
Sep 27, 2025 · Backend Development

How to Track Online Users with Redis Sorted Sets (zset)

This article explains how to implement an online user counting feature using Redis sorted sets, covering user identification methods, the essential zadd, zrangeByScore, zremrangeByScore, and zrem commands, along with code examples for both Java and JavaScript.

JavaScriptSorted Setonline users
0 likes · 8 min read
How to Track Online Users with Redis Sorted Sets (zset)
JavaScript
JavaScript
Sep 27, 2025 · Frontend Development

Simplify Vue v-model with the New defineModel API in Vue 3.4

This article explains how Vue 3.4's defineModel feature eliminates the boilerplate required for custom v-model implementations, showing side‑by‑side examples of the old three‑line approach and the new single‑line declaration for reusable input components.

FrontendJavaScriptV-Model
0 likes · 3 min read
Simplify Vue v-model with the New defineModel API in Vue 3.4
FunTester
FunTester
Sep 26, 2025 · Frontend Development

How to Choose the Right JavaScript Unit Testing Framework for Your Project

This guide explains why unit testing is essential, compares manual and automated testing, outlines the components of JavaScript test frameworks, and provides a step‑by‑step process for selecting the most suitable framework based on project needs and team capabilities.

JavaScriptJestUnit Testing
0 likes · 9 min read
How to Choose the Right JavaScript Unit Testing Framework for Your Project
JavaScript
JavaScript
Sep 26, 2025 · Information Security

How ShadowRealm Can Safely Isolate Untrusted JavaScript in the Browser

ShadowRealm, a forthcoming ECMAScript standard now at TC39 Stage 3, lets developers create isolated JavaScript global environments without DOM overhead, offering a lightweight alternative to iframes and eval for securely executing third‑party code, with APIs like new ShadowRealm(), evaluate() and importValue().

ECMAScriptJavaScriptShadowRealm
0 likes · 4 min read
How ShadowRealm Can Safely Isolate Untrusted JavaScript in the Browser
JavaScript
JavaScript
Sep 23, 2025 · Frontend Development

Transform Async/Await Error Handling with Go‑Style Patterns in JavaScript

This article explains how the traditional try...catch approach for async/await can lead to nested, hard‑to‑read code and introduces a Go‑style error‑handling helper that returns [error, data] tuples, flattening logic, reducing boilerplate, and improving readability when combined with Promise.all.

Async/AwaitError handlingGo style
0 likes · 8 min read
Transform Async/Await Error Handling with Go‑Style Patterns in JavaScript
FunTester
FunTester
Sep 22, 2025 · Frontend Development

Choosing the Right JavaScript Automation Testing Framework: WebDriverIO, Cypress, Playwright, and More

This article reviews the major JavaScript end‑to‑end testing frameworks—WebDriverIO, Nightwatch, Puppeteer, Playwright, TestCafe, and Cypress—explaining their technical foundations, installation steps, code examples, and the trade‑offs of compatibility, ease of use, and performance to help developers select the most suitable tool for modern web projects.

Automation testingCypressJavaScript
0 likes · 12 min read
Choosing the Right JavaScript Automation Testing Framework: WebDriverIO, Cypress, Playwright, and More
Java Tech Enthusiast
Java Tech Enthusiast
Sep 21, 2025 · Fundamentals

How an Object Can Equal Two Different Values in JavaScript and Java

This article explains the clever trick of making a single object satisfy multiple equality checks in JavaScript using a mutable valueOf method, and shows how a similar effect can be achieved in Java through custom methods and state variables, highlighting the underlying mechanism.

JavaScriptMethod OverloadingObject Comparison
0 likes · 6 min read
How an Object Can Equal Two Different Values in JavaScript and Java
JavaScript
JavaScript
Sep 19, 2025 · Frontend Development

Unlocking ES2025: How New Syntax Transforms JavaScript Development

This article explores the groundbreaking ES2025 JavaScript features—including pattern matching, enhanced array destructuring, the pipeline operator, native Record & Tuple types, Decimal numbers, improved error handling, and Temporal API integration—showing how they simplify code, boost performance, and move the language toward functional and type‑safe programming.

ES2025JavaScriptPattern Matching
0 likes · 7 min read
Unlocking ES2025: How New Syntax Transforms JavaScript Development
JavaScript
JavaScript
Sep 18, 2025 · Frontend Development

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

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 erosion, and broken collections—and introduces the native structuredClone API as a more reliable solution.

FrontendJavaScriptdeep copy
0 likes · 5 min read
Why JSON.parse(JSON.stringify) Fails for Deep Cloning and Better Alternatives
JavaScript
JavaScript
Sep 17, 2025 · Frontend Development

7 Better Alternatives to setTimeout for Reliable JavaScript Timing

This article examines the shortcomings of the traditional setTimeout API and presents seven more reliable JavaScript timing techniques—including requestAnimationFrame, setInterval, requestIdleCallback, Web Workers, Promise/async‑await, the Web Animations API, and Intersection Observer—each with code examples and key advantages.

FrontendJavaScriptTimers
0 likes · 5 min read
7 Better Alternatives to setTimeout for Reliable JavaScript Timing
JavaScript
JavaScript
Sep 16, 2025 · Frontend Development

Boost JavaScript Async Performance: Up to 80% Faster Than async/await

This article explains why async/await can cause performance bottlenecks in JavaScript and introduces optimized Promise‑based techniques—such as chain optimization, Promise.all parallelism, batch processing, and pooling—that can improve async execution speed by up to 80% in specific scenarios.

Async/AwaitJavaScriptPerformance optimization
0 likes · 4 min read
Boost JavaScript Async Performance: Up to 80% Faster Than async/await
JavaScript
JavaScript
Sep 14, 2025 · Frontend Development

Why IndexedDB Beats localStorage: Unlock Faster, Safer Browser Storage

This article examines the security, performance, and capacity limitations of localStorage and explains how IndexedDB offers asynchronous operations, larger storage, stronger security, and advanced query capabilities, while also recommending helper libraries to simplify its use.

FrontendIndexedDBJavaScript
0 likes · 5 min read
Why IndexedDB Beats localStorage: Unlock Faster, Safer Browser Storage
JavaScript
JavaScript
Sep 13, 2025 · Frontend Development

How to Solve CORS Issues Easily with Fetch API and Modern JS Features

This article explains the fundamentals of CORS, reviews traditional workarounds, and demonstrates how the Fetch API, import assertions, and emerging web policies provide simpler, more secure solutions for cross‑origin requests in modern frontend development.

CORSJavaScriptfetch API
0 likes · 5 min read
How to Solve CORS Issues Easily with Fetch API and Modern JS Features
JavaScript
JavaScript
Sep 11, 2025 · Fundamentals

Mastering JavaScript’s ‘this’: The Hidden Rules Every Developer Must Know

This article demystifies JavaScript’s notoriously tricky ‘this’ keyword by exploring its dynamic binding behavior, illustrating four binding rules with clear examples, and showing how arrow functions, call/apply/bind, and constructor calls affect its value, plus practical best‑practice tips.

Arrow FunctionsJavaScriptbinding rules
0 likes · 6 min read
Mastering JavaScript’s ‘this’: The Hidden Rules Every Developer Must Know
JavaScript
JavaScript
Sep 7, 2025 · Frontend Development

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

The article explains why Array.prototype.forEach is increasingly discouraged in modern JavaScript, especially with async/await, and demonstrates how replacing it with a for...of loop resolves async handling, break/continue control, and improves code clarity.

Async/AwaitJavaScriptfor...of
0 likes · 6 min read
Why forEach Is Losing Favor: Switch to for...of for Async JavaScript Loops
Instant Consumer Technology Team
Instant Consumer Technology Team
Sep 4, 2025 · Frontend Development

Latest Web Tech Updates: jQuery 4 RC, Node.js v24.7, Rspack 1.5, Next.js 15.5

This roundup highlights recent releases and announcements across the web development ecosystem, including jQuery 4.0.0 RC1, Node.js v24.7.0 with enhanced cryptography, Rspack 1.5 performance upgrades, Next.js 15.5 Turbopack beta, plus new articles on ES2025 syntax sugar, Claude Code, Node.js Type Stripping and an AI‑driven quality‑report automation.

JavaScriptNode.jsWeb Development
0 likes · 7 min read
Latest Web Tech Updates: jQuery 4 RC, Node.js v24.7, Rspack 1.5, Next.js 15.5
JavaScript
JavaScript
Sep 4, 2025 · Frontend Development

Beyond the Classic for Loop: Modern JavaScript Iteration Techniques

This article examines why the traditional JavaScript for loop is often suboptimal and explores newer, more readable and functional iteration methods such as array helpers, 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
JavaScript
JavaScript
Sep 3, 2025 · Frontend Development

16 Essential JavaScript Shorthand Tricks to Write Cleaner Code

This article presents sixteen of the most useful JavaScript shorthand techniques—from ternary operators and optional chaining to object merging and dynamic property names—showing traditional versus concise forms so developers can write more compact, readable code and boost productivity.

JavaScriptcode tricksfrontend development
0 likes · 4 min read
16 Essential JavaScript Shorthand Tricks to Write Cleaner Code
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.

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

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

HTMLJavaScriptOpen source
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.

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

JavaScriptPHPWeb Development
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.

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

FrontendImmutable DataJavaScript
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