5 FaceBook Source Code Secrets 5 Facebook的源代码的秘密
I glanced over the Facebook source code for both index and search pages. i glanced超过Facebook的源代码都索引和搜索的页面。 As an enterprise developer of some experience, source code is always interesting to me as it provides an insight into the health of a company.作为一个企业开发的一些经验,源代码始终是有趣的我,因为它提供了一个洞察到健康的一间公司。 The interesting highlights of the Facebook code are:有趣的重点Facebook的代码是:
1. 1 。 Facebook writes pretty clean code & maintains coding standards. Facebook的写漂亮的清洁守则&保持编码标准。 The code is readable.代码是可读性。
2. 2 。 To Facebook coder: Calling a function to do the magic isn't an example of clean code; in response to Facebook coders comment - "Holy shit, is this the cleanest fucking frontend file you've ever seen"以Facebook的编码器:电话的功能,这样做是不是魔术的一个例子,清洁守则;在回应Facebook的编码评论-“圣s hit外围,这是最清洁的他妈的前端文件,你所见过的” 。
3. 3 。 Facebook doesn't do MVC. Facebook的不MVC的。 There isn't any separation of concerns as far as I could see.有没有任何分离的关注,据我可以看到。 It is also not a designer's job.这亦是不是一个设计师的工作。 It is created by developers with tons of procedural PHP code.这是所创造的发展与吨的程序PHP代码。
4. 4 。 Facebook also doesn't do much object oriented coding either, at least it wasn't apparent from these source files. Facebook的,也没有做很多面向对象的编码或者,至少它并不明显,从这些源文件。 It is plain and simple procedural code.这是平原和简单的程序代码。
5. 5 。 Facebook uses templates which is nice. Facebook的使用模板,这是很好。
It does some interesting stuff with advertising, specifically estimates the length of page and attributes to determine advertisements to show.它的一些有趣的东西与广告,特别是估计的长度页和属性,以确定广告的显示。 There are few interesting ideas here.有几个有趣的想法在这里。
Did you expect more?你期望更多? There isn't much more really, take a look yourself.有没有更实在,考虑一下自己。 I wonder if MySpace's code is as clean.我不知道如果MySpace上的代码是作为清洁。
Filed under提起下 Facebook脸谱 , , Headline News头条新闻 , , MySpace MySpace上 , , PHP PHP的 , , Programming编程 , , Social Networking社会网络 , , Web网页 , , Web 2.0 Web 2.0的 , , Web Services Web服务 | |
| |
RSS 2.0 2.0 | |
Trackback Trackback跟踪 this Article |此文章|
Email this Article电子邮件此文章
You may also like to read您也可以想读 |




































