HackerURLs

一次又一次被重新发现的经典。

同一个链接,相隔一年以上,一次又一次被人重新发现、再次冲上 Hacker News 首页。能经受住这种时间检验的,大多是值得一读再读的文章。每篇附中文标题,讨论最热的那些再加上中文导读和高赞评论翻译。

从名人堂开始
  • 4,700+篇经过时间检验的经典

Hall of fame

名人堂

在经典库里看全部精选

上首页次数最多、而且有中文导读的 30 篇。时间轴上每个黑点是一次上首页,空心点是一次没冲上去的投稿。

  1. 正在载入经典…

Archive

经典库

按第一次上首页的年份分布,点柱子筛选。

排序

    About

    这些经典是怎么挑出来的

    1. 01

      合并同一个链接

      读取 Hacker News 自 2006 年以来的全部链接投稿,把 http/https、www、跟踪参数等写法不同的同一篇文章合并成一条。

    2. 02

      只留经得起时间的

      同一链接至少两次拿到 50 分以上(约等于上首页),而且两次相隔一年以上;再由 AI 剔除状态页、产品首页和新闻事件。

    3. 03

      写导读、译评论

      上首页次数最多的 2,000 篇配上中文导读、"为什么经久不衰",并精选翻译 HN 高赞评论。导读由 AI 生成,可能有误。

    编程与软件工程eager.io

    差一点成为 CSS 的语言

    Languages Which Almost Became CSS

    2次上首页
    4年跨度
    769累计得分
    206条评论

    2016 — 2020,它一次次回到首页

    黑点是上首页(≥ 50 分)的那次投稿,空心点是没冲上去的投稿,点越大分数越高。

    导读

    这篇文章回顾了 CSS 诞生之前曾竞争成为网页样式标准的多种语言方案,如 CHSS、DSSSL、JavaScript Style Sheets 等,梳理了 90 年代浏览器样式机制的演化史。它展示了 CSS 并非唯一候选,而是多方博弈后的产物。

    为什么经久不衰:它揭示了 CSS 之外曾被认真考虑过的设计路径,让人反思今天 Web 样式系统的取舍与历史偶然性。

    关键词 CSS 历史浏览器史网页样式Web 标准

    HN 评论精选

    布局应采用声明式约束求解系统,而非过程式方案

    布局本应是约束导向的,而不是过程式的。你应该能表达“这个盒子的底部紧邻那个盒子的顶部”这类约束,把它们交给约束引擎生成布局——这也是所见即所得编辑器能自动生成的东西。想感受这种思路,可以试试 Autodesk Inventor 的草图模式:你可以指定点与边重合、边与边重合、指定尺寸、尺寸之间的数值关系等。HTML5 和 CSS 的设计者是过程式思维而非几何思维,这很明显。设计师是几何思维,几何约束系统才符合他们的直觉。

    Animats查看英文原文

    Layout should have been constraint-oriented, not procedural. You should be able to express "Bottom of this box is adjacent to top of that box", and such. All those constraints go into a constraint engine, and a layout is generated. This is something a WYSIWYG editor can generate. To get a sense of how this could work, try sketch mode in Autodesk Inventor (there's a free 30 day demo) You can specify that a point must be coincident to an edge, that an edge must be coincident to an edge, that something must have specified dimensions, that some dimension must have a numerical relationship with another dimension, etc. Inventor goes further, supporting constraints on diagonal lines, circles, arcs, ellipses, etc. Whether layout should support curves is an interesting question, but the technology exists to make that work. The people who designed HTML5 and CSS thought procedurally, not geometrically. It shows. Designers think geometrically, and a geometric constraint system would make sense to designers.

    样式与用户控制权的丧失导致浏览器复杂化和 Chromium 垄断

    1991 年 Tim Berners-Lee 公布 HTML 时并没有样式方法,页面如何渲染由浏览器决定,用户偏好也有很大影响。我几乎希望我们仍生活在那样的世界:网页只提供结构和数据,由用户决定如何消费。把 Web 应用塞进分布式超文本文档的模型里,从根本上就是个错误。如果浏览器只负责渲染 HTML,复杂度会大幅消失,也会涌现出各种迎合不同用户偏好的浏览器。正是这种复杂度,让我们走向 Chromium/Blink 的单一文化——只有手握数十亿美元的公司才养得起开发浏览器的团队。

    RcouF1uZ4gsC查看英文原文

    > When HTML was announced by Tim Berners-Lee in 1991 there was no method of styling pages. How given HTML tags were rendered was determined by the browser, often with significant input from the user’s preferences. I almost wished we still lived in this world, where the web pages provides the structure and data, and I as the user get to decide how I want to consume it. I think trying to cram web applications into the same model as distributed, hyperlinked documents was fundamentally a mistake. If a browser was just about rendering html, a significant amount of complexity would have disappeared, and you would have a multitude of different browsers, all catering to different preferences in how you wanted to consume html. It is due in large part to the complexity, that we are going towards to monoculture of Chromium/Blink, because only companies with billions of cash in the bank, can afford to dedicate the teams needed to develop a web browser.

    纠正史实:最早的图形浏览器是 Tim Berners-Lee 基于 NeXTSTEP 的 WorldWideWeb

    与流行认知相反,Mosaic 并不是第一个图形浏览器,它之前有 ViolaWWW——但 ViolaWWW 也不是第一个。事实上 Tim Berners-Lee 爵士的第一款浏览器就已经是图形化的(后来还带上了 FrontPage/Dreamweaver 式的所见即所得编辑模式),这得益于先进的 NeXTSTEP 操作系统及其窗口构建 IDE(即如今 macOS 和 XCode 的前身)。

    frik查看英文原文

    > Contrary to popular perception, Mosaic was not the first graphical browser. It was predated by ViolaWWW Neither was ViolaWWW the first grahical browser. In fact the very first browser by Sir Tim Berners-Lee was already a graphical browser (even with WYSIWYG edit mode later known from Frontpage/Dreamweaver) - made possible by thr advanced NeXTSTEP operating system and its window builder IDE (nowadays known as OSX/macOS and XCode respectively): https://en.wikipedia.org/wiki/WorldWideWeb and https://en.wikipedia.org/wiki/NeXTSTEP

    SGML 的链接过程声明本可实现类似 CSS 的样式机制

    技术上,SGML 有一个叫链接过程声明的原生机制,可以为文档标记指定样式属性。除了这个简单例子,样式属性还能以上下文相关的方式指定,比如打印时的奇偶页,实际上能覆盖 CSS 选择器的大部分能力(不含 :hover 这类“魔法”伪属性)。我一直不明白,既然有常规的 HTML 属性可用,为什么大家认为需要为 CSS 属性单独搞一套属性体系。

    tannhaeuser查看英文原文

    Technically, there is a native SGML mechanism called link process declaration (without DSSSL) for assigning style properties to document markup. Looks as follows: <!DOCTYPE html [ <!-- ... declarations for HTML elements, attributes ... --> ]> <!LINKTYPE render html #IMPLIED [ <!ATTLIST a color (blue|red) #IMPLIED> <!LINK #INITIAL a [ color=blue ]> ]> <html> <title>Blue link</title> <p>this <a href=x.html> link</a> is rendered in blue color</p> </html> Beyond this trivial example, style properties (link attributes) can be assigned in a context-dependent way for eg even/odd pages in print, or actually capture the largest part of CSS selectors (sans pseudo-attributes such as :hover though which are "magical" in CSS). I always wondered why people believed we need a distinct property universe for CSS properties when regular HTML attributes are there for this exact purpose (in link processes, attributes reuse regular content attribute declaration syntax).

    历次讨论

    同类还值得读

    1. 开源应用架构

      The Architecture of Open Source Applications

      《开源软件架构》(AOSA)是一本在线免费书,邀请知名开源项目的作者亲自剖析其内部设计,涵盖 SQLAlchemy、LLVM、Audacity、Apache、Bash 等系统。

      编程与软件工程上首页 9 次 · 2011–2024aosabook.org编辑精选
    2. 编程语言简史:简短、不完整且多半错误

      A Brief, Incomplete, and Mostly Wrong History of Programming Languages

      一篇以戏谑、故意不准确的方式回顾编程语言史的博客文章,用夸张轶事和讽刺定义串起 Lisp、C、C++、Java、JavaScript、PHP 等语言。

      编程与软件工程上首页 8 次 · 2009–2021james-iry.blogspot.com
    3. SQLite 是如何测试的

      How SQLite is tested

      SQLite 官方文档页,系统介绍 SQLite 的测试体系:多种测试方法(TCL 测试、模糊测试、回归测试、静态分析等)和海量测试用例,展示了这个小型开源项目如何靠极致测试获得…

      编程与软件工程上首页 8 次 · 2009–2025sqlite.org编辑精选
    4. 高级编程语言(2009)

      Advanced programming languages (2009)

      Matt Might 的经典文章,按用途推荐“高级编程语言”:如果追求就业就选主流语言,如果追求表达力、学术研究或创业,则推荐 Haskell、OCaml、Scala 等函数式语…

      编程与软件工程上首页 8 次 · 2009–2022matt.might.net
    5. 我的 Forth 与栈机器经历

      Yosefk - My history with Forth & stack machines

      作者以亲身经历回顾了使用 Forth 语言和栈式机器的历程:既赞叹其简洁优雅、代码量小、可自举的优点,也坦率指出栈操作在实际编程中的痛苦,以及 Forth 社区文化中的问题。

      编程与软件工程上首页 8 次 · 2010–2024yosefk.com编辑精选

    打赏支持

    打赏二维码

    觉得有用,请作者喝杯咖啡。

    WeChat

    关注向阳乔木

    微信公众号「向阳乔木推荐看」

    微信公众号「向阳乔木推荐看」二维码

    微信扫一扫;在微信里打开本页时,长按二维码识别。