Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Latest articles

4 min read

Top Frontend Tech Insights: IOC, JS Frameworks, Mobile Evolution, and AI Trends

This article curates key front‑end and emerging tech topics—including Inversion of Control in JavaScript, the overload of JS frameworks, Facebook's iOS codebase evolution, GPT‑4's launch, prompt‑engineering automation, and nuanced UI control design—offering concise insights for modern developers.

14 min read

Cross‑Platform Mobile Development: Evaluation and Implementation of Flutter and H5 Hybrid Solutions

The team evaluated cross‑platform options, piloted both Flutter and an H5 offline‑Hybrid approach, found Flutter’s self‑rendering engine delivered superior performance and consistency, and consequently adopted Flutter as the primary framework, dramatically improving development efficiency and UI parity across Android and iOS.

14 min read

Client-Side APM Monitoring System Implementation for NetEase Cloud Music

The article describes NetEase Cloud Music’s custom client‑side APM system that combats sliding stutter, heating, UI freezes and crashes by employing binary‑tree stack aggregation to halve storage, window‑based CPU analysis, run‑loop jank detection, ping‑based ANR monitoring, and malloc‑logger memory tracking with automated dump thresholds.

16 min read

How Baidu Cut Its iOS App Size by 50 MB: A Deep Dive into Package Optimization

This article examines why Baidu's super‑app needed a drastic reduction in its iOS package size, outlines the metrics that link bundle size to download conversion, compares the app‑size footprints of major domestic and overseas apps, and details the multi‑layered technical solutions—resource trimming, architecture safeguards, compiler tweaks, image compression, and code slimming—that together saved over 50 MB while preserving functionality.

8 min read

Master Mobile UI Animation: Motion Curves, Consistency Tips & Essential Scripts

This article explains why UI motion effects are crucial for mobile apps, details the four main animation curves, shares practical techniques for maintaining animation consistency, recommends After Effects scripts for curve adjustment and batch keyframe copying, and outlines export formats and duration guidelines.

5 min read

What Developers Really Think About React Native: Top Pain Points & Preferred Alternatives

A recent State of React Native survey of over 1,800 developers reveals three major pain points—upgrade difficulty, debugging challenges, and performance issues—while highlighting SwiftUI and Jetpack Compose as the most favored alternatives and offering insights into emerging state‑management libraries.

7 min read

Introducing CameraViewfinder: Simplify Resizable Camera Preview on Android

This article explains how Android developers can use the new Jetpack CameraViewfinder component to implement reliable, resizable camera previews across diverse device form factors—including foldables and multi‑window modes—by adding the library, configuring layout XML, and handling surface requests with concise Kotlin code examples.

8 min read

Exploring Flutter Dynamic Updates with Fair: Research, Setup, and Practical Guide

This article examines the limitations of traditional app release cycles, compares existing Flutter dynamic‑update frameworks, and provides a comprehensive step‑by‑step tutorial—including tool installation, project creation, code generation, hot‑update service launch, syntax‑checking plugin usage, and deployment pitfalls—for adopting the Fair framework to achieve seamless, incremental updates in mobile applications.

10 min read

Hybrid Native Map and H5 Integration via WebView for Overseas Projects

The project replaces costly Google Dynamic Maps with a hybrid solution that overlays a transparent WebView on a native map component, using a JSBridge to route H5 events and native map interactions, dynamically managing hot‑zone data, thereby cutting service fees, boosting performance, and preserving H5 development flexibility.

11 min read

Android ANR Monitoring, Diagnosis and Governance Practice

The article explains how to monitor, locate, and remediate Android ANRs by installing a LooperPrinter‑based timeout detector, extending coverage to IdleHandler and touch events, dumping and aggregating main‑thread stacks via Firebase Crashlytics, and showcases real‑world fixes that cut online ANRs by 73.8%.

14 min read

wrn-echarts: Integrating ECharts into React Native with Native Rendering and Performance Evaluation

This article introduces the wrn-echarts project, detailing its background, feasibility analysis, architecture, implementation of SVG and Skia rendering modes, touch‑event handling, solved issues, usage steps, performance comparison with react-native-echarts-pro, conclusions, and future plans.

16 min read

How to Prepare Android Apps for Global Release: Architecture, AAB Packaging, and Multi‑Language Support

This article shares practical techniques for adapting Android apps to overseas markets, covering modular code design, compliance checks, AAB bundle creation, Google Play signing, manifest adjustments, and automated multi‑language workflows to streamline global publishing.

6 min read

Why Swift’s New Open‑Source Foundation Framework Could Transform iOS Development

Apple has open‑sourced a new Swift‑written Foundation framework that replaces the Objective‑C based version, promising lower conversion overhead, improved performance, and new packages like Foundation Essentials, Internationalization, and ObjC Compatibility, while the community reacts positively and discusses future cross‑platform implications.

7 min read

Top 10 Technical Insights from NetEase Yanxuan in 2022

This article curates the ten most-read technical posts from NetEase Yanxuan in 2022, covering DDD adoption, reverse transaction systems, availability metrics, documentation practices, inventory locking, performance optimization, stability governance, H5 containerization, 2B architecture, and the evolution of the Yanxuan app’s engineering architecture.

11 min read

Layered Performance Testing for Kun (Flutter‑Based) Mobile Container

To ensure Kun’s Flutter‑based container upgrades improve Xianyu’s user experience, we introduced a layered performance testing framework that defines industry‑standard metrics, component‑ and business‑level benchmarks, multi‑dimensional stress and regression checks, automated scripts, expanded device pools, and streamlined task creation, delivering faster insights, higher stability, and actionable optimization feedback.

20 min read

Game Quality Assurance and Testing in Taobao Mini Program Ecosystem

The article examines the unique QA and testing challenges of Taobao’s Mini Program game ecosystem—such as incomplete container tools, lacking engine standards, and diverse usage patterns—and proposes solutions including a dedicated testing infrastructure, performance standards, automated integration, proactive monitoring, fault simulation, and future enhancements.

10 min read

Migrating Fluently Speaking Apps to Android 12: Background, Technical Solutions, and Practical Implementation

This article outlines the background, technical analysis, and step‑by‑step practical migration of multiple Fluently Speaking Android applications to Android 12, covering environment upgrades, Gradle and JDK changes, CI/CD runner configuration, API adjustments, UI updates, and future outlook.

18 min read

Baidu APP Android Live Streaming Startup Performance Optimization Practice

To cut Baidu APP Android’s live‑stream startup from over three seconds to about 1.3 seconds, engineers introduced fine‑grained monitoring, switched first‑entry to a lightweight level‑1 plugin, pre‑started the player, scattered initialization tasks, prioritized first‑frame delivery, and balanced plugin pre‑download with full‑load performance.

22 min read

H5 Containerization in Mobile Apps: Loading Optimization, Performance Monitoring, Plugin System, and Factory Solutions

The article proposes a full‑stack H5 containerization framework for mobile apps that boosts user experience and development efficiency by pre‑heating WebViews, using offline packages and parallel data loading to cut load times, adding comprehensive performance monitoring, a modular native‑plugin system, and a configuration‑driven shell‑container factory that frees frontend teams from mobile‑team dependence.

15 min read

Implementing External Links and Local Data Persistence in SwiftUI using FileManager and CoreData

This chapter demonstrates how to open external web links in the iOS browser using SwiftUI's Link view, and provides a comprehensive guide to local data persistence by employing FileManager with property list files and the CoreData framework for storing, loading, editing, and deleting model data within a SwiftUI app.

15 min read

How Haro’s “Lego” System Revolutionizes Multi‑Team Mobile Page Development

This article analyzes Haro’s end‑to‑end “Lego” system, detailing its background, the multi‑team collaboration challenges of core app pages, the modular architecture spanning product‑ops backend, configurable aggregation services, and a mobile container framework, and the resulting efficiency and stability gains.

12 min read

Red Dot Counter Implementation in a Mobile App

The article explains how to implement a red‑dot badge system in the “玩心部落” mobile app using a tree‑structured RedPoint hierarchy combined with the Observer pattern, where each node tracks its count, notifies UI observers, propagates updates to parent nodes, and is managed centrally by a HeadRedPoint singleton for easy extension.

17 min read

How Baidu App Prevents OOM Crashes with Real‑Time Memory Monitoring and Prediction

This article details Baidu's multi‑step memory‑control solution for its iOS app, covering background challenges, real‑time memory monitoring, page‑level memory prediction, water‑level determination, frequency control, proactive degradation, and code examples that together reduce OOM incidents on low‑end devices.

17 min read

How NetEase Yanxuan Solved Android Componentization Challenges and Boosted Development Efficiency

This article details NetEase Yanxuan's Android team transition to a component‑based architecture, identifies inherent problems such as version control, quality assurance, semantic versioning and binary compatibility, and presents the YAC engineering solution—including standardized processes, Gradle plugins, CI/CD pipelines, and tooling—to streamline component development and improve productivity.

18 min read

Applying MVP Architecture to Reduce Complexity in Android Search UI

This article explains how managing complexity by layering responsibilities and introducing an MVP architecture separates UI rendering from business logic in Android search features, illustrating the problems of high coupling and low cohesion with concrete Kotlin code examples and discussing AB testing and decorator patterns.

9 min read

Building a SwiftUI Electronic Business Card App (Linkworld) – A Step‑by‑Step Tutorial

This tutorial walks through the design and implementation of a SwiftUI‑based electronic business‑card app called Linkworld, covering project background, MVP analysis, component creation, variable declarations, layout containers (HStack, VStack, ZStack), and previewing multiple cards with full code examples.

8 min read

Optimizing Infinite Waterfall List Performance in React Native Using RecyclerListView

This article explains how the automotive app team tackled severe scrolling lag on low‑end Android devices by replacing the default FlatList with a reusable RecyclerListView implementation, detailing rendering principles, layout calculations, height estimation techniques, and the resulting performance gains.

8 min read

Why Meta Swapped Java for Kotlin: Insights from a Massive Android Migration

Meta’s recent shift of its Android apps from Java to Kotlin reveals both the compelling benefits—such as null‑safety, concise code, and functional features—and the practical challenges like mixed codebases, tooling gaps, and longer build times, offering a detailed roadmap for large‑scale mobile language migration.

15 min read

GaiaX Open Source Interpretation | Cross-Platform Technology Based on Youku Business Characteristics

GaiaX is a cross‑platform template engine created for Alibaba’s Youku ecosystem that tackles multi‑terminal UI development bottlenecks by using a custom DSL with native rendering, offering high performance, dynamic updates, reusable components, containerized solutions, and integrated preview and design‑to‑code tools.

13 min read

Architecture and Data Flow of Bilibili Live Room: MVVM Design, View Interaction, and Business Segmentation

The article dissects Bilibili’s live‑room architecture, showing how dozens of independent MVVM‑based Views act as business units, explains the coupling problems caused by improper LiveData and cross‑ViewModel references, outlines a service‑driven data‑flow and zone‑based lifecycle model, and proposes systematic refactoring to reduce technical debt and foster shared architectural ownership.

9 min read

Flutter Developers’ IDE Preferences: Android Studio vs VS Code – 2022 Research Findings

A 2022 research study by Google’s Flutter UX team reveals that while Android Studio was once the dominant IDE for Flutter development, VS Code has rapidly gained popularity due to its speed, lightweight nature, and better perceived support, with many developers now favoring it across various regions and use cases.

23 min read

Reimagining Mobile Development: Unified Cross-Platform Containers and the KUN Strategy

This article outlines the evolving trends in terminal devices and software architecture, argues for unified cross‑platform containers, proposes a streamlined organizational model with fewer, more versatile roles, and introduces the KUN project—a high‑performance, extensible Flutter‑based rendering engine aimed at boosting mobile development efficiency.

36 min read

Componentization and Modular Architecture Refactoring for a Mobile Video Editing App (B‑Cut)

The B‑Cut video‑editing app was transformed from a monolithic single‑project codebase into a component‑based modular architecture—introducing clear layers, Gradle‑driven unified configuration, independent library/application modules, strict dependency and resource conventions, and a fast‑compile system—thereby cutting build times, eliminating merge conflicts, and enabling reusable components across teams.

20 min read

Comprehensive Guide to Android ADB: Concepts, Setup, Commands, and Automation Scripts

This article provides a detailed introduction to Android Debug Bridge (ADB), covering its concepts, architecture, environment setup, common issues, command syntax, and practical automation examples using both shell scripts and Python, enabling developers to control devices, perform UI actions, and schedule tasks efficiently.

26 min read

How to Shrink iOS App Size: Proven Strategies and ROI from Alibaba.com

This article explains why app package size matters for download conversion and uninstall rates, presents business value data, and details a comprehensive set of iOS app slimming techniques—including component, resource, and compilation optimizations, code removal, and anti‑regression mechanisms—along with practical ROI analysis and implementation steps.

15 min read

State Management in Flutter: Concepts, Classifications, and Common Frameworks

State management in Flutter involves understanding different state types—ephemeral and application—using stateful and stateless widgets, and selecting appropriate frameworks such as Provider, Redux, GetX, and others, each with distinct advantages, drawbacks, and usage patterns to efficiently handle UI updates and data sharing across components.

9 min read

Optimizing Android AsyncLayoutInflater for Thread Safety and Performance

Xiaohongshu refactored Android’s AsyncLayoutInflater by introducing a configurable thread‑pool, safe object pools, and a singleton ViewCache, eliminating ArrayMap and LayoutInflater lock issues, which together yielded over 20% faster cold‑starts and page loads, demonstrating significant performance and business benefits.

10 min read

JD App Adaptation to OpenHarmony: Business Complexity, Technology Stack, and JD MCube Dynamic Framework

The article details JD's extensive effort to adapt its massive e‑commerce app to OpenHarmony, analyzing business diversity, a multi‑layered technology stack, the cross‑platform Aotu Taro solution, the native JD MCube dynamic framework, UI‑framework comparisons, implementation steps, results, and future plans.

9 min read

Perfetto Trace Analysis Guide: Android Performance Profiling Tool

This guide explains how to install and use Perfetto, Android’s next‑generation tracing tool, covering trace capture via command line or Traceur, UI navigation, key trace elements, and practical SQL queries for analyzing slices, counters, scheduling, thread states, and lock contention to optimize performance.

30 min read

How We Halved App Startup Time: A Deep Dive into Android Launch Optimization

This article details a five‑month performance project that reduced the heart‑beat app’s average launch time from over eight seconds to around four seconds by dissecting cold‑start phases, optimizing Application initialization, streamlining the launch chain, and applying home‑page, lock, and monitoring strategies.

18 min read

Custom Nested Scrolling Layout Implementation for Lofter Personal Homepage on Android

This article details the design and implementation of a custom nested scrolling layout for the Lofter 7.1.0 personal homepage, covering the selection of Android coordinator components, the underlying NestedScrolling mechanism, step‑by‑step integration, code analysis, inertia handling, and animation management.

20 min read

How Baidu Optimized Low‑End Device Startup Performance: A Deep Dive

This article explains how Baidu's performance team tackled the slowdown of mobile internet growth by defining low‑end devices, building observability, creating high‑efficiency tooling, redesigning key components such as KV storage and locks, and introducing a smart scheduling framework that together reduced Android cold‑start TTI by over 50% and iOS cold‑start TTI by more than 40%, while establishing a continuous anti‑degradation pipeline.

13 min read

A New Approach to State Refresh in Flutter Using Extension Properties and TosObWidget

This article introduces a novel Flutter state‑refresh technique that leverages Dart extension properties to implement an observer pattern, compares it with the traditional Provider/ChangeNotifier approach, and demonstrates a more granular, flexible solution called TosObWidget with complete code examples and performance analysis.

21 min read

Future Trends and R&D Organization for Mobile Development at Xianyu

The article predicts smartphones will dominate traffic for the next three years, argues that cross‑device frameworks like ReactNative, Weex and Flutter are essential, and proposes a streamlined R&D model at Xianyu with full‑stack mobile engineers and infrastructure engineers supported by a unified container, programming plane, workflow, and the high‑performance, W3C‑compliant KUN rendering engine to boost iteration speed, consistency, and talent efficiency.

13 min read

Inject OpenGL Rendering into Android RenderThread Using drawFunctor

This article explains the background, principles, and implementation steps for using Android's drawFunctor to inject custom OpenGL rendering into the RenderThread, including C++ and Java code, handling state preservation, view transformations, context loss, and performance benefits demonstrated by memory and CPU usage comparisons.

9 min read

Introduction to the Shadow Android Plugin Framework

The Shadow framework, developed by Tencent, is an open‑source Android plugin solution that reuses independent app source code, employs zero‑reflection dynamic loading, minimizes host footprint, and provides detailed module architecture, component support, Flutter integration, and isolation mechanisms for stable, dynamic plugin development.

8 min read

JD's JD MCube and Aotu Taro Frameworks Adaptation to OpenHarmony: Technical Overview and Implementation Details

This article presents JD's comprehensive technical analysis and implementation experience of adapting its JD MCube native dynamic framework and the cross‑platform Aotu Taro solution to the OpenHarmony ecosystem, covering business complexity, technology stack diversity, UI paradigm comparisons, concrete integration steps, results, and future plans.

21 min read

How Baidu App Shrinks Android APK Size with Advanced Resource Optimizations

This article details Baidu's multi‑step Android APK resource‑size reduction strategy, covering the structure of APK resources, built‑in AAPT2 optimizations, custom path and filename shortening, resource‑name collapsing, sparse entry encoding, image compression, duplicate‑resource handling, and the impact of AAB and Jetpack Compose on overall package size.

12 min read

Trip.com’s HarmonyOS Development Experience: Architecture, Service Card Creation, and Deployment

This article shares Trip.com’s practical experience with HarmonyOS development, covering the system’s distributed architecture, supported languages, service‑card design, native‑WebView integration, configuration files, testing, signing, and future outlook for cross‑device mobile applications.

10 min read

Understanding Window, Insets, and WindowInsets in Android: Concepts, APIs, and Practical Usage

This article explains the fundamental concepts of Window, Insets, and WindowInsets in Android, describes the different inset types, demonstrates how to retrieve and apply them with modern AndroidX APIs, and provides practical Kotlin code examples for handling system UI elements such as status bars, navigation bars, and the soft keyboard.

14 min read

Large Memory Allocation Monitoring Solution for iOS Applications

A low‑overhead monitoring solution for iOS apps resets the global malloc_logger to capture every allocation, filters large allocations exceeding a configurable threshold, records lightweight stack traces using dyld image maps, and sends address‑only data for offline symbolication, enabling developers to identify and fix memory‑heavy code, reducing OOM crashes.

10 min read

Fair 2.5.0 Release: New Features, Demo, and Usage Guide for the Flutter Dynamic Framework

The article introduces Fair 2.5.0—a Flutter‑based dynamic framework—detailing its project overview, GitHub link, version features such as Flutter 2.8.x adaptation, Dart2JS singleton support and new syntax‑sugar APIs, demo improvements, code examples, roadmap, quick‑start instructions, resources and contribution information.

13 min read

Applying Design Patterns to Optimize the Scan Feature Architecture

The Taobao Scan feature was refactored by applying the Responsibility‑Chain, State, and Proxy design patterns, separating view and logic layers, introducing a fluent pipeline API, modular state handling, and a global proxy, which together dramatically improved code maintainability, extensibility, testability, and reduced development risk.

16 min read

Flutter vs React Native vs Weex vs H5: Architecture, Performance, and Optimization

This article examines the four popular cross‑platform technologies—Flutter, React Native, Weex, and H5—by detailing their architectural layers, compilation models, rendering pipelines, typical performance bottlenecks, and practical optimization techniques, and offers guidance on selecting the most suitable stack for a given project.

24 min read

Why MVC Still Matters: Navigating Architecture Choices for Modern Apps

This article explores the practical challenges of using MVC and related architectural patterns, compares implementations from Microsoft, Apple, and industry experts, discusses controller bloat and view‑model relationships, and proposes solutions such as view‑to‑model factories, multi‑controller designs, and MVVM adoption to improve testability and maintainability.

15 min read

Implementing Flutter Deferred Components without Google Play: Official Scheme and Custom Demo

This article explains the official Flutter Deferred Components implementation, explores its limitations in China, and provides a step‑by‑step custom solution with code examples that enables dynamic Dart code delivery without relying on Google Play, complete with local verification instructions.

4 min read

Issue 4: Technical Articles on Full‑Chain Stress Testing, Distributed Web UI Automation, WWDC22 Sessions, Efficient Automated Testing, and AutoDiff Traffic Replay

This issue curates five technical articles covering Gaode's full‑chain stress testing platform, a distributed web UI automation system, a comprehensive WWDC22 session review, ShouQianBa's efficient automated testing practices, and Autohome's AutoDiff traffic replay for integrated testing.

14 min read

DX Development Mode: RecyclerLayout Container and Event Chain Design

The 2021‑2022 DX updates introduce the RecyclerLayout container, a native‑based list component with configurable styles, pull‑to‑refresh and pagination that can be altered via XML without native releases, and an JSON‑driven event chain protocol enabling sequential or asynchronous actions, visual IDE debugging, full‑link tracing, and real‑time monitoring, collectively delivering over 30% faster release cycles and 15% quicker server responses across multiple Taobao and Alibaba apps.