Tagged articles

JavaScript

2473 articles · Page 23 of 25
Qunar Tech Salon
Qunar Tech Salon
Jul 19, 2017 · Frontend Development

Headless Chrome Automation: API Overview, Coding Tips, and Example Scripts

This article introduces the Chrome DevTools Protocol API, provides practical coding tips for using the chrome-remote-interface library, and demonstrates complete Node.js examples for gathering performance metrics, automating Baidu searches, and extracting first‑page results with headless Chrome.

Chrome DevTools ProtocolHeadless ChromeJavaScript
0 likes · 9 min read
Headless Chrome Automation: API Overview, Coding Tips, and Example Scripts
Hujiang Technology
Hujiang Technology
Jul 18, 2017 · Fundamentals

A Crash Course in Memory Management: ArrayBuffer, SharedArrayBuffer, and Manual vs Automatic Management in JavaScript

This article explains the fundamentals of memory management, illustrating why ArrayBuffer and SharedArrayBuffer were added to JavaScript, how automatic garbage collection works, and what manual memory handling with functions like malloc and free entails, especially when using WebAssembly and C.

ArrayBufferGarbage CollectionJavaScript
0 likes · 6 min read
A Crash Course in Memory Management: ArrayBuffer, SharedArrayBuffer, and Manual vs Automatic Management in JavaScript
System Architect Go
System Architect Go
Jul 16, 2017 · Backend Development

From Nested Callbacks to Promises: Modern Async Patterns in Node.js

This article walks through classic Node.js callback examples, demonstrates how event emitters can replace tangled callback nesting, and then shows how promises and async/await provide cleaner, more maintainable asynchronous code, encouraging developers to upgrade their Node version.

Async/AwaitJavaScriptNode.js
0 likes · 3 min read
From Nested Callbacks to Promises: Modern Async Patterns in Node.js
Meituan Technology Team
Meituan Technology Team
Jul 14, 2017 · Frontend Development

Design Philosophy, Source Code Analysis, and Best Practices of Redux

Redux is a JavaScript state container that enforces a single‑store, unidirectional data flow using actions, reducers and middleware, drawing on Flux, CQRS and event sourcing, and the article examines its core source files while offering best‑practice guidelines such as immutability, pure reducers, smart‑dumb component separation, and careful middleware use.

Design PatternsJavaScriptMiddleware
0 likes · 16 min read
Design Philosophy, Source Code Analysis, and Best Practices of Redux
Aotu Lab
Aotu Lab
Jul 7, 2017 · Frontend Development

Build a Simple Motion Detection Demo with WebRTC and Canvas

This guide explains how to create a lightweight motion‑detection effect in a web page using WebRTC to capture video, Canvas for pixel processing, and JavaScript algorithms that compare consecutive frames, apply brightness thresholds, and optionally track moving objects with bounding boxes.

JavaScriptMotion DetectionPixel Processing
0 likes · 12 min read
Build a Simple Motion Detection Demo with WebRTC and Canvas
Meituan Technology Team
Meituan Technology Team
Jul 6, 2017 · Frontend Development

LsLoader: A Front-End Module Caching and Performance Optimization Tool

LsLoader is a middleware that caches individual JavaScript modules in browser localStorage and combines updates via an online combo service, enabling build‑tool‑agnostic, fine‑grained loading that cuts page load times by up to 30 % and saves hundreds of gigabytes of bandwidth in production.

Front-endJavaScriptLsLoader
0 likes · 13 min read
LsLoader: A Front-End Module Caching and Performance Optimization Tool
21CTO
21CTO
Jul 2, 2017 · Fundamentals

Essential Regex Cheat Sheet: 20 Common Validation Patterns for Developers

This cheat sheet compiles twenty practical regular‑expression patterns—including date, password, email, ID, IP, URL, and HTML validation examples—along with JavaScript snippets, giving developers a quick reference to boost input‑checking efficiency across front‑end and back‑end projects.

JavaScriptPattern MatchingValidation
0 likes · 8 min read
Essential Regex Cheat Sheet: 20 Common Validation Patterns for Developers
Aotu Lab
Aotu Lab
Jun 30, 2017 · Fundamentals

Why Do escape and encodeURI Encode URLs Differently? Explore Percent-Encoding

This article explains the differences between JavaScript’s escape, encodeURI, and encodeURIComponent functions, detailing their encoding rules, percent‑encoding standards, reserved and unreserved characters, and how Unicode characters are transformed into UTF‑8 byte sequences, while also covering ASCII, Unicode, and UTF‑8 fundamentals.

JavaScriptURL encodingpercent-encoding
0 likes · 11 min read
Why Do escape and encodeURI Encode URLs Differently? Explore Percent-Encoding
Architecture Digest
Architecture Digest
Jun 28, 2017 · Frontend Development

A Comprehensive Guide to Selecting Front‑End Frameworks and Libraries

This article explains the differences between libraries and frameworks, outlines common front‑end solution categories such as DOM manipulation, communication, utilities, templating, components, routing and architecture, and provides practical recommendations of popular JavaScript tools for each area.

JavaScriptLibraryTemplating
0 likes · 11 min read
A Comprehensive Guide to Selecting Front‑End Frameworks and Libraries
Hujiang Technology
Hujiang Technology
Jun 27, 2017 · Frontend Development

React Forms: Using Refs (Translation)

This article translates Loren Stewart’s guide on using React refs for form handling, explaining both controlled components and ref‑based approaches, and provides detailed code examples for text, number, select, radio, and checkbox inputs, including techniques for parent‑child communication and value extraction.

Controlled ComponentsFormsJavaScript
0 likes · 15 min read
React Forms: Using Refs (Translation)
Architecture Digest
Architecture Digest
Jun 26, 2017 · Backend Development

Common Interview Questions and Answers: A Cautionary Tale for Developers

This article compiles a wide range of interview questions and answers covering MySQL escaping, JavaScript memory leaks, PHP garbage collection, concurrency control, networking fundamentals, and system design, aiming to warn developers about knowledge gaps and encourage deeper technical learning.

InterviewJavaScriptNetworking
0 likes · 11 min read
Common Interview Questions and Answers: A Cautionary Tale for Developers
21CTO
21CTO
Jun 23, 2017 · Frontend Development

Master Front-End Error Collection: Capture JS Exceptions and Resource Failures

This guide explains why front‑end error collection is essential, outlines effective methods such as using window.addEventListener('error', true), details the types of exceptions to monitor—including script errors, resource load failures, HTML hijacking, and CSS issues—and provides practical code snippets for reporting and handling them.

JavaScriptWeb Performanceerror monitoring
0 likes · 10 min read
Master Front-End Error Collection: Capture JS Exceptions and Resource Failures
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jun 20, 2017 · Frontend Development

Top 10 Front‑End Career Questions Answered: Strategies, Learning Paths & Industry Insights

This article compiles ten common front‑end questions from Zhihu, offering practical advice on market demand, learning strategies, solidifying fundamentals, choosing between design and development, interview tactics, and the future outlook of web development, all backed by real‑world analogies and examples.

JavaScriptLearningWeb Development
0 likes · 39 min read
Top 10 Front‑End Career Questions Answered: Strategies, Learning Paths & Industry Insights
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jun 18, 2017 · Frontend Development

This Week’s Front‑End Highlights: Apple Health Push, Safari 11, V8 6.0 & More

From Apple’s secret team turning iPhones into medical records to Safari 11’s new WebRTC and WebAssembly support, V8 6.0’s SharedArrayBuffer, Puppet Labs’ DevOps survey, WeChat’s open‑source WCDB, Tencent’s mobile analytics, StackOverflow’s HTTPS migration, and a new front‑end lifecycle model, this roundup covers the top front‑end developments of the week.

JavaScriptTechnology NewsWeb Development
0 likes · 6 min read
This Week’s Front‑End Highlights: Apple Health Push, Safari 11, V8 6.0 & More
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jun 15, 2017 · Frontend Development

Top 10 Front-End Interview Algorithm Questions and Solutions

This article compiles ten common algorithmic challenges frequently asked in front‑end interviews, explains why mastering data structures matters for developers, and provides concise solutions and key insights for each problem, from palindrome checks to binary search tree implementation in JavaScript.

AlgorithmJavaScriptcoding-challenge
0 likes · 8 min read
Top 10 Front-End Interview Algorithm Questions and Solutions
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jun 11, 2017 · Frontend Development

Master Advanced JavaScript Regex: Lazy Quantifiers, Lookahead, and More

Explore advanced JavaScript regular expression techniques—including lazy quantifiers, non‑capturing groups, backreferences, lookaround assertions, and subtle meta‑character rules—to write more efficient and readable patterns, illustrated with practical examples such as inserting commas into large numbers.

JavaScriptlazy quantifierslookaround
0 likes · 4 min read
Master Advanced JavaScript Regex: Lazy Quantifiers, Lookahead, and More
Java High-Performance Architecture
Java High-Performance Architecture
Jun 10, 2017 · Frontend Development

Master 7 Essential ES6 Features in Just 30 Minutes

This concise guide introduces seven frequently used ES6 features—including let, const, arrow functions, default parameters, destructuring, object shorthand, and template literals—explaining each concept so you can grasp them in roughly half an hour.

Arrow FunctionsJavaScriptconst
0 likes · 1 min read
Master 7 Essential ES6 Features in Just 30 Minutes
Tongcheng Travel Technology Center
Tongcheng Travel Technology Center
Jun 2, 2017 · Frontend Development

Understanding Shadow DOM: Concepts, Usage, and Comparison with Virtual DOM

This article introduces the fundamentals of Shadow DOM, explains its core concepts, usage patterns, key features, and API, compares it with Virtual DOM, demonstrates practical code examples for creating and styling shadow roots, handling slots and events, and discusses browser support and related tooling.

CSS ScopingJavaScriptShadow DOM
0 likes · 9 min read
Understanding Shadow DOM: Concepts, Usage, and Comparison with Virtual DOM
Qunar Tech Salon
Qunar Tech Salon
Jun 2, 2017 · Frontend Development

A Review of Frontend Moduleization Development and Tooling

This article reviews the evolution of frontend moduleization over the past decade, discusses the problems of early script inclusion, presents various solutions such as namespaces, closures, CommonJS, ES6 modules, and modern build tools, and illustrates each approach with concrete JavaScript code examples.

CommonJSJavaScriptbuild-tools
0 likes · 16 min read
A Review of Frontend Moduleization Development and Tooling
Hujiang Technology
Hujiang Technology
May 31, 2017 · Frontend Development

Exploring React's Virtual DOM: Source Code Analysis

This article examines React's Virtual DOM by dissecting the React source code, explaining the structure of the React object, ReactElement factory, the createElement implementation, and how these pieces combine to build a virtual DOM tree for rendering components.

JavaScriptReActReactElement
0 likes · 11 min read
Exploring React's Virtual DOM: Source Code Analysis
MaGe Linux Operations
MaGe Linux Operations
May 25, 2017 · Frontend Development

Top 56 Data Visualization Tools Every Developer Should Know

This article provides a comprehensive overview of 56 data visualization tools ranging from simple spreadsheet options to advanced JavaScript libraries, mapping frameworks, and statistical packages, helping developers choose the right solution for creating interactive and insightful visual representations of their data.

JavaScriptchartsdata visualization
0 likes · 18 min read
Top 56 Data Visualization Tools Every Developer Should Know
ITPUB
ITPUB
May 11, 2017 · Frontend Development

Mastering JavaScript Console: Advanced Logging, Grouping, and Performance Tools

This article provides a comprehensive guide to JavaScript's console API, covering basic logging methods, object inspection, grouping, clearing, performance timing, profiling, tracing, assertions, and counting, with practical code examples and tips for effective debugging in development environments.

JavaScriptPerformanceconsole
0 likes · 8 min read
Mastering JavaScript Console: Advanced Logging, Grouping, and Performance Tools
ITPUB
ITPUB
Apr 28, 2017 · Frontend Development

How That Crazy JS One‑Liner Turns Into “sb”: A Deep Dive into Type Coercion

This article explains why a seemingly nonsensical JavaScript expression evaluates to the two characters “sb” by dissecting its operator precedence, breaking it into sub‑expressions, and applying JavaScript’s type‑conversion rules step by step.

JavaScriptObfuscated CodeOperator Precedence
0 likes · 8 min read
How That Crazy JS One‑Liner Turns Into “sb”: A Deep Dive into Type Coercion
Aotu Lab
Aotu Lab
Apr 28, 2017 · Backend Development

Why ES6 Modules in Node.js Are Harder Than You Think – An Inside Look

James M. Snell explains the fundamental differences between CommonJS and ES6 modules in Node.js, why loading and execution timing matter, the challenges of supporting both systems, and the roadmap for native ES6 module support.

Asynchronous LoadingCommonJSES6 Modules
0 likes · 9 min read
Why ES6 Modules in Node.js Are Harder Than You Think – An Inside Look
Aotu Lab
Aotu Lab
Apr 28, 2017 · Game Development

Unlock Realistic Game Physics with Matter.js: A Complete Guide

This article explains what a physics engine is, compares real‑time and high‑precision engines, shows how games like CS:GO use them, and provides a thorough tutorial on installing, configuring, and programming the JavaScript 2D physics library Matter.js with code examples and debugging tools.

2D physicsJavaScriptMatter.js
0 likes · 15 min read
Unlock Realistic Game Physics with Matter.js: A Complete Guide
Meituan Technology Team
Meituan Technology Team
Apr 27, 2017 · Frontend Development

In‑Depth Source Code Analysis of Vuex State Management Framework

Through a detailed source‑code walkthrough, the article explains how Vuex injects the store via a global mixin, builds a hierarchical module tree, binds and implements dispatch and commit methods, enforces strict‑mode mutation checks with a hidden Vue instance, and enables time‑travel debugging by recording mutations and replacing state.

JavaScriptSource Code AnalysisState Management
0 likes · 24 min read
In‑Depth Source Code Analysis of Vuex State Management Framework
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Apr 20, 2017 · Frontend Development

How QQ Music Mini‑Program Handles Audio Playback: Core Features, Bugs & Fixes

This article walks through the core functionalities of the QQ Music mini‑program—including station launch, friend cards, guided login, playback controls, lyric scrolling, dynamic background colors, and error handling—while sharing implementation details, common bugs on Android and iOS, and practical fixes for developers building audio features in WeChat mini‑apps.

Audio PlaybackBug FixesJavaScript
0 likes · 14 min read
How QQ Music Mini‑Program Handles Audio Playback: Core Features, Bugs & Fixes
Baidu Maps Tech Team
Baidu Maps Tech Team
Apr 20, 2017 · Frontend Development

Boost Map Rendering Performance with Web Workers: A Practical Guide

This article explains how Web Workers can off‑load heavy data processing in WebGL‑based map engines, covering worker creation, data serialization, transferable objects, optimal worker count, and real‑world performance gains, all illustrated with code snippets and diagrams.

JavaScriptPerformance OptimizationWeb Worker
0 likes · 9 min read
Boost Map Rendering Performance with Web Workers: A Practical Guide
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Apr 16, 2017 · Frontend Development

Build a Simple JavaScript Calculator in Under 15 Minutes

This tutorial walks beginners through creating a basic JavaScript calculator with addition, subtraction, multiplication, division, clear (AC), and delete (DEL) functions, explaining the HTML structure, CSS styling, and step‑by‑step JavaScript logic to implement the three core parts of the app.

CSSCalculatorHTML
0 likes · 7 min read
Build a Simple JavaScript Calculator in Under 15 Minutes
Dada Group Technology
Dada Group Technology
Apr 14, 2017 · Frontend Development

Babel Optimization: Solving Bundle Size and Performance Issues

This article explores how to optimize Babel usage to reduce bundle size and improve performance by addressing helper duplication, third-party module handling, and import optimization through transform-runtime, include patterns, and import transformation plugins.

BabelFrontend PerformanceJavaScript
0 likes · 9 min read
Babel Optimization: Solving Bundle Size and Performance Issues
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Apr 13, 2017 · Frontend Development

Essential JavaScript Full‑Stack Tools: From IDEs to Build & Debugging

This article surveys the essential JavaScript full‑stack development ecosystem, detailing runtime environments, popular IDEs, build automation tools, testing frameworks, performance utilities, and debugging solutions, guiding developers in selecting the right tools for efficient front‑end and back‑end development.

DebuggingJavaScriptbuild
0 likes · 23 min read
Essential JavaScript Full‑Stack Tools: From IDEs to Build & Debugging
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Apr 13, 2017 · Frontend Development

Top 10 Must‑Know ES6 Features That Transform Frontend Development

This article provides a concise overview of the ten most impactful ES6 features—including default parameters, template literals, multi‑line strings, destructuring, enhanced object literals, arrow functions, promises, block‑scoped let/const, classes, and modules—explaining their syntax, benefits, and practical usage for modern JavaScript development.

ES6 FeaturesJavaScriptModern JavaScript
0 likes · 14 min read
Top 10 Must‑Know ES6 Features That Transform Frontend Development
Hujiang Technology
Hujiang Technology
Apr 13, 2017 · Frontend Development

A Detailed Introduction to Webpack: Installation, Configuration, Loaders, Plugins, Lazy Loading and Vendor Chunks

This tutorial provides a comprehensive, step‑by‑step guide to Webpack, covering its purpose as a JavaScript module bundler, installation, command‑line usage, configuration files, Babel and Handlebars loaders, plugins such as html‑webpack‑plugin, lazy‑loading, vendor chunk creation, and best practices for modern front‑end development.

BabelJavaScriptModule Bundling
0 likes · 26 min read
A Detailed Introduction to Webpack: Installation, Configuration, Loaders, Plugins, Lazy Loading and Vendor Chunks
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Apr 9, 2017 · Frontend Development

Boost Mini Program Development with Essential ES6 Features

This article explains how key ES6 features—arrow functions, array methods, destructuring, enhanced object literals, classes, and block‑scoped variables—can streamline WeChat Mini Program development, improve code readability, and increase development efficiency.

Arrow FunctionsClassesJavaScript
0 likes · 8 min read
Boost Mini Program Development with Essential ES6 Features
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Apr 4, 2017 · Frontend Development

How to Implement Swipe‑to‑Delete in WeChat Mini Programs

This tutorial explains how to create a left‑swipe delete effect in a WeChat Mini Program list view by layering items, using absolute positioning, and handling touchstart, touchmove, and touchend events to move items and reveal action buttons based on swipe distance.

JavaScriptSwipe DeleteTouch Events
0 likes · 3 min read
How to Implement Swipe‑to‑Delete in WeChat Mini Programs
Tongcheng Travel Technology Center
Tongcheng Travel Technology Center
Mar 29, 2017 · Frontend Development

Recap of Frontend Technology Salon Session 1: ES6, Webpack, and Asynchronous Programming

The article recaps the first Frontend Technology Salon, covering ES6 fundamentals, Webpack packaging, and practical ES6 asynchronous programming examples, offering detailed explanations and code demonstrations for frontend developers and highlights common pitfalls and browser compatibility issues.

Asynchronous ProgrammingJavaScriptes6
0 likes · 5 min read
Recap of Frontend Technology Salon Session 1: ES6, Webpack, and Asynchronous Programming
Architecture Digest
Architecture Digest
Mar 29, 2017 · Frontend Development

Front‑End Optimization Best Practices

This article presents a comprehensive guide to front‑end performance optimization, covering reduction of HTTP requests, proper handling of repaint/reflow, minimizing DOM operations, using JSON, efficient HTML/CSS, CDN acceleration, external resource loading, minification, image compression, and cookie management.

CSSJavaScriptOptimization
0 likes · 13 min read
Front‑End Optimization Best Practices
ITPUB
ITPUB
Mar 25, 2017 · Fundamentals

Why 5×3 ≠ 5+5+5: Understanding Equality vs Equivalence in Math and Code

The article explores why mathematically equal expressions like 5×3 and 5+5+5 are not necessarily equivalent, explains the distinction between equality and equivalence, illustrates with real‑world and programming examples such as JavaScript’s == versus === and matrix multiplication rules, and discusses teaching implications.

JavaScriptMathematicsMatrix multiplication
0 likes · 6 min read
Why 5×3 ≠ 5+5+5: Understanding Equality vs Equivalence in Math and Code
Meituan Technology Team
Meituan Technology Team
Mar 24, 2017 · Frontend Development

doT.js Template Engine: Source Code Analysis and Performance Optimization

The article analyzes doT.js, a compact 6 KB, dependency‑free JavaScript template engine that builds rendering functions via regex‑based code generation, avoids the costly with statement, caches compiled templates, and delivers superior performance in benchmarks compared with jQuery‑tmpl and other minimal engines, while noting its less intuitive syntax for complex conditionals.

JavaScriptdoT.jsfrontend
0 likes · 14 min read
doT.js Template Engine: Source Code Analysis and Performance Optimization
Hujiang Technology
Hujiang Technology
Mar 24, 2017 · Backend Development

Understanding the Startup Process of Node.js

This article explains how Node.js initializes by combining Google’s V8 engine with the libuv asynchronous I/O library, details the main function flow, event loop, thread pools, environment creation, module binding, and demonstrates exposing a C++ object to JavaScript via a native addon.

C++ addonJavaScriptNode.js
0 likes · 9 min read
Understanding the Startup Process of Node.js
Tencent Music Tech Team
Tencent Music Tech Team
Mar 24, 2017 · Game Development

Building an H5 Voice‑Controlled Game Demo with WebAudio

The article walks through creating an HTML5 remake of the Chinese “Don’t Stop! 8‑Note Sauce” game, where microphone volume drives a doge‑block character to walk and jump over dynamically generated pits, detailing configuration, barrier management, collision detection, and WebAudio voice‑control implementation using getUserMedia, AudioContext, and analyser nodes.

HTML5JavaScriptWebAudio
0 likes · 10 min read
Building an H5 Voice‑Controlled Game Demo with WebAudio
360 Quality & Efficiency
360 Quality & Efficiency
Mar 22, 2017 · Frontend Development

Using ajaxFileUpload jQuery Plugin for Asynchronous File Upload

This article explains how to use the ajaxFileUpload jQuery plugin for asynchronous file uploads, detailing its syntax, configuration options, integration steps with HTML, JavaScript, and Java backend code, and provides practical notes on styling and compatibility.

JavaScriptajaxFileUploadasynchronous upload
0 likes · 4 min read
Using ajaxFileUpload jQuery Plugin for Asynchronous File Upload
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Mar 19, 2017 · Frontend Development

Mastering WePY: Complete Guide to Building Mini‑Program Apps

This article introduces the WePY framework for WeChat mini‑programs, covering its purpose, demo projects, quick‑start commands, project structure, component architecture, data binding, event communication, plugin support, and advanced configuration, providing developers with a comprehensive reference for modern mini‑program development.

Component ArchitectureJavaScriptMini Program
0 likes · 16 min read
Mastering WePY: Complete Guide to Building Mini‑Program Apps
Taobao Frontend Technology
Taobao Frontend Technology
Mar 16, 2017 · Frontend Development

Unlocking JavaScript Functional Programming: Practical Patterns and Pitfalls

JavaScript functional programming, once a niche topic, has surged in popularity since ES6, and this article explores practical implementations—showcasing functional code versus traditional approaches, benefits like clearer semantics and reusability, common models such as closures, higher‑order functions, currying, and composition, plus optimization techniques.

CurryingFunctional ProgrammingHigher-Order Functions
0 likes · 12 min read
Unlocking JavaScript Functional Programming: Practical Patterns and Pitfalls
360 Quality & Efficiency
360 Quality & Efficiency
Mar 15, 2017 · Frontend Development

Common JavaScript Techniques for Handling JSON: Conversion, Formatting, Replacement, and Traversal

This article provides a comprehensive guide to common JavaScript techniques for working with JSON, covering object and array structures, converting between JSON strings and objects, pretty‑printing with JSON.stringify, string replacement for log processing, and methods for iterating and recursively traversing JSON data.

Data FormattingJavaScriptRecursive Traversal
0 likes · 4 min read
Common JavaScript Techniques for Handling JSON: Conversion, Formatting, Replacement, and Traversal
Taobao Frontend Technology
Taobao Frontend Technology
Mar 10, 2017 · Frontend Development

Why TypeScript Is the Secret Weapon for Large JavaScript Projects

This article introduces TypeScript as a Microsoft‑created superset of JavaScript that adds static typing, explains its type‑system fundamentals, compares it with lint tools, showcases practical code examples—including interfaces, implementations, and function overloads—and demonstrates how static analysis can catch bugs early and improve documentation for both front‑end and Node.js projects.

JavaScriptTypeScriptinterfaces
0 likes · 14 min read
Why TypeScript Is the Secret Weapon for Large JavaScript Projects
Meituan Technology Team
Meituan Technology Team
Mar 9, 2017 · Frontend Development

Lego: A Component-Based Front-End Page Assembly Platform at Meituan

Lego is a component-based front-end page assembly platform at Meituan, enabling rapid low-code page building via drag‑drop components, with an Assembly Factory UI, developer SDKs, event‑based component communication, and a rendering engine that outputs HTML/FreeMarker, reducing development time and standardizing UI across projects.

Component ArchitectureFront-endJavaScript
0 likes · 17 min read
Lego: A Component-Based Front-End Page Assembly Platform at Meituan
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Mar 4, 2017 · Frontend Development

Why JavaScript Parsing Slows Your Site and How to Speed It Up

This article examines how JavaScript parsing, compilation, and execution dominate web page startup time, presents data from V8 runtime statistics across desktop and mobile browsers, and offers practical techniques—such as code splitting, script streaming, and code caching—to dramatically reduce launch delays.

CompilationJavaScriptV8
0 likes · 15 min read
Why JavaScript Parsing Slows Your Site and How to Speed It Up
ITPUB
ITPUB
Mar 2, 2017 · Frontend Development

Build a Lightweight JavaScript Error Tracker for Small Web Projects

Learn how to create a simple, custom JavaScript error‑tracking system that logs client‑side exceptions to a server, stores them in a database, and notifies users, offering a low‑cost alternative to heavyweight services for small web projects.

Custom TrackerJavaScriptWeb Development
0 likes · 5 min read
Build a Lightweight JavaScript Error Tracker for Small Web Projects
Aotu Lab
Aotu Lab
Feb 17, 2017 · Frontend Development

Master Snap.svg: From Basics to Advanced SVG Animations with Code Samples

This article provides a comprehensive guide to Snap.svg, explaining its purpose, API similarities with jQuery, core classes like Element and Paper, various animation techniques—including element and static animations, path and matrix transformations—along with compatibility tips, performance recommendations, and useful code examples.

JavaScriptMatrix transformSVG animation
0 likes · 17 min read
Master Snap.svg: From Basics to Advanced SVG Animations with Code Samples
Taobao Frontend Technology
Taobao Frontend Technology
Feb 16, 2017 · Frontend Development

Mastering API Design: Essential Principles for Clean, Usable Frontend APIs

This comprehensive guide explores the fundamentals of API design for front‑end development, covering naming conventions, lexical correctness, parameter ordering, return values, versioning, and extensibility, and provides practical code examples to help developers create intuitive, maintainable, and future‑proof interfaces.

API designJavaScriptbest practices
0 likes · 29 min read
Mastering API Design: Essential Principles for Clean, Usable Frontend APIs
Hujiang Technology
Hujiang Technology
Feb 10, 2017 · Mobile Development

Thinking in Redux: Migrating from MVC to React‑Native State Management

This article explains how to transition from traditional MVC architecture to Redux when building a React‑Native mobile app, detailing the analogies between actions, reducers, stores, and components, and provides step‑by‑step code examples for implementing state management in JavaScript.

JavaScriptReduxState Management
0 likes · 10 min read
Thinking in Redux: Migrating from MVC to React‑Native State Management
JavaScript
JavaScript
Feb 7, 2017 · Fundamentals

Master JavaScript Stacks: Build, Use, and Apply Stack Operations

This article explains the concept of a stack as a LIFO data structure, shows how to implement a Stack class in JavaScript with essential methods like push, pop, size, empty, peek, and clear, and demonstrates practical usage through recursive and iterative factorial calculations.

AlgorithmJavaScriptdata structure
0 likes · 4 min read
Master JavaScript Stacks: Build, Use, and Apply Stack Operations
Qunar Tech Salon
Qunar Tech Salon
Feb 6, 2017 · Frontend Development

Front‑End Performance Optimization: Best Practices and Techniques

This article presents a comprehensive guide to front‑end performance optimization, covering how to prioritize bottlenecks, use debounce/throttle, reduce DOM reflows, optimize rendering, leverage requestAnimationFrame and Web Workers, and apply efficient CSS and script loading strategies, all illustrated with practical code examples.

CSSDOMJavaScript
0 likes · 16 min read
Front‑End Performance Optimization: Best Practices and Techniques
JavaScript
JavaScript
Jan 15, 2017 · Frontend Development

How to Implement Efficient Image Lazy Loading with Vanilla JavaScript

This guide explains the concept of image lazy loading, how to detect when an image enters the viewport, and provides a complete vanilla‑JavaScript implementation with throttled scroll handling to improve page performance and reduce bandwidth usage.

JavaScriptPerformancefrontend
0 likes · 4 min read
How to Implement Efficient Image Lazy Loading with Vanilla JavaScript
JavaScript
JavaScript
Jan 12, 2017 · Mobile Development

How to Implement Responsive Touch Feedback on Mobile Web Pages

This article explains three methods to provide visual touch feedback on mobile web pages—using the :active pseudo‑class with a touchstart handler, the non‑standard -webkit‑tap‑highlight‑color property, and custom touch event listeners that add and remove an active class, plus tips for handling the 300 ms delay.

CSSJavaScripttouch feedback
0 likes · 4 min read
How to Implement Responsive Touch Feedback on Mobile Web Pages
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Jan 8, 2017 · Frontend Development

Building a Scalable Web Interactive System with NEJ: Module Decomposition Guide

This article, the third in a series on constructing high‑scalable web interactive systems, demonstrates how to use NetEase's NEJ framework to decompose complex SPA modules, define hierarchical and dependency trees, register external and layout modules, map functionalities, and configure the entire application for scalable development and maintenance.

JavaScriptNEJSPA
0 likes · 22 min read
Building a Scalable Web Interactive System with NEJ: Module Decomposition Guide
Java High-Performance Architecture
Java High-Performance Architecture
Jan 6, 2017 · Backend Development

Build Real‑Time Web Apps with Socket.IO: From Basics to a Live Clock Demo

This article introduces Socket.IO, explains its features and transport fallback mechanisms, showcases a real‑world example (tty.js Linux terminal), and provides a step‑by‑step guide to create a simple web page that displays the server’s current time using Node.js and client‑side JavaScript.

JavaScriptNode.jsReal‑time communication
0 likes · 5 min read
Build Real‑Time Web Apps with Socket.IO: From Basics to a Live Clock Demo
Taobao Frontend Technology
Taobao Frontend Technology
Jan 6, 2017 · Frontend Development

How to Write Readable JavaScript Code: Naming, Branches, and Functions

This article explains why readable code matters for developers, then offers practical guidelines on naming variables and functions, structuring conditional branches, keeping functions single‑purpose, handling errors, avoiding side‑effects, and organizing class methods to improve maintainability in modern JavaScript projects.

JavaScriptbest practicescode readability
0 likes · 24 min read
How to Write Readable JavaScript Code: Naming, Branches, and Functions