Blog

Publishing Public Packages to npmjs

This article introduces publishing public packages to npmjs, including its advantages, implementation details, and …

· 2 min
Node.js

Applying for a U.S. Visa

Notes from a smooth U.S. visa application (B1/B2): required docs, principles, DS‑160 tips, interview, and EVUS.

· 4 min

Don't Use Yoda Conditions in Frontend

This post explains why not to use Yoda conditions in frontend code, covering scenarios and lint rules to improve code …

· 2 min
Code Quality

NPM Indirect Dependency Version Issues

This article introduces NPM indirect dependency version management, including its advantages, implementation details, …

· 2 min
Node.js

Unknown vs. Any in TypeScript

Highlights the core difference between `unknown` and `any`, with examples of type narrowing and why `unknown` is safer.

· 1 min
TypeScript

2019 Year-End Summary

This is the author's 2019 year-end summary, reviewing growth in a complex project, reflecting on technical learning, and …

· 6 min
Annual Review

PUT vs. PATCH in REST APIs

Clarifies when to use PUT or PATCH, quoting HTTP/1.1 definitions, exploring practical scenarios, and discussing the …

· 2 min
API Design

Global Exception Interception and Customized Error Handling in Axios

This article explores the implementation of global exception interception and customized error handling in Axios. …

· 3 min
React

Redux-Saga Helper Functions

Breaks down takeEvery, takeLeading, and takeLatest with behavior notes, logs from experiments, and guidance on when to …

· 3 min
React

Duplicate identifier LibraryManagedAttributes

This article introduces the solution to the Duplicate identifier LibraryManagedAttributes error, including the …

· 1 min
TypeScriptNode.js

Read-only Nature of React Props

This article introduces the read-only nature of React Props, including its advantages, implementation details, and …

· 3 min
React

Migrate to a New Mac with Time Machine

How to restore a new Mac from a Synology-based Time Machine backup, plus what still needs manual setup afterward.

· 2 min
Apple Ecosystem

Talking About the Axios HTTP Library

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

· 2 min
JavaScript

Improve Frontend Code Quality with Tools — Version Automation

Automating versioning and changelogs to improve frontend code quality and release reliability, with concrete tooling and …

· 5 min
Code QualityTooling

Publishing Frontend Packages to Private npm Registry

This article introduces publishing frontend packages to private npm registry, including usage scenarios and …

· 4 min
Node.js

Deploy V2Ray with Docker

Step-by-step V2Ray deployment using Docker and docker-compose: prerequisites, VPS selection, install steps, configs, and …

· 4 min
DevOpsNetworking

How to Use Alfred for Efficient Word Lookup with Eudic Dictionary (Step-by-Step Guide)

Enhancing Eudic Dictionary word lookup efficiency using Alfred workflows and AppleScript, addressing pain points like …

· 3 min
Apple EcosystemProductivity Tools

How to Use Google Voice (Step-by-Step Guide)

This article introduces the Google Voice usage guide, including its advantages, implementation details, and relevant …

· 2 min

Transforming VSC into a Tool to Complement IDEA

How to configure VSC to complement IDEA, enhancing workflow efficiency.

· 2 min
ToolsVSCVisual Studio Code

Dictionary vs Map vs Object

This article introduces the differences between Dictionary, Map, and Object in JavaScript, including their advantages, …

· 4 min
JavaScript

Type Issues When Using React with TypeScript

This article introduces type issues when using React with TypeScript, including their advantages, implementation …

· 5 min
TypeScriptReact

Redux in Action Key Takeaways

Key takeaways from Redux in Action plus a year of hands-on Redux work: immutability, async handling, action patterns, …

· 4 min
React

Governing the Frontend API Layer

From ad‑hoc exported functions to an OO API layer with clear namespaces, shared base paths, and naming conventions.

· 3 min
ReactFrontend Development

interface vs type in TypeScript

When to use interfaces vs. type aliases, what the TypeScript docs recommend, and how the ESLint/TSLint rule works.

· 2 min
TypeScriptTechnical Study

Essential JetBrains IDE Plugins

This article introduces commonly used JetBrains IDE plugins, including their advantages, implementation details, and …

· 2 min