TONG-H

2025-04

3592Daily Snippets2025-04-012025-04-26

2025/04/27

2025/04/20

  • 穏やかな日のような気分だ。風が優しく吹いている。
  • jp 53, 100%
  • Git stores branches as files in .git/refs/heads/.. A branch named feature/bid creates a file at .git/refs/heads/feature/bid, But feature/bid/main tries to create a file in a directory .git/refs/heads/feature/bid/main
  • jp 54, 20%

2025/04/12

  • SWR, a cache strategy
  • Zustand
  • tanstackRouter
  • --production=false, explicitly telling npm to install both dependencies and devDependencies, regardless of the current environment.
    • Common Scenarios like during the docker build phase or ci/cd, needs compiling TypeScript or running test
    • default behavior of npm install
    • default as dev, install both dependencies and devDependencies. while in production, only install dependencies
  • charles, HTTP debugging tool, similar to fiddler(Windows-focused)

  • jp 53, 90%, few words remaining
  • 当て字 (あたじ), like puzzles, The true meaning comes from the spoken word, while kanji is chosen to paint a beautiful image.
    • 月見里[やまなし] 小鳥遊[たかなし] 四月一日[わたぬき]
    • 栗花落[つゆり] 露降り, a name for the rainy season (梅雨[つゆ]), evoking dew on flowers
    • 商い, あきない, markets were most active after autumn harvests, so “not autumn” implied “year-round trading” → evolving into the general term for “commerce.”

  • smoke testing(st), comes from the analogy of “turning on the system to see if smoke comes out” (i.e., checking for obvious failures). it ensures that the most critical functions of a software build work before proceeding with deeper testing
  • regression testing, ensures that new code changes do not break existing functionality
  • holistic. Most core web frameworks do not come with an opinionated way of fetching or updating data in a holistic way
  • cobble together. This usually means cobbling together component-based state and side-effects, or using more general purpose state management libraries to store and - provide asynchronous data throughout their apps.
  • in unison. Configurable APIs like context, beforeLoad, loaderDeps and loader work in unison to make it easy to define declarative data dependencies

2025/04/06