首页Mokin’s Engineering Notes
香港天气加载中…
QWeather ↗

FIELD NOTES FROM THE WORKBENCH

Engineering,
with curiosity.

Storage systems. Reliable tests. AI that holds up.
A notebook for making complex engineering
a little clearer.

Explore the notes
Systems/Intelligence/Code

THE NOTEBOOK

All notes.

7 notes

Practical notes. Three areas of engineering to explore.

02

理解递归:从函数调用到逐层返回

通过阶乘、调用栈交互与实际日志,理解每次调用独立的局部状态、返回后如何继续,以及多层递归调用如何共存。

Python递归Recursion调用栈
04

One lucky run is not an agent evaluation.

Turn an impressive demo into a repeatable evaluation with explicit outcomes, multiple trials, and readable traces.

AI agentsEvaluationsReliability
05

Treat a prompt change like a release.

Version the behavior you expect, compare it against a baseline, and keep enough evidence to understand regressions.

PromptsRegression testingLLM
07

A lock protects an invariant, not a variable.

Think about the state that must stay consistent, then make the whole read–check–write operation participate in the same protocol.

PythonConcurrencySynchronization

— You’re all caught up. There’s always more to understand. —

THE COMMON THREAD

Good engineering starts
with a better question.

Observe carefully.
Make the idea testable.
Let the evidence lead.