TGViewer
Блог* Блог* @dereference_pointer_there · 1.98K subscribers
Post #10357 875
#prog #js #typescript #article

The Code Review That Changed Everything

TL;DR: в отличие от прочих абстракций, enum в Typescript приводит к генерации нетрививального рантайм-кода, который не вычищается tree shaker-ами, а в случае численных enum ещё и не даёт type safety.

(thanks @al_tch)
DEV Community The Code Review That Changed Everything Three months ago, I submitted what I thought was a perfectly reasonable pull request. I had created a...
  • 😢 16
  • 🤣 2
  • 🤔 1
More from @dereference_pointer_there
  1. Oct 16, 2026Тем временем разработчики на Go *tailscale
  2. Oct 16, 2026А всем остальным нам?!
  3. Oct 16, 2026#meme про сон
  4. Oct 15, 2026#prog #rust #suckassstory rustc uses the Path hash code to identify files, and the Path ha…
  5. Oct 15, 2026#python #meme
  6. Oct 14, 2026r/rust (потому что написано вроде на Tauri)
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →