编程与软件工程regex.info
著名“现在你有两个问题了”引语的出处(2006)
Source of the famous “Now you have two problems” quote (2006)
2010 — 2020,它一次次回到首页
黑点是上首页(≥ 50 分)的那次投稿,空心点是没冲上去的投稿,点越大分数越高。
导读
这篇 2006 年的博客文章追溯了著名格言“有些人遇到问题时想‘我知道,用正则表达式’,于是他们现在有了两个问题”的真正出处。虽然这句名言通常被归于 Jamie Zawinski(JWZ),但作者考证发现它其实出自 David Tilbrook 之手。文章还附带了 JWZ 关于正则表达式的原文讨论。
为什么经久不衰:这句流传最广的编程格言之一,其出处考证本身就是一段有趣的互联网历史,而且它对“滥用正则表达式”的警示至今仍然适用。
HN 评论精选
指出名言真正作者是 David Tilbrook,并补充他另一句名言
简而言之:大家总把这句话归于 JWZ,但它其实是 David Tilbrook 说的。博客里没提,但 David 在 2007 年告诉我,这是他 1985 年前后在都柏林的 EurOpen 会议上说的。他还说这只是他第二喜欢的名言;他最自豪的是 1981 年说的这句:“软件是唯一一个给金门大桥增加车道也被称为‘维护’的行业。”
raldi查看英文原文
TLDR: Everyone always attributes it to JWZ, but it was actually coined by David Tilbrook. It's not mentioned in the blog post, but David told me in 2007 that he said it at a EurOpen conference in Dublin circa 1985. David also told me this is only his second favorite quote; the one he was most proud of, from 1981, was: "Software is the only business in which adding extra lanes to the Golden Gate bridge would be called maintenance."
套用原句式调侃 Java
我遇到了一个问题,于是决定用 Java。现在我有了一个问题工厂。
paulsutter查看英文原文
I was confronted with a problem, so I thought I would use Java. Now I have a problem factory.
提醒名言的时代背景:当年正则被滥用得更厉害
要记住,当时人们用正则表达式处理 DOM 这类树形结构,甚至用来计算时间。如今大家都知道用正则操作 DOM 基本不可行,而用正则处理时间只发生在没有更好选择的 Unix 命令行上。
nailer查看英文原文
Keep in mind at the time people were using regexs for tree structures like the DOM, and calculating time. Manipulating the DOM with regexs generally known to be impossible these days, and using regexs for time only happens on the Unix command line where there aren't better alternatives.
用浮点数精度梗戏仿原句
有些人遇到问题时想“我知道,用浮点数”。于是他们现在有了 1.999998 个问题。
captaincrowbar查看英文原文
Some people, when confronted with a problem, think “I know, I'll use floating point.” Now they have 1.999998 problems.
历次讨论
同类还值得读
开源应用架构
The Architecture of Open Source Applications
《开源软件架构》(AOSA)是一本在线免费书,邀请知名开源项目的作者亲自剖析其内部设计,涵盖 SQLAlchemy、LLVM、Audacity、Apache、Bash 等系统。
编程与软件工程上首页 9 次 · 2011–2024aosabook.org编辑精选编程语言简史:简短、不完整且多半错误
A Brief, Incomplete, and Mostly Wrong History of Programming Languages
一篇以戏谑、故意不准确的方式回顾编程语言史的博客文章,用夸张轶事和讽刺定义串起 Lisp、C、C++、Java、JavaScript、PHP 等语言。
编程与软件工程上首页 8 次 · 2009–2021james-iry.blogspot.comSQLite 是如何测试的
How SQLite is tested
SQLite 官方文档页,系统介绍 SQLite 的测试体系:多种测试方法(TCL 测试、模糊测试、回归测试、静态分析等)和海量测试用例,展示了这个小型开源项目如何靠极致测试获得…
编程与软件工程上首页 8 次 · 2009–2025sqlite.org编辑精选高级编程语言(2009)
Advanced programming languages (2009)
Matt Might 的经典文章,按用途推荐“高级编程语言”:如果追求就业就选主流语言,如果追求表达力、学术研究或创业,则推荐 Haskell、OCaml、Scala 等函数式语…
编程与软件工程上首页 8 次 · 2009–2022matt.might.net我的 Forth 与栈机器经历
Yosefk - My history with Forth & stack machines
作者以亲身经历回顾了使用 Forth 语言和栈式机器的历程:既赞叹其简洁优雅、代码量小、可自举的优点,也坦率指出栈操作在实际编程中的痛苦,以及 Forth 社区文化中的问题。
编程与软件工程上首页 8 次 · 2010–2024yosefk.com编辑精选