JavaScript

Talking About the Axios HTTP Library

Common Axios gotchas: which status codes reject, how it differs from XHR onerror, redirects, array params, and canceled requests.

Dec 14, 2019

Dictionary vs Map vs Object

This article introduces the differences between Dictionary, Map, and Object in JavaScript, including their advantages, implementation details, and related resources to help improve efficiency with data structure selection.

Oct 27, 2019

Type Casting vs. Type Assertions in TypeScript

Clarifies that TypeScript’s `as` syntax performs compile-time assertions, not runtime casts, and compares it with TypeScript’s type inference and Java’s casting.

Aug 18, 2019

Jest Less Import Error

This article provides an introduction to Jest Less import errors, including solutions, implementation details, and related resources. These steps can help improve efficiency in resolving Jest Less import errors.

Aug 4, 2019

[Translation] Evaluating Redux Saga Test Libraries

Translated notes comparing native saga testing with five helper libraries, highlighting scenarios each handles best.

May 19, 2019

[Translation] Core JavaScript Concepts

This article translates and introduces some core JavaScript concepts, including scope, IIFE, MVC, async/await, closures, and callbacks, helping readers quickly understand these important JavaScript knowledge points.

Nov 11, 2018

On Sync, Async, and Cross-Origin

A cross-origin handoff where an async call would complicate things; a synchronous form submit ends up the cleanest approach.

Nov 4, 2018

[Translation] Promises vs Observables

This article introduces the comparison between Promises and Observables, including their advantages, implementation details, and related resources. These insights can help improve efficiency when working with Promises and Observables.

Jul 1, 2018

hexo-error

This article introduces common hexo errors, including their causes, solutions, and implementation details. These steps can help improve hexo efficiency.

Jun 20, 2018

jiathis HTTPS Unsupported Solution

This article provides a solution for jiathis HTTPS unsupported issues, including implementation details and alternative approaches for social sharing plugins in HTTPS environments.

Feb 25, 2018

jsPlumb Usage Guide

This comprehensive guide covers jsPlumb usage for creating directed acyclic graphs (DAGs), including key concepts, implementation examples, and practical tips for building interactive diagramming applications.

Dec 23, 2017

ES6 Common Issues

This article introduces common ES6 issues, including advantages, implementation details, and related resources that can help improve efficiency when working with ES6.

Dec 12, 2017

dagre-d3 Usage Guide

This article introduces the dagre-d3 usage guide, including its advantages, implementation details, and related resources to help improve efficiency with dagre-d3.

Nov 4, 2017

Webpack Build: File Hash Unchanged Despite Content Changes — Analysis and Fix

An analysis and fix for the issue where a Webpack build outputs files whose hash remains the same even though their content changes, including definitions, scenarios, and recommendations.

May 10, 2017