Tagged articles

JavaScript

2473 articles · Page 9 of 25
Sohu Tech Products
Sohu Tech Products
Nov 1, 2023 · Frontend Development

ESLint vs. Prettier: History, Conflict, and the Deprecation of Formatting Rules

The article traces ESLint’s evolution from a JSLint‑style checker to the dominant JavaScript linter, explains its long‑standing clash with the opinionated formatter Prettier over code‑style rules, and details the team’s decision in v8.53.0 to deprecate built‑in formatting rules in favor of external style plugins and market‑driven style guides.

ESLintJavaScriptLinting
0 likes · 10 min read
ESLint vs. Prettier: History, Conflict, and the Deprecation of Formatting Rules
HomeTech
HomeTech
Nov 1, 2023 · Frontend Development

Understanding and Optimizing Cumulative Layout Shift (CLS) in Web Performance

This article explains the background, definition, calculation methods, measurement techniques, and practical optimization strategies for Cumulative Layout Shift (CLS), a key web‑performance metric, and provides JavaScript code examples for tracking and reporting CLS values.

CLSJavaScriptWeb Performance
0 likes · 16 min read
Understanding and Optimizing Cumulative Layout Shift (CLS) in Web Performance
Ximalaya Technology Team
Ximalaya Technology Team
Oct 31, 2023 · Frontend Development

What Is WebAssembly? Advantages, Front‑End Usage, and Development Guide

WebAssembly (Wasm) is a fast, binary bytecode format that lets browsers execute near‑native code written in languages like C, C++ or Rust, offering superior performance for CPU‑intensive tasks such as games and data processing, and can be integrated into front‑end projects via fetch, instantiateStreaming, and toolchains like Emscripten or wasm‑pack.

C++JavaScriptPerformance
0 likes · 10 min read
What Is WebAssembly? Advantages, Front‑End Usage, and Development Guide
Sohu Tech Products
Sohu Tech Products
Oct 25, 2023 · Frontend Development

Using Vite with Remix: Installation, Configuration, and Feature Guide

This guide explains how to add the experimental Vite bundler to a Remix project—installing Vite, creating a vite.config.ts with the Remix plugin, configuring TypeScript, path aliases, CSS imports, Tailwind, vanilla‑extract, MDX, and noting differences such as LiveReload placement, Fast Refresh constraints, and current feature support across environments.

Build ToolsConfigurationJavaScript
0 likes · 16 min read
Using Vite with Remix: Installation, Configuration, and Feature Guide
ByteFE
ByteFE
Oct 23, 2023 · Frontend Development

Master High‑Performance Data Tables with VTable: A Quick‑Start Guide

This guide introduces VTable, an open‑source high‑performance table component built on VRender, covering installation via npm or CDN, basic usage, table types, cell rendering options, interaction features, theming, and performance characteristics for modern web applications.

Data TableJavaScriptPerformance
0 likes · 9 min read
Master High‑Performance Data Tables with VTable: A Quick‑Start Guide
Sohu Tech Products
Sohu Tech Products
Oct 18, 2023 · Frontend Development

How to Build a Safari QR‑Code Extension from Scratch

This step‑by‑step guide shows how to create a Safari web extension that generates a QR code for the current page, covering project setup in Xcode, manifest configuration, UI design, JavaScript communication, and optional offline QR generation.

JavaScriptQR codeSafari Extension
0 likes · 9 min read
How to Build a Safari QR‑Code Extension from Scratch
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 15, 2023 · Frontend Development

Responsive Waterfall Flow Layout Implementation in React

This article explains how to build a responsive waterfall (masonry) layout in React, covering the underlying principle of absolute positioning, dynamic column calculation, item placement based on column heights, lazy image loading, and provides the complete TypeScript component and CSS code.

CSSJavaScriptresponsive design
0 likes · 13 min read
Responsive Waterfall Flow Layout Implementation in React
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 14, 2023 · Frontend Development

Understanding Vue's Diff Algorithm: A Step‑by‑Step Guide

This article explains Vue's diff algorithm in detail, covering prerequisite concepts about VNode, left‑ and right‑side comparisons, handling arrays of different lengths, and the complete implementation with code examples to help developers grasp how Vue efficiently updates the DOM.

Diff AlgorithmJavaScriptVue
0 likes · 11 min read
Understanding Vue's Diff Algorithm: A Step‑by‑Step Guide
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 12, 2023 · Frontend Development

Implementing Resizable Elements with Vue Directives (v‑resize)

This article explains how to create a Vue directive for element resizing, covering basic right‑side resizing, handling trigger zones, enforcing minimum dimensions, adding left/right multi‑direction support, and providing complete JavaScript and TypeScript implementations with usage examples and future enhancements.

DirectiveJavaScriptResize
0 likes · 16 min read
Implementing Resizable Elements with Vue Directives (v‑resize)
HomeTech
HomeTech
Oct 11, 2023 · Frontend Development

Implementing a Sticky Tabs Component with Custom Scroll Behavior in React

This article explains how to build a customizable Tabs component with a sticky header, click‑to‑scroll navigation, and collapsible content sections using React, CSS position:sticky, IntersectionObserver, and JavaScript, providing complete code examples and compatibility notes for modern web and mobile applications.

CSSIntersectionObserverJavaScript
0 likes · 10 min read
Implementing a Sticky Tabs Component with Custom Scroll Behavior in React
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 10, 2023 · Frontend Development

Deep Dive into LeaferJS: Architecture, Rendering Performance, Update Mechanism, and Event Picking

This article analyses the LeaferJS canvas rendering engine, covering its lightweight node creation, core architecture, rendering pipeline, partial‑render optimization, and event‑picking mechanism, while providing code examples and performance insights for front‑end developers.

Canvas RenderingJavaScriptLeaferJS
0 likes · 14 min read
Deep Dive into LeaferJS: Architecture, Rendering Performance, Update Mechanism, and Event Picking
HelloTech
HelloTech
Oct 9, 2023 · Frontend Development

Vue Expand/Collapse Animation for FAQ Section

The article shows how to create a smooth FAQ expand‑collapse effect in Vue by storing each item’s visibility in a show flag, wrapping the answer in a transition component, and using JavaScript hooks to set explicit heights and overflow while rotating the arrow icon for visual feedback.

CSS TransitionExpand CollapseFAQ
0 likes · 10 min read
Vue Expand/Collapse Animation for FAQ Section
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 8, 2023 · Frontend Development

Using Web Workers to Compile SCSS in a Frontend Application

This article explains how to off‑load SCSS‑to‑CSS compilation to a Web Worker in a React‑based frontend, providing code examples for the worker script, the main thread integration, and demonstrating the performance benefits of keeping the UI responsive during heavy processing.

Code CompilationJavaScriptWeb Worker
0 likes · 7 min read
Using Web Workers to Compile SCSS in a Frontend Application
HelloTech
HelloTech
Sep 27, 2023 · Frontend Development

Understanding JavaScript Web Workers and Shared Workers: Concepts, Usage, and Debugging

JavaScript’s single‑threaded model can freeze the UI during heavy calculations, but Web Workers—dedicated or shared—run code in independent threads, communicate via postMessage, offer configurable options, follow a clear initialization‑active‑termination lifecycle, and can be debugged through Chrome’s inspection tools, enabling responsive, asynchronous processing.

BrowserJavaScriptShared Worker
0 likes · 17 min read
Understanding JavaScript Web Workers and Shared Workers: Concepts, Usage, and Debugging
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 26, 2023 · Frontend Development

A Comprehensive Guide to Code Modification (Codemod) Tools and AST Transformations

This article explains the concept of codemod, outlines typical migration scenarios, details a step‑by‑step AST‑based workflow, and compares popular JavaScript code‑mod libraries such as Recast, jscodeshift, gogocode, and ast‑grep, helping developers choose the right tool for automated code upgrades.

ASTGoGoCodeJavaScript
0 likes · 13 min read
A Comprehensive Guide to Code Modification (Codemod) Tools and AST Transformations
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 26, 2023 · Fundamentals

Understanding the Strategy Pattern in JavaScript

This article explains the Strategy design pattern, demonstrates its implementation in JavaScript through three code versions, discusses the drawbacks of naïve if‑else approaches, and outlines the pattern's advantages and disadvantages for creating flexible, maintainable code.

Design PatternsJavaScriptRefactoring
0 likes · 6 min read
Understanding the Strategy Pattern in JavaScript
IT Services Circle
IT Services Circle
Sep 25, 2023 · Frontend Development

Understanding and Using Regular Expressions in JavaScript

This article provides a comprehensive, beginner‑friendly guide to JavaScript regular expressions, covering core concepts, syntax, creation methods, modifiers, character classes, quantifiers, special characters, capture groups, look‑ahead/look‑behind assertions, common string methods, practical use cases such as validation, search‑replace, data extraction, cleaning, and a list of useful online regex tools.

JavaScriptString ManipulationValidation
0 likes · 27 min read
Understanding and Using Regular Expressions in JavaScript
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 25, 2023 · Frontend Development

Useful Vue.js Libraries to Accelerate Frontend Development

This article introduces several popular open‑source Vue.js libraries—including vueuse, vue‑js‑modal, vue‑wait, good‑table, vue‑notification, tree‑select, and egjs‑infinite‑grid—detailing their features, star counts, usage examples, and GitHub links to help developers quickly enhance their Vue projects.

JavaScriptLibrariesVue
0 likes · 5 min read
Useful Vue.js Libraries to Accelerate Frontend Development
php Courses
php Courses
Sep 22, 2023 · Frontend Development

Implementing Data Visualization with PHP and Google Charts

This tutorial explains how to use PHP to fetch JSON data and integrate Google Charts, providing step‑by‑step code examples for preparing the environment, retrieving data, generating a pie chart with JavaScript, and displaying it within an HTML page.

Google ChartsJavaScriptPHP
0 likes · 6 min read
Implementing Data Visualization with PHP and Google Charts
php Courses
php Courses
Sep 22, 2023 · Frontend Development

19 Common JavaScript Performance Pitfalls and How to Avoid Them

This article identifies nineteen common performance pitfalls in JavaScript and Node.js applications—ranging from improper variable scope and inefficient DOM manipulation to blocking I/O, unoptimized loops, and excessive dependencies—providing illustrative code examples and actionable solutions to improve speed and responsiveness.

JavaScriptNode.jsOptimization
0 likes · 16 min read
19 Common JavaScript Performance Pitfalls and How to Avoid Them
21CTO
21CTO
Sep 12, 2023 · Frontend Development

Why Turbo’s Creator Dropped TypeScript and What It Means for Front‑End Dev

The article explains why Ruby on Rails creator David Heinemeier Hansson removed TypeScript from Turbo 8, outlines community backlash, and discusses the broader implications for JavaScript‑centric front‑end development and the Hotwire ecosystem.

HotwireJavaScriptRuby on Rails
0 likes · 5 min read
Why Turbo’s Creator Dropped TypeScript and What It Means for Front‑End Dev
php Courses
php Courses
Sep 10, 2023 · Frontend Development

Implementing Dynamic Add/Remove Form Items with Vue.js

This article guides developers through building a Vue.js component that supports dynamically adding, removing, and submitting multiple form entries, complete with step-by-step explanations and full code examples for handling form data on the client side.

Dynamic FormsJavaScriptVue.js
0 likes · 5 min read
Implementing Dynamic Add/Remove Form Items with Vue.js
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 8, 2023 · Frontend Development

Advanced JavaScript Methods: getBoundingClientRect, IntersectionObserver, createNodeIterator, getComputedStyle, requestAnimationFrame

This article introduces five lesser‑known but powerful JavaScript browser APIs—getBoundingClientRect, IntersectionObserver, createNodeIterator, getComputedStyle, and requestAnimationFrame—explaining their properties, typical application scenarios such as drag‑and‑drop, lazy loading, DOM traversal, style inspection, and animation timing, and providing ready‑to‑use code examples.

Browser APIsDOMJavaScript
0 likes · 11 min read
Advanced JavaScript Methods: getBoundingClientRect, IntersectionObserver, createNodeIterator, getComputedStyle, requestAnimationFrame
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 8, 2023 · Frontend Development

Why Front‑End Projects Should Embrace TypeScript

The article argues that, despite some developers claiming TypeScript reduces productivity, its advantages—such as catching type errors early, preventing runtime ReferenceErrors, and easing maintenance—outweigh the drawbacks, and market trends show TS adoption will continue to grow in front‑end development.

JavaScriptTypeScriptcareer
0 likes · 6 min read
Why Front‑End Projects Should Embrace TypeScript
Sohu Tech Products
Sohu Tech Products
Sep 6, 2023 · Frontend Development

Understanding Pre‑rendering and Speculation Rules in Modern Web Development

The article explains modern pre‑rendering techniques—historical prefetched and prerendered links, Chrome’s new predictive full‑page rendering, and the Speculation Rules API that lets developers declaratively or dynamically specify prefetch and prerender JSON rules, while noting same‑origin limits, debugging tools, and performance benefits for Core Web Vitals.

ChromeHTMLJavaScript
0 likes · 11 min read
Understanding Pre‑rendering and Speculation Rules in Modern Web Development
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 4, 2023 · Frontend Development

Controlling Concurrent Requests in JavaScript with Promise.all, Promise.race, and async/await

This article explains how to manage multiple asynchronous HTTP requests in modern web development by using Promise.all, Promise.race, async/await, manual counters, and third‑party libraries, providing complete code examples and best‑practice recommendations for limiting concurrency and improving application performance.

Async/AwaitJavaScriptPromise
0 likes · 8 min read
Controlling Concurrent Requests in JavaScript with Promise.all, Promise.race, and async/await
Programmer DD
Programmer DD
Sep 2, 2023 · Frontend Development

Create Interactive Flowcharts Fast with LogicFlow – A Quick Start Guide

This article introduces LogicFlow, an open‑source JavaScript framework for building interactive flowcharts, ER diagrams, and BPMN processes, and provides a concise two‑step quick‑start guide—including CDN and npm installation and a complete example code—to help developers integrate flexible diagramming into their applications.

FlowchartJavaScriptLogicFlow
0 likes · 5 min read
Create Interactive Flowcharts Fast with LogicFlow – A Quick Start Guide
Weimob Technology Center
Weimob Technology Center
Sep 1, 2023 · Frontend Development

How to Auto-Extract Theme Colors from Images with JavaScript: Median‑Cut & Octree Explained

This article explains how to automatically extract a picture’s dominant theme colors in the browser using JavaScript, covering the problem background, analysis of common methods, advantages of client‑side processing, and step‑by‑step implementation of median‑cut and octree algorithms with code examples.

JavaScriptcolor extractionfrontend
0 likes · 19 min read
How to Auto-Extract Theme Colors from Images with JavaScript: Median‑Cut & Octree Explained
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 31, 2023 · Fundamentals

JavaScript Design Patterns: Factory Method, Abstract Factory, Singleton, Builder, Prototype and More

This article introduces JavaScript design patterns—covering creational, structural, and behavioral categories—and provides clear explanations and complete code examples for patterns such as Factory Method, Abstract Factory, Singleton, Builder, Prototype, Adapter, Decorator, Proxy, Facade, Bridge, Composite, Flyweight, Strategy, Template Method, Observer, Iterator, Chain of Responsibility, Command, Memento, State, Visitor, Mediator and Interpreter, helping developers write cleaner, more maintainable code.

BuilderDesign PatternsFactory Method
0 likes · 35 min read
JavaScript Design Patterns: Factory Method, Abstract Factory, Singleton, Builder, Prototype and More
JD Retail Technology
JD Retail Technology
Aug 30, 2023 · Frontend Development

Building a ChatGPT-Powered Chrome Extension for Word Translation

This tutorial walks through creating a Chrome extension that uses the ChatGPT API to translate selected text, covering setup with OpenAI's quickstart, key code snippets for prompts, content‑script and background service worker, Vite plugin usage, deployment on Vercel, and runtime considerations.

APIChatGPTChrome Extension
0 likes · 5 min read
Building a ChatGPT-Powered Chrome Extension for Word Translation
KooFE Frontend Team
KooFE Frontend Team
Aug 28, 2023 · Frontend Development

Server‑Driven UI: Transforming Frontend Development with Real‑World Benefits

Server‑driven UI, a technique that delivers UI structures via APIs from the server, enables faster iteration, dynamic personalization, and backend‑frontend collaboration, while presenting challenges like app‑store compliance and offline support; the article explains its principles, advantages, implementation steps, and showcases Instagram’s real‑world usage.

APIInstagramJavaScript
0 likes · 15 min read
Server‑Driven UI: Transforming Frontend Development with Real‑World Benefits
MaGe Linux Operations
MaGe Linux Operations
Aug 28, 2023 · Frontend Development

How to Block Debugger and Prevent Frontend Code Inspection

This article explains why developers forbid debugging in web pages, demonstrates how repeated debugger statements can hide API calls, and provides multiple counter‑measures—including breakpoint deactivation, script ignore lists, Function‑based rewrites, and advanced obfuscated code—to protect frontend JavaScript from inspection.

Anti-debuggingJavaScriptcode-obfuscation
0 likes · 5 min read
How to Block Debugger and Prevent Frontend Code Inspection
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 26, 2023 · Frontend Development

Responsive Full‑Page Scroll Implementation with Vue 3

This article explains how to create a responsive full‑screen scrolling effect using Vue 3, detailing the concept, requirements, underlying principles, and providing complete HTML, JavaScript, and CSS code to handle mouse wheel, touch events, dynamic height calculation, and indicator navigation.

CSSFullPageScrollHTML
0 likes · 12 min read
Responsive Full‑Page Scroll Implementation with Vue 3
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 25, 2023 · Frontend Development

Implementing createPromise and createRetryPromise Utility Functions in JavaScript

This article explains the design and step‑by‑step implementation of two JavaScript utility functions—createPromise for exposing a Promise’s resolve/reject handlers and createRetryPromise for adding configurable retry logic—complete with TypeScript typings, detailed code walkthroughs, and a practical network‑request example.

JavaScriptPromiseRetry
0 likes · 11 min read
Implementing createPromise and createRetryPromise Utility Functions in JavaScript
Ximalaya Technology Team
Ximalaya Technology Team
Aug 24, 2023 · Frontend Development

Using Redux Toolkit for State Management in React and React Native

This article demonstrates how to replace classic Redux boilerplate with Redux Toolkit in a React Todo List app by creating a slice, configuring the store, providing it via Provider, and using useSelector and useDispatch, highlighting the simplified setup and clearer state management for both React and React Native.

JavaScriptReActRedux Toolkit
0 likes · 10 min read
Using Redux Toolkit for State Management in React and React Native
360 Tech Engineering
360 Tech Engineering
Aug 23, 2023 · Frontend Development

Micro‑Frontend Architecture with MonoRepo and Qiankun: Design, Technology Selection, and Implementation Practices

This article describes how a team consolidated six PC and H5 projects by adopting a micro‑frontend architecture based on MonoRepo and Qiankun, evaluates popular micro‑frontend solutions, explains the chosen technology stack, outlines step‑by‑step implementation details, and shares the problems encountered and their resolutions.

Frontend ArchitectureJavaScriptMonorepo
0 likes · 8 min read
Micro‑Frontend Architecture with MonoRepo and Qiankun: Design, Technology Selection, and Implementation Practices
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 21, 2023 · Frontend Development

Common Vue2 Code Smells and How to Refactor Them

This article examines typical Vue2 code‑smell patterns—such as chaotic project structures, confusing naming conventions, oversized components, complex expressions, repetitive markup, tangled conditional logic, hard‑coded values, overused mixins, missing component names, and lack of comments—and provides concrete refactoring strategies to improve maintainability and readability.

JavaScriptVue.jsbest practices
0 likes · 14 min read
Common Vue2 Code Smells and How to Refactor Them
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 16, 2023 · Game Development

Creating a Naruto-Themed 3D World with three.js: Model Loading, Controls, Animation, and Octree Collision

This tutorial walks through building a simple Naruto-inspired 3D scene using three.js, covering model acquisition, character creation, keyboard controls, rotation handling, animation state management, camera integration, octree-based collision detection, and troubleshooting common issues such as camera‑character alignment and jump physics.

Collision DetectionJavaScriptThree.js
0 likes · 22 min read
Creating a Naruto-Themed 3D World with three.js: Model Loading, Controls, Animation, and Octree Collision
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 14, 2023 · Frontend Development

Three.js API Wrapper and 3D Visualization in a Vue3 Project

This article introduces the fundamentals of Three.js, demonstrates how to encapsulate its core APIs into a Viewer class, and walks through building a Vue3-based 3D visualization project with scene, camera, lighting, model loading, skybox, mouse interaction, and helper utilities.

3d-visualizationJavaScriptVue3
0 likes · 13 min read
Three.js API Wrapper and 3D Visualization in a Vue3 Project
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 11, 2023 · Frontend Development

Deep Dive into React useEffect and useLayoutEffect: Data Structures, Lifecycle, and Implementation Details

This article explains how React manages side‑effects with useEffect and useLayoutEffect, covering the underlying Effect data structure, the mount and update phases, the commit pipeline (before‑mutation, mutation, layout), and the differences in timing and execution between the two hooks.

HooksJavaScriptuseEffect
0 likes · 28 min read
Deep Dive into React useEffect and useLayoutEffect: Data Structures, Lifecycle, and Implementation Details
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 10, 2023 · Frontend Development

Creating a Time‑Travel Tunnel Effect with Three.js

This tutorial walks through the fundamentals of Three.js—setting up a scene, camera, lights, and meshes—to build a rotating cylindrical tunnel with animated textures and color changes, culminating in a complete time‑machine visual that runs in a web browser.

3DJavaScriptWebGL
0 likes · 11 min read
Creating a Time‑Travel Tunnel Effect with Three.js
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 8, 2023 · Frontend Development

Best Practices for Ant Design Forms, Dynamic Form Handling, and Component Organization in React

This article reviews practical guidelines for building maintainable Ant Design forms in React, covering layout strategies, dynamic form techniques, component encapsulation, table and tab implementations, CSS styling conventions, architecture considerations, and custom hooks to improve code quality and developer productivity.

Dynamic FormFormJavaScript
0 likes · 17 min read
Best Practices for Ant Design Forms, Dynamic Form Handling, and Component Organization in React
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 5, 2023 · Frontend Development

How to Build, Optimize, and Publish a Full‑Featured CLI Scaffolding Tool for Frontend Projects

This tutorial walks you through creating a 100‑line Node.js CLI scaffolding tool that supports global and local installation, interactive project and template selection, command‑line arguments, loading animations, overwrite prompts, dynamic template fetching via GitHub API, and finally publishing the package to npm for frontend engineers.

CLIJavaScriptNode.js
0 likes · 22 min read
How to Build, Optimize, and Publish a Full‑Featured CLI Scaffolding Tool for Frontend Projects
21CTO
21CTO
Aug 3, 2023 · Fundamentals

What Is WebAssembly and Why It Matters for Modern Web Development

This article explains what WebAssembly is, why it is needed for high‑performance web applications, how it works internally, which languages can target it, typical use cases, and provides practical examples of loading and using WebAssembly modules in browsers and Node.js.

CompilationJavaScriptPerformance
0 likes · 11 min read
What Is WebAssembly and Why It Matters for Modern Web Development
Sohu Tech Products
Sohu Tech Products
Aug 2, 2023 · Frontend Development

How JSX Works and Building a Simple JSX Parser from Scratch

This article explains the fundamentals of JSX, why JSX expressions must have a single root element, and provides a step‑by‑step guide with complete code to implement a minimal JSX parser that translates JSX syntax into plain JavaScript createElement calls.

JSXJavaScriptParser
0 likes · 13 min read
How JSX Works and Building a Simple JSX Parser from Scratch
Open Source Tech Hub
Open Source Tech Hub
Aug 2, 2023 · Backend Development

How NativePHP Bridges Laravel and Electron for Seamless Desktop Apps

This article explains how NativePHP integrates Laravel with Electron (and future Tauri) by providing a complete API, detailing installation, the boot process, core workflow involving Express and PHP servers, event handling, window management, and the benefits of using a unified backend‑centric approach.

ElectronJavaScriptNativePHP
0 likes · 10 min read
How NativePHP Bridges Laravel and Electron for Seamless Desktop Apps
政采云技术
政采云技术
Aug 2, 2023 · Frontend Development

Encapsulating DOM Exposure: From Scroll Listener to IntersectionObserver

This article describes how to abstract and improve DOM exposure tracking by first using a scroll listener with getBoundingClientRect and then refactoring to a more robust IntersectionObserver implementation, including code examples, configuration details, and compatibility considerations.

DOMExposureIntersectionObserver
0 likes · 8 min read
Encapsulating DOM Exposure: From Scroll Listener to IntersectionObserver
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 2, 2023 · Frontend Development

Implementing a Custom Promise in JavaScript: A Comprehensive Guide

This article provides a step‑by‑step tutorial on building a custom Promise implementation in JavaScript, covering basic functionality, handling of asynchronous logic, chaining, thenable objects, microtasks, error handling, static methods like resolve, reject, all, race, allSettled, any, and additional features such as catch and finally.

AsynchronousCustomImplementationJavaScript
0 likes · 32 min read
Implementing a Custom Promise in JavaScript: A Comprehensive Guide
Zhuanzhuan Tech
Zhuanzhuan Tech
Aug 1, 2023 · Frontend Development

Understanding and Using localStorage and sessionStorage in Web Development

This article provides a comprehensive overview of browser localStorage and sessionStorage, covering their differences, compatibility, API usage, storage limits, performance tips, and practical applications such as habit tracking, first‑open prompts, and reducing redundant API calls.

JavaScriptWeb Storagefrontend
0 likes · 15 min read
Understanding and Using localStorage and sessionStorage in Web Development
Weimob Technology Center
Weimob Technology Center
Jul 28, 2023 · Frontend Development

JavaScript Sandboxes for Secure Micro‑Frontend Apps: Techniques & Examples

This article explains the concept of sandbox security mechanisms, explores their use cases in iPaaS API orchestration and micro‑frontend applications, compares eval, Function, with + proxy techniques, presents JavaScript, iframe and Node vm sandbox implementations, and details practical deployments within the Kraken framework and a centralized approval service.

JavaScriptNode.jsSandbox
0 likes · 18 min read
JavaScript Sandboxes for Secure Micro‑Frontend Apps: Techniques & Examples
Sohu Tech Products
Sohu Tech Products
Jul 26, 2023 · Frontend Development

In‑Depth Analysis of LeaferJS Rendering Engine Architecture and Performance

This article examines the architecture, rendering pipeline, update mechanism, and event‑picking strategy of the LeaferJS canvas library, illustrating how its lightweight node creation, selective full‑ and partial‑rendering, and optimized hit‑testing achieve high performance compared with alternatives like Konva.

CanvasJavaScriptLeaferJS
0 likes · 14 min read
In‑Depth Analysis of LeaferJS Rendering Engine Architecture and Performance
ByteFE
ByteFE
Jul 19, 2023 · Frontend Development

Using WebAssembly to Optimize Particle System Performance in Game Engine

This article explores how WebAssembly can be used to optimize the performance of particle system calculations in a game engine, reducing CPU load and improving frame rates by offloading computations to WebAssembly modules.

Game EngineJavaScriptParticle System
0 likes · 14 min read
Using WebAssembly to Optimize Particle System Performance in Game Engine
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 17, 2023 · Frontend Development

Master 9 Essential JavaScript Techniques: Dynamic Loading, Templates, Reduce, and More

This article walks through nine practical JavaScript patterns—including dynamic script loading, a lightweight template engine, data transformation with reduce, default parameters, one‑time execution, currying, singleton implementation, a simple CommonJS loader, and recursive property access—providing clear code examples for each.

Dynamic LoadingJavaScriptcurry
0 likes · 11 min read
Master 9 Essential JavaScript Techniques: Dynamic Loading, Templates, Reduce, and More
ByteFE
ByteFE
Jul 17, 2023 · Frontend Development

Understanding WebGL, Its Frameworks, and Performance Optimization Strategies

This article explains what WebGL is, surveys popular 2D and 3D JavaScript frameworks, analyzes large‑scene performance bottlenecks, and presents concrete optimization techniques such as custom GeoJSON compression, fragment reduction, draw‑call batching, mesh merging, LOD, face culling, and Web Workers, concluding with a brief overview of the emerging WebGPU API.

3D graphicsJavaScriptWebGL
0 likes · 24 min read
Understanding WebGL, Its Frameworks, and Performance Optimization Strategies
DaTaobao Tech
DaTaobao Tech
Jul 17, 2023 · Fundamentals

Comprehensive Overview of 23 Design Patterns with Examples and Code

This article provides a systematic, example‑driven guide to all 23 classic design patterns—covering creational, structural, and behavioral types—explaining their intent, real‑world analogies, benefits, and offering clear diagrams and runnable code snippets to illustrate each pattern in practice.

BehavioralCreationalDesign Patterns
0 likes · 40 min read
Comprehensive Overview of 23 Design Patterns with Examples and Code
21CTO
21CTO
Jul 16, 2023 · Frontend Development

What’s Driving Web Development in 2023? Key Trends You Must Know

The 2023 web development landscape is shifting toward meta‑frameworks with server‑side rendering, edge‑computing and serverless functions, revived databases, modern JavaScript runtimes, monorepos, utility‑first CSS, end‑to‑end type safety, new build tools, and AI‑assisted coding, reshaping how developers build full‑stack applications.

AIFrameworksJavaScript
0 likes · 21 min read
What’s Driving Web Development in 2023? Key Trends You Must Know
Yunxuetang Frontend Team
Yunxuetang Frontend Team
Jul 14, 2023 · Frontend Development

Exploring Modern Frontend Techniques: Micro‑Frontends, Pixi.js, Import Maps & More

This article curates a series of frontend engineering insights, covering request‑optimization strategies, an introduction to micro‑frontends with qiankun, building a custom animated chart as an alternative to ECharts, quick Pixi.js basics, the new JavaScript Import Maps feature, and a brief overview of the Cloud Academy frontend team.

Import MapsJavaScriptPerformance
0 likes · 3 min read
Exploring Modern Frontend Techniques: Micro‑Frontends, Pixi.js, Import Maps & More
Amap Tech
Amap Tech
Jul 13, 2023 · Frontend Development

Implementing Automatic Cruise Navigation on AMap with Three.js

The article walks through building an automatic cruise navigation effect on AMap with Three.js by acquiring route data, merging GeoJSON paths, loading a 3D vehicle model, animating its movement and camera follow using TWEEN, and blending the NPC layer with satellite and 3DTiles layers for a smooth autonomous navigation experience.

AmapAuto NavigationJavaScript
0 likes · 16 min read
Implementing Automatic Cruise Navigation on AMap with Three.js
TAL Education Technology
TAL Education Technology
Jul 13, 2023 · Fundamentals

Understanding Cyclomatic Complexity and Code Quality Metrics

This article explains cyclomatic complexity, its calculation formulas, practical examples, and how to measure and improve code quality using tools like SonarQube, ESLint, and codeMetrics, while also presenting refactoring techniques such as single‑responsibility, open‑closed, polymorphism, early returns, and functional programming to reduce complexity.

JavaScriptRefactoringSonarQube
0 likes · 13 min read
Understanding Cyclomatic Complexity and Code Quality Metrics
Sohu Tech Products
Sohu Tech Products
Jul 12, 2023 · Frontend Development

IndexedDB Overview and Practical Guide for Frontend CRUD Operations

This article provides a comprehensive introduction to IndexedDB, covering its concepts, key objects, versioning, transactions, and CRUD operations with detailed JavaScript examples, enabling developers to quickly build client‑side databases for modern web applications.

CRUDIndexedDBJavaScript
0 likes · 23 min read
IndexedDB Overview and Practical Guide for Frontend CRUD Operations
Python Programming Learning Circle
Python Programming Learning Circle
Jul 12, 2023 · Fundamentals

July 2023 TIOBE Index: C++ Narrows Gap with C and Major Shifts in the Top 20 Programming Languages

The July 2023 TIOBE Index reveals that C++ has almost caught up with C, while JavaScript climbs to a historic high of #6, several languages return to record positions, and the full Top 100 ranking—including a detailed list of languages ranked 51‑100—is presented with trend charts and methodological notes.

C++JavaScriptLanguage Popularity
0 likes · 4 min read
July 2023 TIOBE Index: C++ Narrows Gap with C and Major Shifts in the Top 20 Programming Languages
Yunxuetang Frontend Team
Yunxuetang Frontend Team
Jul 7, 2023 · Frontend Development

Latest Front‑End Innovations: Chrome PiP, IndexedDB, Performance Hacks, Vue & ES Features

This roundup covers Chrome’s new Document Picture‑in‑Picture API, WhatsApp’s shift away from Electron, a deep‑dive into IndexedDB versus other web storage options, a real‑world performance analysis case, Vue’s dynamic image handling with require, and the latest ES7‑ES12 language features.

ChromeJavaScriptPerformance
0 likes · 3 min read
Latest Front‑End Innovations: Chrome PiP, IndexedDB, Performance Hacks, Vue & ES Features
php Courses
php Courses
Jul 5, 2023 · Frontend Development

Understanding var, let, and const in JavaScript

This article explains the differences between JavaScript's var, let, and const declarations, covering their scopes, hoisting behavior, and mutability, and provides clear code examples for each. It also highlights how const variables can still be modified when they hold objects or arrays, helping developers choose the right keyword for reliable code.

JavaScriptScopeconst
0 likes · 5 min read
Understanding var, let, and const in JavaScript
TAL Education Technology
TAL Education Technology
Jun 29, 2023 · Frontend Development

Survey of Front‑End Audio Recording Libraries and Browser Compatibility

This article surveys several JavaScript audio‑recording libraries, compares their supported formats, evaluates their performance across browsers, and summarizes front‑end recording techniques—including MediaRecorder, WebRTC + AudioContext, and legacy Flash—while highlighting compatibility issues of major browser engines.

JavaScriptWeb Audio APIaudio recording
0 likes · 13 min read
Survey of Front‑End Audio Recording Libraries and Browser Compatibility
Programmer DD
Programmer DD
Jun 27, 2023 · Operations

Why Firefox Crashes on Linux Image Search: Hidden Kernel & AI Code Bug

Mozilla discovered that Firefox crashes on Linux, especially older Debian‑based distributions, whenever users perform an image search on Google; the issue stems from a recent AI‑generated JavaScript function allocating excessive variables, exposing a Linux kernel stack‑limit bug that was fixed in kernel 4.20.

Browser CrashDebianFirefox
0 likes · 5 min read
Why Firefox Crashes on Linux Image Search: Hidden Kernel & AI Code Bug
21CTO
21CTO
Jun 26, 2023 · Frontend Development

Which Front‑End Framework Dominates 2023? A Deep Dive into the Top 11 Picks

This article reviews the 2023 front‑end framework landscape, summarizing survey data, current trends such as hydration, SPA and JAMstack, and providing detailed descriptions of the eleven most popular frameworks—from React and Angular to Qwik—helping developers choose the right tool for their projects.

2023JavaScriptSPA
0 likes · 15 min read
Which Front‑End Framework Dominates 2023? A Deep Dive into the Top 11 Picks
HelloTech
HelloTech
Jun 26, 2023 · Frontend Development

Introducing Quarkc: A Framework‑Agnostic Web Component Toolkit

Quarkc, the HelloBike‑developed framework‑agnostic web component toolkit, builds native Web Components without hidden magic, letting developers write once and run anywhere across Vue, React, Svelte, Angular and plain HTML, while offering a tiny bundle size, high performance and simple npm‑based setup.

Framework-agnosticFront-endJavaScript
0 likes · 6 min read
Introducing Quarkc: A Framework‑Agnostic Web Component Toolkit
Yunxuetang Frontend Team
Yunxuetang Frontend Team
Jun 25, 2023 · Frontend Development

Front‑End Mastery: ChatGPT Pair‑Programming, Clean JavaScript, and UI Metrics

This article curates recent front‑end engineering insights, including a ChatGPT‑driven pair‑programming approach using the driver‑observer model, a rapid 200‑line Vue‑like framework built with AI assistance, practical JavaScript code‑cleanliness techniques, strategies for optimistic UI design, and a lightweight method for measuring user‑experience metrics.

ChatGPTJavaScriptUI design
0 likes · 4 min read
Front‑End Mastery: ChatGPT Pair‑Programming, Clean JavaScript, and UI Metrics
21CTO
21CTO
Jun 21, 2023 · Frontend Development

How a Solo Ukrainian Developer Built a Free Photoshop Alternative with Pure JavaScript

This article recounts how Ivan Kutskir spent seven years creating Photopea, a fully client‑side, web‑based Photoshop clone built entirely with JavaScript, detailing his background, development challenges, technical architecture, user growth, monetization strategies, and lessons for aspiring developers.

JavaScriptPhotopeacase study
0 likes · 12 min read
How a Solo Ukrainian Developer Built a Free Photoshop Alternative with Pure JavaScript
政采云技术
政采云技术
Jun 21, 2023 · Frontend Development

Analysis of Common Frontend Issues

This article examines typical frontend development pitfalls—including numeric type quirks, precision loss, function length, object ordering, asynchronous timer inaccuracies, race conditions, CSS positioning, stacking contexts, performance bottlenecks, and compatibility concerns—providing explanations, code examples, and practical mitigation strategies for developers.

CSSJavaScriptPerformance
0 likes · 18 min read
Analysis of Common Frontend Issues
Test Development Learning Exchange
Test Development Learning Exchange
Jun 17, 2023 · Frontend Development

Building a Smart XPath Helper Chrome Extension with Python and JavaScript

This tutorial explains how to develop a Chrome extension that assists developers in locating web page elements and generating XPath expressions by outlining the plugin's structure, providing complete configuration files, JavaScript code, HTML/CSS UI, and step‑by‑step instructions for loading and testing the extension.

Chrome ExtensionJavaScriptPython
0 likes · 7 min read
Building a Smart XPath Helper Chrome Extension with Python and JavaScript
php Courses
php Courses
Jun 17, 2023 · Mobile Development

Implementing Voice Functionality in WeChat Mini Programs

This guide explains how to integrate WeChat Mini Program voice capabilities by importing the recorder and audio APIs, recording audio, uploading for speech recognition, and playing back the result, with example code snippets for each step.

JavaScriptVoice APIWeChat mini program
0 likes · 3 min read
Implementing Voice Functionality in WeChat Mini Programs
Test Development Learning Exchange
Test Development Learning Exchange
Jun 16, 2023 · Frontend Development

Building a Chrome Extension with Python and Flask for JSON Format Validation

This article provides a step‑by‑step guide to creating a Google Chrome extension using Python and Flask that validates JSON data on the current page, covering prerequisite setup, project structure, manifest configuration, content and background scripts, backend server implementation, and testing procedures.

Chrome ExtensionFlaskJavaScript
0 likes · 8 min read
Building a Chrome Extension with Python and Flask for JSON Format Validation
Test Development Learning Exchange
Test Development Learning Exchange
Jun 15, 2023 · Frontend Development

How to Build a Google Chrome Full-Page Screenshot Extension with Python and Selenium

This article provides a step-by-step guide to creating a Google Chrome extension that captures full-page screenshots, detailing the required project structure, manifest configuration, JavaScript background and content scripts, and a Python Selenium script for automated screenshot capture and saving.

Chrome ExtensionJavaScriptPython
0 likes · 7 min read
How to Build a Google Chrome Full-Page Screenshot Extension with Python and Selenium
php Courses
php Courses
Jun 15, 2023 · Frontend Development

Using Vue.js 3 Teleport to Build Modals, Notifications, and Dialogs

This article explains Vue.js 3's Teleport feature, covering its core concepts and providing step‑by‑step code examples for creating modals and notification components that render outside their original component hierarchy.

JavaScriptNotificationTeleport
0 likes · 6 min read
Using Vue.js 3 Teleport to Build Modals, Notifications, and Dialogs