WR 20251115
题图:去了趟平谷,叶子还没有掉光
Just use a button
One of the weirdest “debates” I seem to perpetually have with framework-enthusiastic developers is whether or not a<div>is “just as good” as a<button>. Spoiler: it’s not. Let’s dig in.
Web 2.0 刚刚兴起的时候,前端工程师是非常在乎 HTML 语义的。因为在早些年,网页大量使用表格进行布局,导致 HTML 中充斥着层层叠叠的表格。
<tr>
<td></td>
<td>
<table>
<tr>
<td>
正文文内容在这里
</td>
</tr>
</table>
</td>
</tr>
这种布局方式代码和内容八竿子打不着,后来引入语义化代码,将布局交给 CSS,实现了即使网页只有 HTML 也具有高度的可读性,对可用性来说是一次飞跃。 作为一个半吊子前段工程师,看到这个文章我还挺震惊的,这竟然也能辩起来?如果 div 当作按钮是好的,那么 html 里面不再需要其他可交互元素,所有元素都可以是 div。用框架用到脑死亡了才会做出这种选择。
What ‘AI Mark’ taught me about the realities of the new technology
This is where the limitations of the technology became clear. To have useful conversations with AI Mark, the limits on what he could say – the guardrails, as I call them – had to be lower. But lowering them even slightly increased the risk that AI Mark would produce Tinder dating profiles on demand. After thousands of conversations, I lifted the guardrails so high that AI Mark would only respond to key phrases or sentences, which makes it harder to distinguish him from a chatbot.
英国一位年轻的议员尝试用 LLM AI 与选区群众沟通,从功能上来说,就像他说的,最终和客服机器人没有什么太大区别。因为需要人工回顾所有聊天内容,也没有提高他们的效率。但是要掌握新技术能力边界最好的方式就是去用它,小马过河永不过时。
其他一些乱七八糟的
- 【B站】 Chrome新加入的朗读网页内容功能,我要被它笑死了。中国人听得懂但陌生,外国人熟悉但听不懂。 2025 年了 TTS 还能闹这笑话 😂
- 【B站】乐道L60&小鹏G6的40000公里耐久测试 现在国产车的质量可真是好。




