ALL POSTS

The Usages and Traps of useEffect in React

The article discusses the challenges and pitfalls of using useEffect in React, emphasizing its proper application for idempotent view initialization and refresh, cautioning against non-idempotent operations to avoid inconsistencies between data and UI.

5 Feb, 2024
REACT

React 中的 useEffect 用途和一些坑

文章讨论了在 React 中使用 useEffect 的挑战和陷阱,强调其在幂等视图初始化和刷新方面的正确应用,并警告不要进行非幂等操作,以避免数据和 UI 之间的不一致。

5 Feb, 2024
REACT

Why the Graphql Is Better than Restful in Math Conclusion?

This article analyzes GraphQL's unique capabilities in API design, highlighting its advantages over REST, such as optimized data loading, enhanced data model composability, and improved semantic clarity in queries and mutations.

20 Jan, 2024
SE

Viewpoints and Conclusions of The Road to Serfdom

The Road to Serfdom by Friedrich Hayek warns against planned economies, advocating for free markets and individualism to safeguard freedom and societal order. Hayek critiques central planning, emphasizing the knowledge problem and the evolution of social rules, defending liberalism as a solution.

19 Jan, 2024
文史哲艺

Why Can't the Underworld Manage High Technology?

Galeev: Gangs excel in simple industries, struggle in complex sectors.

15 Jan, 2024
文史哲艺

The Event-Listening Implementation

This article explores the essence of event handlers as callback functions, relinquishing control to event initiators. Events are obtained through either polling or operating system-assisted methods like blocking calls. The operating system serves as an event callback system, handling interrupts, and integrating callbacks into event loops.

13 Jan, 2024
OS

TypeScript Type-Exercises-3

10 Jan, 2024
JS&TS

TypeScript Type-Exercises 2

There are some type exercise about string literal type.

4 Jan, 2024
JS&TS

TypeScript Type-Exercises 1

3 Jan, 2024
JS&TS

就任北京大学校长之演说

《就任北京大学校长之演说》是近代教育家蔡元培的演说作品,是蔡元培在 1917 年就任北京大学校长时发表的。这篇就任北京大学校长的就职演讲,开宗明义地对青年学子提出了三点要求:一是抱定宗旨;二是砥砺德行;三是敬爱师友。明确求学目的及办学宗旨,望学子们以身作则,匡正流俗,为天下人之道德楷模。

31 Dec, 2023
文史哲艺
/ 9