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�ı��������绰�Ĺ��ܣ��������Dz���ħ����һ�����ӣ��������;�ڻ�ӦFacebook�ı�������-��ʥs hit��Χ�����������������ǰ���ļ���������ġ� ��

3. 3 �� Facebook doesn't do MVC. Facebook�IJ�MVC�ġ� There isn't any separation of concerns as far as I could see.��û���κη���Ĺ�ע�����ҿ��Կ����� It is also not a designer's job.�����Dz���һ�����ʦ�Ĺ����� It is created by developers with tons of procedural PHP code.��������ķ�չ��ֵij���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.����ƽԭ�ͼ򵥵ij�����롣

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.���һЩ��Ȥ�Ķ������棬�ر��ǹ��Ƶij���ҳ�����ԣ���ȷ��������ʾ�� 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�ϵĴ�������Ϊ��ࡣ