Skip to content
TopicTracker
来自 idiallo.com查看原文
译文语言译文语言

拜托了,请使用链接!

这是一篇技术吐槽文章。作者在使用一款内部单页应用时,点击浏览器返回按钮却直接跳转到 Chrome 新标签页,由此引发了对滥用 JavaScript 事件处理而忽视原生链接的批评。文章指出,许多开发者用带 onclick 的 div 或按钮代替真实的 <a> 链接,甚至用缺少 href 属性的锚标签来导航。作者强调,原生链接无需额外配置即可支持浏览器历史、提供预览和右键菜单、天生具备无障碍性,使用 React Router 的 Link 组件也能完美兼顾单页应用路由。请用真正的链接,别折腾用户。

相关报道

  • The author rejects becoming a "reverse centaur"—a term for humans forced to review machine-generated code—after observing a surge in LLM-produced pull requests to his open source projects. Despite his personal decision not to use generative AI coding tools, he now spends increasing time reviewing code written by AI and explains how he resists this role.

  • The article argues that disallowing trailing (or leading) separators in languages like JSON, Haskell, and Prolog was a design mistake, as it makes adding or removing elements more complex. It highlights languages like Python, Go, and Alloy that permit trailing commas, and notes potential parsing ambiguities when trailing separators are used in control-flow contexts.

  • The article argues that Lucas Costa's concept of "backpressure" for systems handling code-generating AI is a misnomer. Backpressure signals upstream processes to slow down, while Costa's suggestions are about improving quality, not reducing quantity. The author proposes "lean manufacturing" as a more accurate analogy for managing unstable inputs from AI-generated code.

  • The article explains that the Windows thread pool is optimized for throughput rather than low latency, which can cause delays in task execution. It discusses the trade-offs between throughput and latency when scheduling work on thread pools.