JavaScript

Why I Hate Lodash

This article explains why I hate Lodash, including usage scenarios and implementation details, to improve understanding of the issues with over-relying on Lodash.

Feb 16, 2020

JS进行时间格式化

本文是作者对JS进行时间格式化的介绍,包括JS进行时间格式化的优势、实现细节、相关资料等,这些步骤可以帮助作者提高JS进行时间格式化的效率。

Feb 3, 2020

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

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