互联网与文化gist.github.com
2007 年 8 月的 Facebook PHP 源代码
Facebook PHP Source Code from August 2007
2013 — 2020,它一次次回到首页
黑点是上首页(≥ 50 分)的那次投稿,空心点是没冲上去的投稿,点越大分数越高。
导读
这是 2007 年 8 月泄露的 Facebook PHP 源代码存档(index.php、search.php 等早期页面代码)。泄露并非黑客窃取,而是 Apache 配置错误导致服务器直接输出了未经处理的 PHP 源码。两次登上 HN 首页,读者得以一窥这家巨头早期朴素甚至粗糙的代码面貌。
为什么经久不衰:它证明商业成功并不取决于代码质量——早期 Facebook 的代码混乱却支撑了爆发式增长,对今天的开发者仍是难得的历史标本和心态解药。
HN 评论精选
亲历者还原泄露原因及 Facebook 与德国克隆网站 studiVZ 之间的收购与诉讼往事
我记得那些日子。当时我在德国社交网络 studiVZ 工作,这次泄露是 Apache 配置错误造成的。2008 年 Facebook 起诉 studiVZ,称我们窃取了他们的 PHP、CSS/JS 代码。studiVZ 最初确实受 Facebook 启发——创始人 2005 年在美国看到 FB,但没有 .edu 邮箱无法注册,于是决定做一个本地克隆。诉讼背后还有更长的故事:2006 年 12 月 Facebook 第一次试图收购 studiVZ 但现金不足,后来 Holtzbrinck 出版集团以 8500 万欧元收购了它。2008 年(诉讼前)FB 第二次尝试收购,这次只出 4.8% 的股份,交易最终没成。
nilsjuenemann查看英文原文
I remeber these days. I worked at this time for studiVZ - a german social network (still exist, but nobody is using it anymore) and this leaked was caused by a misconfiguration in their Apache setup. In 2008 studiVZ was sued by Facebook. They said we theft their PHP, CSS/JS "code". (http://techcrunch.com/2008/07/18/facebook-sues-german-social-network-studivz/). Indeed, the first version of studiVZ was inspired by Facebook. Our founder had seen FB in 2005 the first time in the US, but it wasn't possible to use the service without a .edu eMail account. That was the decision to make a local clone. But the real story behind the lawsuit is a bit longer. In december 2006 Facebook tried to acquire studiVZ the very first time. This picture with two of the studiVZ founder and some people from FB's management team is from this time: http://img-a4.pe.imagevz.net/photo3/f3/9a/ce37499d84437cb744c1dbce2a78/1-cfd8a99fbccfa5cc.jpg But FB hadn't the amount of cash to aquire the company. The Holtzbrinck Publishing Group aquired studiVZ later for 85 mio. € In 2008 (before the lawsuit) FB tried the second time to acquire studiVZ - this time for 4,8% of shares! But this deal didn't happend - unfortunately.
惊讶于巨头的代码竟然平易近人、可以读懂
看到这样的代码,我总惊讶于自己居然能读懂、大致理解它在做什么。我原以为 Facebook 的代码会调优到高深莫测,公司外的人完全看不懂。
javis查看英文原文
When I see code like this, I'm always amazed that I can actually read it and (kinda) understand what it's doing. I always expect code like Facebook's to be so finely tuned and advanced that it'd be completely uninteligable to those outside the company and not an expert in the language.
教训:代码洁癖不重要,用户不在乎
这坨意大利面条式代码能给我们一个宝贵的教训,虽然我一时说不清是什么。大概是:想发财就别把时间浪费在迂腐的完美主义上——用户根本不在乎。
a1a查看英文原文
I think there is a valuable lesson to be learned from this piece of spaghetti. I can't quite formulate it from the top of my head. But it's something like: if you wanna be rich, don't waste your time being pedant - your users couldn't care less.
两种视角:丢人 vs 证明成功不靠代码质量
一种看法是“哈,真丢人”。另一种看法是“哈,显然商业成功和代码质量无关”。
alexandercrohde查看英文原文
One way to look at this is to say "Hah, how shameful." The other way to look at this is to say "Hah, clearly business success isn't a function of code quality"
历次讨论
同类还值得读
如今电脑上几乎所有操作在感知上都比 1983 年更慢(2017)
Almost everything on computers is perceptually slower than it was in 1983 (2017)
2017 年的推文串认为,尽管计算机硬件比 1983 年快得多,日常操作的感知速度却常常更慢:启动、界面响应和网络应用被层层抽象、动画、后台检查与网络依赖拖累。
互联网与文化上首页 5 次 · 2017–2020twitter.com网站肥胖危机
The Website Obesity Crisis
Maciej Cegłowski(idlewords)的经典演讲文稿《网站肥胖症危机》,批评现代网页越来越臃肿:动辄数 MB 的 JavaScript、追踪脚本和广告,把本可以轻…
互联网与文化上首页 5 次 · 2016–2021idlewords.com编辑精选亚马逊那本标价 23,698,655.93 美元的苍蝇书
Amazon’s $23,698,655.93 book about flies
博文讲的是亚马逊上一本关于果蝇的二手书被标到 23,698,655.93 美元。
互联网与文化上首页 5 次 · 2011–2022michaeleisen.org浏览器 User-Agent 字符串的历史
History of the browser user-agent string (2008)
2008 年的经典文章用戏谑的“创世纪”口吻,讲述浏览器 User-Agent 字符串如何从简单的标识演变成层层叠加的伪装:浏览器为了绕过按 UA 分发的网站检测,纷纷把自己伪装…
互联网与文化上首页 5 次 · 2012–2022webaim.org编辑精选最后的问题——艾萨克·阿西莫夫
The Last Question - Isaac Asimov
阿西莫夫最著名的短篇科幻小说《最后的问题》的在线全文。
互联网与文化上首页 5 次 · 2009–2019multivax.com编辑精选