知識冒險者

gotcha

此標籤下有 13 條筆記。

  • 2026年9月17日

    Go 的 map 讀取不存在的 key 會回傳 zero value

    • go
    • data-structure
    • gotcha
  • 2026年9月17日

    defer 是後進先出,登記時機在執行到那一行

    • go
    • syntax
    • gotcha
  • 2026年9月17日

    for-select 裡的 time.After 每圈重置

    • go
    • concurrency
    • gotcha
  • 2026年9月17日

    nil map 可以讀但不能寫

    • go
    • data-structure
    • gotcha
  • 2026年9月17日

    select 的 case 後面不是條件而是一個 channel

    • go
    • concurrency
    • gotcha
  • 2026年9月17日

    select 等不到條件時會 deadlock 或 goroutine leak

    • go
    • concurrency
    • gotcha
  • 2026年8月30日

    Go 1.22 起迴圈變數每次疊代各自一份

    • go
    • gotcha
  • 2026年8月28日

    打包器靠 AST 形狀認出 worker,改寫法會靜默失效

    • webpack
    • build
    • gotcha
    • worker
  • 2026年8月25日

    Worker 與分頁共用同一份記憶體配額

    • frontend
    • browser
    • memory
    • gotcha
  • 2026年8月25日

    在共用 endpoint 加無條件檢查會打爛其他呼叫者

    • backend
    • api-design
    • gotcha
    • review
  • 2026年8月25日

    bind mount 掛原始碼會蓋掉 image 裡的 node_modules

    • docker
    • devops
    • gotcha
  • 2026年8月25日

    os.availableParallelism() 不讀 cgroup 回傳宿主機核心數

    • nodejs
    • kubernetes
    • cgroup
    • ci-cd
    • gotcha
  • 2026年8月01日

    React onWheel 預設 passive 必須綁原生事件才能 preventDefault

    • react
    • dom-event
    • canvas
    • gotcha
    • frontend

Created with Quartz v5.0.0 © 2026