Tagged articles

JavaScript

2481 articles · Page 14 of 25
Full-Stack Trendsetter
Full-Stack Trendsetter
Jan 27, 2022 · Frontend Development

Essential Moment.js Methods: A Complete Guide

This article provides a comprehensive reference for Moment.js, covering how to add or subtract time, set moments to the start or end of units, format dates with tokens, handle localization, compute relative times, and convert moments to native values, all illustrated with concrete code examples.

FormattingJavaScriptdate manipulation
0 likes · 15 min read
Essential Moment.js Methods: A Complete Guide
Full-Stack Trendsetter
Full-Stack Trendsetter
Jan 27, 2022 · Fundamentals

Understanding the Difference Between JavaScript Stack and Heap Memory

The article explains how JavaScript engines store variables in stack and heap memory, clarifies why const primitives are immutable while object properties can change, shows that new objects reside in heap, and discusses allocation efficiency and garbage‑collection behavior of both memory regions.

JavaScriptconstgarbage collection
0 likes · 5 min read
Understanding the Difference Between JavaScript Stack and Heap Memory
NiuNiu MaTe
NiuNiu MaTe
Jan 26, 2022 · Frontend Development

Master the Observer Pattern: A Fun Story‑Driven Front‑End Tutorial

Through a playful narrative featuring SpongeBob and a rival boss, this article explains the high‑frequency front‑end interview topic of the Observer pattern, illustrates its core concepts, shows one‑to‑many relationships, and provides a complete JavaScript implementation with clear code examples.

Front-endJavaScriptObserver Pattern
0 likes · 5 min read
Master the Observer Pattern: A Fun Story‑Driven Front‑End Tutorial
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Jan 24, 2022 · Fundamentals

Mastering Unified: Process Markdown, HTML, and Text with AST Plugins

This article introduces the Unified text‑processing ecosystem, explains its AST‑based core, surveys major plugins such as remark, rehype, retext, and demonstrates practical usage examples—including Node.js documentation, dumi, and react‑markdown—to help developers understand its capabilities, workflow, and integration patterns.

ASTHTMLJavaScript
0 likes · 11 min read
Mastering Unified: Process Markdown, HTML, and Text with AST Plugins
Programmer DD
Programmer DD
Jan 21, 2022 · Frontend Development

Master Chinese Poetry Layout on the Web with Heti

Discover how the open‑source Heti project lets you effortlessly apply traditional Chinese typography to web pages, offering grid‑aligned layouts, built‑in ancient poem styles, dark‑mode support, and simple CSS/JS integration for flawless text rendering.

CSSChinese typographyHeti
0 likes · 5 min read
Master Chinese Poetry Layout on the Web with Heti
KooFE Frontend Team
KooFE Frontend Team
Jan 21, 2022 · Frontend Development

Why Playwright Is Becoming the Top Choice for Cross‑Browser UI Testing

Playwright, Microsoft’s open‑source end‑to‑end UI testing framework, supports all major browsers, multiple programming languages, isolated contexts, auto‑waiting, and powerful selectors, making it a fast‑growing alternative to Selenium for developers seeking reliable, cross‑browser automation.

JavaScriptPlaywrightPython
0 likes · 6 min read
Why Playwright Is Becoming the Top Choice for Cross‑Browser UI Testing
Hacker Afternoon Tea
Hacker Afternoon Tea
Jan 19, 2022 · Frontend Development

How to Contribute: Browser SDK Integration Testing Guide for Sentry

This guide explains how Sentry's browser SDK integration tests are built with Playwright, covering test structure, helpers, fixtures, local execution commands, troubleshooting tips, and step‑by‑step instructions for setting up and running the tests across Chromium, Firefox, and WebKit.

Browser SDKIntegration TestingJavaScript
0 likes · 7 min read
How to Contribute: Browser SDK Integration Testing Guide for Sentry
ByteFE
ByteFE
Jan 19, 2022 · Frontend Development

Spring Festival Mini‑Game Development with Vue.js: Mechanics, Bullet Chat, Sound, and Quiz System

This article walks through the creation of a Spring Festival themed mini‑game using Vue.js, covering game rules, global settings, menu generation, sound handling, bullet‑chat implementation, enemy (NianShou) behavior, firecracker control, bullet mechanics, a timed quiz system, and end‑game handling, all illustrated with code snippets.

JavaScriptQuizVue.js
0 likes · 19 min read
Spring Festival Mini‑Game Development with Vue.js: Mechanics, Bullet Chat, Sound, and Quiz System
转转QA
转转QA
Jan 19, 2022 · Frontend Development

Getting Started with UI Automation Testing Using Puppeteer and Mocha

This tutorial explains how to set up and use Puppeteer together with the Mocha test framework to create, run, and report UI automation test cases for web and H5 applications, covering installation, a demo script, selector handling, and visual test reporting.

JavaScriptNode.jsPuppeteer
0 likes · 6 min read
Getting Started with UI Automation Testing Using Puppeteer and Mocha
Programmer DD
Programmer DD
Jan 19, 2022 · Frontend Development

Build a Web H.265 Player with WebAssembly and JavaScript – Step-by-Step Guide

This tutorial explains how to create a fully functional web H.265 video player using JavaScript stream demuxing, WebAssembly‑compiled FFmpeg, Canvas rendering and AudioContext, covering project setup, Nginx configuration, HTML integration, and the core modules and threads that drive playback.

FFmpegH.265JavaScript
0 likes · 5 min read
Build a Web H.265 Player with WebAssembly and JavaScript – Step-by-Step Guide
21CTO
21CTO
Jan 18, 2022 · Frontend Development

Boost Your Web Development Speed with 10 Essential VS Code Extensions

A seasoned front‑end engineer shares ten VS Code extensions—ranging from HTML snippets and CSS class IntelliSense to Live Server and bracket colorizers—that dramatically streamline coding, improve productivity, and simplify common web development tasks for developers of all levels.

CSSHTMLJavaScript
0 likes · 5 min read
Boost Your Web Development Speed with 10 Essential VS Code Extensions
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Jan 17, 2022 · Frontend Development

Unlock Smooth Animations: Mastering the Browser Rendering Pipeline and Performance

This article explains the browser's rendering pipeline—from render trees and layers to compositing and rasterization—and provides practical techniques such as passive event listeners, requestAnimationFrame, CSS containment, and will-change to dramatically improve animation smoothness and reduce layout and paint costs.

Animation PerformanceCSSFrontend Optimization
0 likes · 27 min read
Unlock Smooth Animations: Mastering the Browser Rendering Pipeline and Performance
21CTO
21CTO
Jan 16, 2022 · Frontend Development

Top Front-End Development Trends to Watch in 2022

This article explores the most popular front‑end development trends for 2022, covering JAMstack, progressive web apps, JavaScript dominance, single‑page sites, AI chatbots, Gatsby, and React, while explaining why these technologies are reshaping web user experiences.

2022 trendsGatsbyJamstack
0 likes · 7 min read
Top Front-End Development Trends to Watch in 2022
MaGe Linux Operations
MaGe Linux Operations
Jan 14, 2022 · Frontend Development

Turn Any Text Editor into a Powerful Markdown Viewer with Markdeep

Markdeep is an open‑source JavaScript plugin that transforms plain‑text files into fully rendered Markdown documents—including tables, LaTeX math, and charts—without installing extensions, and can be used by simply adding a single line to any text editor, making offline, browser‑based publishing effortless.

JavaScriptOpenSourcedocumentation
0 likes · 6 min read
Turn Any Text Editor into a Powerful Markdown Viewer with Markdeep
ELab Team
ELab Team
Jan 14, 2022 · Frontend Development

Mastering HTML5 Drag-and-Drop: Native Implementation, Events, and React Alternatives

This article explains how to implement native HTML5 drag‑and‑drop, details the required draggable attribute, describes all related events, shows a simple JavaScript demo, discusses common pitfalls such as repeated ondragover and ghosting, and compares popular React libraries for drag‑and‑drop.

Drag-and-DropHTML5JavaScript
0 likes · 12 min read
Mastering HTML5 Drag-and-Drop: Native Implementation, Events, and React Alternatives
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Jan 14, 2022 · Frontend Development

Understanding ZRender: Canvas Rendering, API Usage, and Custom Element Development

This article introduces the ZRender canvas rendering engine, explains its underlying Canvas2D API, demonstrates how to integrate ZRender into projects, and provides detailed code examples for creating shapes, handling events, adding animations, and extending the library with custom elements such as video support.

CanvasData VisualizationJavaScript
0 likes · 54 min read
Understanding ZRender: Canvas Rendering, API Usage, and Custom Element Development
ELab Team
ELab Team
Jan 13, 2022 · Fundamentals

Unlocking V8: How Fast and Slow Properties Boost JavaScript Performance

This article dives into V8's internal optimizations for object properties, covering fast and slow properties, in‑object storage, hidden classes, array holes, fast/slow arrays, and inline caches, and offers practical advice for writing high‑performance JavaScript code.

Hidden ClassesJavaScriptV8
0 likes · 19 min read
Unlocking V8: How Fast and Slow Properties Boost JavaScript Performance
ByteFE
ByteFE
Jan 12, 2022 · Fundamentals

Understanding the Differences Between null and undefined in JavaScript

This article explains the conceptual and practical differences between JavaScript's null and undefined values, covering their definitions, type checking methods, comparison behavior, arithmetic conversion, JSON serialization, and best practices for usage.

JSONJavaScriptNULL
0 likes · 10 min read
Understanding the Differences Between null and undefined in JavaScript
Tencent Cloud Developer
Tencent Cloud Developer
Jan 12, 2022 · Frontend Development

How to Write Readable JavaScript Code: Tips for Clean, Maintainable Code

The article explains why readable code matters, shows a messy JavaScript example, lists common readability problems, and provides concrete guidelines—consistent style, meaningful naming, proper comments, small files, shallow nesting—along with tooling tips such as ESLint, Standard Style, husky and lint‑staged to enforce them.

Code ReadabilityESLintJavaScript
0 likes · 10 min read
How to Write Readable JavaScript Code: Tips for Clean, Maintainable Code
ByteFE
ByteFE
Jan 10, 2022 · Frontend Development

Frontend Resource Download via CDN and Object Storage

This article explains how front-end developers can directly download resources from CDN or object storage using HTML5's download attribute and JavaScript workarounds, addressing CORS limitations and providing code examples for implementation.

Blob APICDNCORS
0 likes · 7 min read
Frontend Resource Download via CDN and Object Storage
21CTO
21CTO
Jan 8, 2022 · Fundamentals

Top Programming Languages to Learn in 2022: Rankings, Salaries & Insights

Based on LinkedIn, Indeed and Glassdoor data, CodingNomads ranks the most in-demand programming languages for 2022, highlighting Python, Java, JavaScript, C++, and others, and reveals average U.S. salaries, career prospects, and recommendations for beginners on which language to master first.

JavaJavaScriptTypeScript
0 likes · 8 min read
Top Programming Languages to Learn in 2022: Rankings, Salaries & Insights
Beike Product & Technology
Beike Product & Technology
Jan 7, 2022 · Frontend Development

Understanding React Hooks: Principles, Implementation, and Usage

This article explains why React introduced Hooks, how they solve state‑reuse and component‑complexity problems, details the internal fiber architecture behind useState, useReducer, useEffect, useLayoutEffect, useCallback and useMemo, and provides practical code examples for each.

HooksJavaScriptReAct
0 likes · 18 min read
Understanding React Hooks: Principles, Implementation, and Usage
JavaScript
JavaScript
Jan 4, 2022 · Frontend Development

Why parseInt Returns Unexpected Results and How to Use It Correctly

This article explains how JavaScript's parseInt function works, its handling of radix and floating‑point numbers, why it produces surprising results with very small values, and recommends safer alternatives like Math.floor for extracting integer parts.

JavaScriptMath.floorfloating-point
0 likes · 5 min read
Why parseInt Returns Unexpected Results and How to Use It Correctly
ELab Team
ELab Team
Jan 1, 2022 · Frontend Development

How to Build a Powerful Figma Plugin from Scratch: A Step‑by‑Step Guide

This article walks through the fundamentals of Figma plugin development, explaining the architecture of main and UI threads, demonstrating core features of the lego‑quiz‑figma plugin, and providing a complete workflow from creating the manifest to publishing the plugin, complete with code examples and best‑practice tips.

FigmaJavaScriptUI design
0 likes · 19 min read
How to Build a Powerful Figma Plugin from Scratch: A Step‑by‑Step Guide
ByteDance ADFE Team
ByteDance ADFE Team
Dec 30, 2021 · Frontend Development

Understanding Immer.js: Immutable Data Handling in JavaScript and React

Immer.js, created by the author of MobX, provides a lightweight immutable data library for JavaScript using ES6 proxies, offering simple APIs and seamless integration with React’s state management, while comparing its concepts, implementation details, and trade‑offs against Immutable.js and manual cloning techniques.

Immer.jsImmutable DataJavaScript
0 likes · 18 min read
Understanding Immer.js: Immutable Data Handling in JavaScript and React
Tencent Cloud Developer
Tencent Cloud Developer
Dec 30, 2021 · Frontend Development

How to Write Robust Front-End Code: Practices and Techniques

Writing robust front‑end code involves systematic exception handling, thorough input validation, disciplined code‑style practices such as default cases and optional chaining, careful selection of mature third‑party libraries, and proactive robustness testing like monkey testing to ensure the UI remains functional under unexpected conditions.

JavaScriptRobustnessbest practices
0 likes · 8 min read
How to Write Robust Front-End Code: Practices and Techniques
Alibaba Terminal Technology
Alibaba Terminal Technology
Dec 29, 2021 · Frontend Development

Why Modern Browsers Matter: A Deep Dive into Frontend Standardization

This article explores the evolution of browsers, the layered architecture of front‑end development, the role of standardization bodies, and how understanding browser internals—from multi‑process models to JavaScript engines—helps developers write more efficient, compatible, and future‑proof web applications.

HTMLJavaScriptStandardization
0 likes · 20 min read
Why Modern Browsers Matter: A Deep Dive into Frontend Standardization
Alibaba Terminal Technology
Alibaba Terminal Technology
Dec 28, 2021 · Fundamentals

What’s New in TC39’s December Meeting? Intl.Segmenter V2, Array.groupBy, RegExp Enhancements

The December TC39 meeting updated several proposals—including moving Intl.Segmenter to Stage 1 as V2, adding new timeZoneName values, expanding Intl.DisplayNames, introducing Array.prototype.groupBy and Array.fromAsync, and refining RegExp modifiers and buffer boundaries—while outlining the criteria for advancing proposals through the stages.

ECMAScript proposalsJavaScriptTC39
0 likes · 18 min read
What’s New in TC39’s December Meeting? Intl.Segmenter V2, Array.groupBy, RegExp Enhancements
DeWu Technology
DeWu Technology
Dec 23, 2021 · Frontend Development

Pure JavaScript Smooth Curve Generation Using Bézier Curves

This guide shows how to generate smooth, high‑quality curves from a polyline in pure JavaScript by computing quadratic and cubic Bézier points, deriving control points via angle‑bisector geometry, assembling the segments, and rendering and animating the result on an HTML5 canvas without external libraries.

Bézier CurveCanvasFront-end
0 likes · 10 min read
Pure JavaScript Smooth Curve Generation Using Bézier Curves
DeWu Technology
DeWu Technology
Dec 23, 2021 · Frontend Development

Canvas Performance Optimization Techniques

Canvas performance hinges on the number and size of drawn shapes, so optimizing by reducing draw‑calls, using layered or clipped rendering, and offloading heavy drawing to OffscreenCanvas or Web Workers can preserve frame rates and keep the UI responsive.

CanvasJavaScriptPerformance
0 likes · 15 min read
Canvas Performance Optimization Techniques
HomeTech
HomeTech
Dec 22, 2021 · Frontend Development

20 JavaScript One‑Liner Tricks for Frontend Development

This article presents twenty concise JavaScript one‑liner snippets that boost front‑end productivity, covering tasks such as retrieving cookies, converting RGB to hex, copying to clipboard, validating dates, calculating day differences, manipulating strings, arrays, and detecting dark mode, each illustrated with ready‑to‑use code examples.

JavaScriptOne-linercode snippets
0 likes · 8 min read
20 JavaScript One‑Liner Tricks for Frontend Development
Laravel Tech Community
Laravel Tech Community
Dec 20, 2021 · Backend Development

Node.js 12.22.8 (Er) Release: Key Changes and Commit Summary

Node.js 12.22.8 (code‑named “Er”) has been released, featuring a c‑ares update to fix underscore CNAME resolution, updated Mozilla NSS root certificates, and a series of additional commits ranging from build and dependency upgrades to bug fixes across various modules.

JavaScriptNode.jsc-ares
0 likes · 3 min read
Node.js 12.22.8 (Er) Release: Key Changes and Commit Summary
DeWu Technology
DeWu Technology
Dec 16, 2021 · Frontend Development

Canvas Performance Optimization Techniques

Optimizing HTML5 canvas performance involves reducing draw calls, using layered and clipped rendering, performing quick bounding‑box checks, and offloading heavy drawing to OffscreenCanvas with Web Workers, enabling smooth animation even when thousands of shapes are rendered.

CanvasJavaScriptPerformance
0 likes · 14 min read
Canvas Performance Optimization Techniques
Sohu Tech Products
Sohu Tech Products
Dec 15, 2021 · Frontend Development

Implementing a Simple Virtual DOM Library with Patch and Diff Algorithms

This article explains how to build a lightweight virtual DOM library in JavaScript, covering the creation of VNode objects, the patch and diff algorithms, handling of attributes, classes, styles, and events, and demonstrates a step‑by‑step implementation using the Snabbdom approach.

Diff AlgorithmJavaScriptSnabbdom
0 likes · 18 min read
Implementing a Simple Virtual DOM Library with Patch and Diff Algorithms
The Dominant Programmer
The Dominant Programmer
Dec 15, 2021 · Frontend Development

Interactive Polygon Drawing and Area Calculation with Vue and OpenLayers

This tutorial shows how to import the required OpenLayers modules into a Vue project, configure a map, add a Polygon draw interaction, handle the drawend event to compute and format the polygon's area using OpenLayers' getArea function, and provides a complete working example with code.

Area calculationDraw interactionJavaScript
0 likes · 7 min read
Interactive Polygon Drawing and Area Calculation with Vue and OpenLayers
The Dominant Programmer
The Dominant Programmer
Dec 15, 2021 · Frontend Development

How to Draw Lines on a Map with Vue and OpenLayers

This tutorial walks through importing OpenLayers modules into a Vue component, defining line coordinates, creating vector sources and layers, styling the line, and integrating the line layer with other map layers to render a green polyline on the map.

JavaScriptMappingOpenLayers
0 likes · 7 min read
How to Draw Lines on a Map with Vue and OpenLayers
php Courses
php Courses
Dec 12, 2021 · Frontend Development

Understanding Vue 3 Composition API: Ref, Reactive, toRefs, Computed, Watch, Provide/Inject, and Lifecycle Hooks

This article explains Vue 3's Composition API, covering how to create reactive data with ref and reactive, use toRefs, define computed properties, apply readonly, watch and watchEffect, handle lifecycle hooks, pass props, and share state via provide and inject, all with practical code examples.

Composition APIJavaScriptRef
0 likes · 8 min read
Understanding Vue 3 Composition API: Ref, Reactive, toRefs, Computed, Watch, Provide/Inject, and Lifecycle Hooks
php Courses
php Courses
Dec 11, 2021 · Frontend Development

Implementing Vue 3 Reactivity with Proxy, Reactive, and Ref Functions

This article walks through building a Vue 3‑style reactivity system from scratch, covering effect functions, dependency collection with Set/Map/WeakMap, automatic tracking via Proxy, and the implementation of reactive and ref utilities, all illustrated with complete JavaScript code examples.

JavaScriptReactivityVue3
0 likes · 8 min read
Implementing Vue 3 Reactivity with Proxy, Reactive, and Ref Functions
Laiye Technology Team
Laiye Technology Team
Dec 10, 2021 · Artificial Intelligence

Best Practices for Building an Entity‑Relationship Annotation Tool at Laiye AI R&D Center

This article details Laiye Technology’s AI R&D team’s end‑to‑end approach to designing and optimizing a custom entity‑relationship annotation tool, covering data‑labeling challenges, shortcomings of Excel and off‑the‑shelf solutions, architectural requirements, line‑breaking and mark‑position algorithms, performance improvements, and real‑world results.

JavaScriptNLPPerformance Optimization
0 likes · 12 min read
Best Practices for Building an Entity‑Relationship Annotation Tool at Laiye AI R&D Center
政采云技术
政采云技术
Dec 7, 2021 · Frontend Development

A Comprehensive Guide to Frontend Unit Testing with Jest and Mocha

This article introduces the importance of frontend unit testing, presents survey data on current practices, compares popular frameworks like Jest and Mocha, provides step‑by‑step setup instructions, demonstrates code examples for JavaScript, TypeScript and async functions, and explains how to generate coverage reports and use common assertions.

CoverageJavaScriptJest
0 likes · 16 min read
A Comprehensive Guide to Frontend Unit Testing with Jest and Mocha
Programmer DD
Programmer DD
Dec 4, 2021 · Frontend Development

Boost Your UI with use-gesture: Simple React & Vanilla JS Gestures

This article introduces the use-gesture library, a lightweight React and vanilla JavaScript tool for enriching mouse and touch interactions, explains installation via Yarn or npm, demonstrates various gesture hooks with code examples, and showcases visual effects through animated demos.

JavaScriptReActfrontend development
0 likes · 4 min read
Boost Your UI with use-gesture: Simple React & Vanilla JS Gestures
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 3, 2021 · Frontend Development

Building Web AR with AR.js: A Pure Front‑End Solution

This article introduces a pure‑frontend approach to Web AR using AR.js, explains core technologies like WebRTC, JSARToolKit, A‑Frame, and Three.js, guides through HTTPS setup, demonstrates image‑tracking and video examples, and shows how to integrate Agora video calls for remote cat‑watching.

A-FrameAR.jsAgora
0 likes · 15 min read
Building Web AR with AR.js: A Pure Front‑End Solution
Laiye Technology Team
Laiye Technology Team
Dec 3, 2021 · Frontend Development

Understanding Native ES Modules and Why Vite Is So Fast

This article explains the concept of Native‑ESM, traces the evolution of JavaScript module systems from IIFE to ES Modules, and shows how Vite leverages native ES modules, ESBuild, and caching to achieve dramatically faster cold starts and hot updates compared to traditional bundlers like Webpack.

ES ModuleJavaScriptModule System
0 likes · 14 min read
Understanding Native ES Modules and Why Vite Is So Fast
ELab Team
ELab Team
Dec 2, 2021 · Frontend Development

How to Build a Robust @Mention Feature in Frontend Rich Text Editors

This article explores the implementation of @mention functionality in modern front‑end rich‑text editors, covering background, industry examples from Weibo and Twitter, core concepts like Range and Selection APIs, cursor handling, search pop‑ups, key interception, and techniques for inserting custom @tags with code snippets.

JavaScriptRange APISelection API
0 likes · 15 min read
How to Build a Robust @Mention Feature in Frontend Rich Text Editors
KooFE Frontend Team
KooFE Frontend Team
Nov 28, 2021 · Frontend Development

How Konva.js Uses Random Colors for Precise Canvas Hit Detection

Konva.js detects whether a point lies inside a shape by assigning each shape a unique random color key, rendering a hidden hitCanvas with these colors, and then reading the pixel color at the click position to identify the corresponding shape, supporting up to 16.7 million objects.

CanvasJavaScriptKonva.js
0 likes · 5 min read
How Konva.js Uses Random Colors for Precise Canvas Hit Detection
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Nov 26, 2021 · Fundamentals

Understanding V8 Engine Memory Allocation and Garbage Collection

This article explains how the V8 JavaScript engine allocates memory, why garbage collection is necessary, describes the memory layout of new and old generations, reviews common GC algorithms such as reference counting, mark‑sweep, mark‑compact and incremental marking, and offers practical tips for writing high‑performance JavaScript code.

JavaScriptV8engine internals
0 likes · 22 min read
Understanding V8 Engine Memory Allocation and Garbage Collection
Selected Java Interview Questions
Selected Java Interview Questions
Nov 25, 2021 · Frontend Development

Refactoring Examples for Common Business Scenarios: From Callback Hell to Promise.all and Pure Functions

This article demonstrates how to refactor tangled asynchronous request chains and complex if‑else logic in JavaScript by replacing callback hell with Promise.all and async/await, extracting pure helper functions, and applying best‑practice principles to improve readability, testability, and maintainability.

JavaScriptPromisePure Functions
0 likes · 11 min read
Refactoring Examples for Common Business Scenarios: From Callback Hell to Promise.all and Pure Functions
Top Architect
Top Architect
Nov 25, 2021 · Backend Development

Implement QR Code Login with WebSocket Using Spring Boot

This article explains how to build a QR‑code based login system by designing a token table, defining roles, creating two REST APIs (generate QR code and confirm identity), and integrating front‑end JavaScript with a Spring Boot WebSocket server, complete with full code examples and step‑by‑step instructions.

JavaJavaScriptQR Code Login
0 likes · 13 min read
Implement QR Code Login with WebSocket Using Spring Boot
ByteFE
ByteFE
Nov 22, 2021 · Frontend Development

Technical Decision and Practices of Using Web Components in EE NEXT SDK

This document details the EE NEXT SDK team's technical decisions to adopt Web Components for front‑end component development, explains the benefits and drawbacks of Custom Elements and Shadow DOM, outlines challenges such as cross‑stack compatibility, bundle size, style isolation, and provides practical implementation guidance and best‑practice recommendations.

JavaScriptSDKShadow DOM
0 likes · 15 min read
Technical Decision and Practices of Using Web Components in EE NEXT SDK
TikTok Frontend Technology Team
TikTok Frontend Technology Team
Nov 22, 2021 · Game Development

Technical Overview of Douyin National Day Mini‑Game Development Using Lynx and Cocos Creator

This article details the end‑to‑end development of Douyin's National Day mini‑game, covering the Lynx + Cocos tech stack, core Cocos concepts such as ECS, node hierarchy, lifecycle, a step‑by‑step walkthrough of the star‑catcher demo code, background looping strategies, checkpoint transitions, character Spine animation, resource loading pipelines, custom bitmap fonts, and a series of performance optimizations for mobile deployment.

CocosJavaScriptLynx
0 likes · 28 min read
Technical Overview of Douyin National Day Mini‑Game Development Using Lynx and Cocos Creator
21CTO
21CTO
Nov 21, 2021 · Frontend Development

What’s New in TypeScript 4.5 and Is Google’s Fuchsia the End of Android 12?

The article outlines Microsoft’s TypeScript 4.5 release with its new type‑system features and performance fixes, then shifts to Google’s unveiling of the Fuchsia OS, its microkernel architecture, and growing speculation that Android 12 could be the final Android update.

AndroidFuchsiaGoogle
0 likes · 4 min read
What’s New in TypeScript 4.5 and Is Google’s Fuchsia the End of Android 12?
MaGe Linux Operations
MaGe Linux Operations
Nov 21, 2021 · Backend Development

How to Reverse Engineer Laifeng Live Chat API and Send Automated Messages with Python

This guide walks through extracting and reproducing the encrypted parameters required to post chat messages on Laifeng live streams, covering site navigation, packet capture, timestamp generation, signature calculation via JavaScript decryption, and a complete Python script that logs in, builds the request, and sends the comment.

API reverse engineeringJavaScriptPython
0 likes · 17 min read
How to Reverse Engineer Laifeng Live Chat API and Send Automated Messages with Python
21CTO
21CTO
Nov 19, 2021 · Artificial Intelligence

Top Programming Languages Powering Modern AI: Benefits & Use Cases

This article reviews the most suitable programming languages for artificial intelligence, explaining why Python, R, Java, LISP, Prolog, C++, Haskell, JavaScript, and Julia excel in AI development and outlining their key advantages and typical applications.

AIC++Java
0 likes · 16 min read
Top Programming Languages Powering Modern AI: Benefits & Use Cases
Sohu Tech Products
Sohu Tech Products
Nov 17, 2021 · Frontend Development

The Enduring Role of jQuery in Modern Web Development

Despite the rise of newer frameworks like React and Next.js, jQuery remains a dominant JavaScript library with a 78% market share, deeply embedded in platforms such as WordPress, and continues to evolve through updates to its core and UI components while facing performance debates.

JavaScriptLegacy LibrariesWordPress
0 likes · 7 min read
The Enduring Role of jQuery in Modern Web Development
ELab Team
ELab Team
Nov 17, 2021 · Frontend Development

Mastering ESLint: From Quick Setup to Advanced Rule Customization

This article explains what ESLint is, walks through its installation and basic configuration, dives into detailed rule, parser, and plugin settings, describes its AST‑based analysis process, and shows how to integrate it with tools like VSCode, Prettier, Husky and lint‑staged for robust JavaScript code quality enforcement.

ESLintJavaScriptPrettier
0 likes · 19 min read
Mastering ESLint: From Quick Setup to Advanced Rule Customization
ByteDance Web Infra
ByteDance Web Infra
Nov 16, 2021 · Frontend Development

Why Rust Is the Future of JavaScript Infrastructure

Rust, a fast and memory‑efficient language adopted by major tech firms, is increasingly replacing JavaScript in web tooling such as bundlers, compilers, and linters, with projects like SWC, Deno, and WebAssembly demonstrating its performance, safety, and growing ecosystem for the future of JavaScript infrastructure.

JavaScriptPerformanceRust
0 likes · 17 min read
Why Rust Is the Future of JavaScript Infrastructure
Programmer DD
Programmer DD
Nov 15, 2021 · Game Development

How to Build a Fully Playable 13KB JavaScript Game: Tips from the JS13k Contest

This article explores the surprising 13KB JavaScript game "Space Huggers," explains the JS13k competition rules, and shares practical techniques—pixel graphics, minimalist sound, lightweight engines, and code trimming—that developers can use to create ultra‑small yet functional browser games.

JS13kJavaScriptfrontend
0 likes · 6 min read
How to Build a Fully Playable 13KB JavaScript Game: Tips from the JS13k Contest
Java Backend Technology
Java Backend Technology
Nov 7, 2021 · Artificial Intelligence

6 Must‑Try Open‑Source Projects to Boost Your Development Skills

This article introduces six intriguing open‑source projects—including an audio‑based keylogger, a high‑accuracy face‑recognition library, a TensorFlow.js video‑person removal tool, a Chinese kinship calculator, a Java Word template engine, and a sleek macOS Markdown editor—each with brief descriptions, screenshots, and usage examples.

AIJavaJavaScript
0 likes · 5 min read
6 Must‑Try Open‑Source Projects to Boost Your Development Skills
Alibaba Terminal Technology
Alibaba Terminal Technology
Nov 5, 2021 · Fundamentals

Understanding the Latest TC39 Proposals: Intl.Segmenter, Error Cause, RegExp Enhancements and More

This article reviews recent TC39 proposals that have reached Stage 4—including Intl.Segmenter, Error Cause, Intl.DurationFormat, Array.groupBy, Destructuring Private Fields, String.cooked, RegExp modifiers, RegExp \R, buffer boundaries, Evaluator Attributes, and Bind‑this—explaining their goals, usage, and providing practical JavaScript code examples.

ECMAScriptJavaScriptLanguage Proposals
0 likes · 22 min read
Understanding the Latest TC39 Proposals: Intl.Segmenter, Error Cause, RegExp Enhancements and More
Programmer DD
Programmer DD
Nov 4, 2021 · Frontend Development

Unlock Browser P2P File Sharing with WebTorrent: A Hands‑On Guide

This article introduces WebTorrent, an open‑source JavaScript library that brings BitTorrent‑style peer‑to‑peer file sharing and streaming directly to browsers using WebRTC, explains its advantages over traditional download tools, and provides step‑by‑step code examples for both web and Node environments.

JavaScriptP2PWebRTC
0 likes · 6 min read
Unlock Browser P2P File Sharing with WebTorrent: A Hands‑On Guide
JavaScript
JavaScript
Nov 2, 2021 · Frontend Development

Why jQuery Still Matters in a React‑Dominated Web Landscape

This article examines jQuery’s historic rise, its deep integration in platforms like WordPress, the reasons it survived the shift to modern frameworks such as React, Angular and Vue, and why it may still be a useful tool despite declining popularity.

JavaScriptWordPressfrontend development
0 likes · 6 min read
Why jQuery Still Matters in a React‑Dominated Web Landscape
ELab Team
ELab Team
Oct 28, 2021 · Information Security

How to Build a Secure JavaScript Sandbox: Techniques, Code, and Pitfalls

This article explains the concept of JavaScript sandboxing, outlines common use cases, walks through several implementation strategies—from simple eval wrappers to with‑Proxy‑iframe combos—and discusses sandbox escape techniques and how to mitigate them, providing practical code examples throughout.

JavaScriptfrontendiframe
0 likes · 14 min read
How to Build a Secure JavaScript Sandbox: Techniques, Code, and Pitfalls
KooFE Frontend Team
KooFE Frontend Team
Oct 28, 2021 · Frontend Development

How to Detect Canvas Shape Clicks Using Pixel Color and Transparency

By leveraging pixel color and alpha values, this guide explains how to determine whether a user click falls inside a Canvas shape, compares it with traditional methods like crossing number and winding number, and provides a practical implementation using Create.js with sample code.

Create.jsJavaScripthit testing
0 likes · 5 min read
How to Detect Canvas Shape Clicks Using Pixel Color and Transparency
Laravel Tech Community
Laravel Tech Community
Oct 24, 2021 · Frontend Development

Useful JavaScript Code Snippets for Common Front‑End Tasks

This article provides a collection of practical JavaScript snippets covering cookie handling, color conversion, clipboard operations, date validation, string manipulation, array utilities, URL query extraction, time formatting, and dark‑mode detection, all useful for front‑end developers.

JavaScriptbrowser APIcode snippets
0 likes · 8 min read
Useful JavaScript Code Snippets for Common Front‑End Tasks
Full-Stack Trendsetter
Full-Stack Trendsetter
Oct 20, 2021 · Frontend Development

Why Vue Component data Must Be a Function, Not an Object

The article explains that while a Vue root instance can define its data as an object or a function, a component's data must be a function to avoid shared memory between instances, illustrating the issue with code examples and detailing Vue's option‑merge validation.

ComponentFunctionJavaScript
0 likes · 4 min read
Why Vue Component data Must Be a Function, Not an Object
ELab Team
ELab Team
Oct 19, 2021 · Fundamentals

Unlocking QR Code Secrets: Principles, Design, and Code Generation

This article explains QR code fundamentals, including its advantages, structural components, error‑correction levels, design principles, generation workflow, JavaScript implementation details, and extensions such as artistic QR codes and mini‑program codes, providing practical examples and visual illustrations.

Error CorrectionJavaScriptartistic QR
0 likes · 11 min read
Unlocking QR Code Secrets: Principles, Design, and Code Generation
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 19, 2021 · Frontend Development

Implementing the Fancy-Components Wave Filter Web Component Across Frontend Frameworks

This article explains how to replace a heavy 78 KB GIF loading animation with the lightweight Fancy-Components wave‑filter web component, covering its installation, configuration, and usage in plain HTML, React, Vue 2, Vue 3, Vue‑CLI, Vite, and custom attribute options such as color, duration, amplitude, delay, mode, and interval.

CSSJavaScriptReAct
0 likes · 27 min read
Implementing the Fancy-Components Wave Filter Web Component Across Frontend Frameworks
php Courses
php Courses
Oct 18, 2021 · Frontend Development

AJAX Technology – Asynchronous Data Retrieval (Course Overview)

This course introduces AJAX (Asynchronous JavaScript and XML), explaining how it enables browsers to fetch data without page refresh by sending asynchronous requests, and clarifies that AJAX is a technique combining existing web standards rather than a new programming language.

AJAXCourseJavaScript
0 likes · 1 min read
AJAX Technology – Asynchronous Data Retrieval (Course Overview)
Fulu Network R&D Team
Fulu Network R&D Team
Oct 18, 2021 · Frontend Development

Implementing mini-async-dva: Adding async/await Support to DVA

This article examines the limitations of the original DVA framework, proposes a mini‑async‑dva fork that adds async/await support to model effects, and details its implementation—including store management, dynamic model registration, and asynchronous component loading—while providing full code comparisons.

DVAJavaScriptReAct
0 likes · 8 min read
Implementing mini-async-dva: Adding async/await Support to DVA
KooFE Frontend Team
KooFE Frontend Team
Oct 17, 2021 · Frontend Development

Why React Hooks Were Created and How to Choose Between ahooks and react-use

This article explains why React introduced Hooks, compares the official Hooks with popular third‑party libraries ahooks and react‑use, lists their most useful Hooks, shows how to install them, and provides a custom Hook example for displaying error modals, helping developers write cleaner, more reusable functional components.

HooksJavaScriptReAct
0 likes · 16 min read
Why React Hooks Were Created and How to Choose Between ahooks and react-use
ELab Team
ELab Team
Oct 15, 2021 · Frontend Development

Mastering Redux: Core Principles, Architecture, and Real-World Implementation

This article provides a comprehensive overview of Redux, covering its design philosophy, core components, API implementation, React bindings, and practical code examples to help developers understand and apply state management effectively in modern front‑end applications.

JavaScriptReActfrontend
0 likes · 18 min read
Mastering Redux: Core Principles, Architecture, and Real-World Implementation
iQIYI Technical Product Team
iQIYI Technical Product Team
Oct 15, 2021 · Frontend Development

Applying Source Maps for Front-End Error Monitoring in Production

The article explains how integrating Source Maps—generated by modern bundlers and automatically uploaded via a Webpack plugin—into iQIYI Hawkeye’s front‑end exception monitoring restores original file names and line numbers for minified production JavaScript errors, enabling rapid debugging despite bundle‑size and versioning challenges.

Front-endHawkeyeJavaScript
0 likes · 11 min read
Applying Source Maps for Front-End Error Monitoring in Production