5 FaceBook Source Code Secrets 5 Facebookのソースコードの秘密
I glanced over the Facebook source code for both index and search pages.目をやったの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、 f uckingクリーンなのはこれが今までに見たフロントエンドのファイルを"
3. 3 。 Facebook doesn’t do MVC. MVCのFacebookのではない。 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 Facebookの , 、 Headline Newsニュースの見出し , 、 MySpace myspaceの , 、 PHP PHPの , 、 Programmingプログラミング , 、 Social Networkingソーシャルネットワーキング , 、 Webウェブ , 、 Web 2.0ウェブ2.0 , 、 Web Services Webサービス | |
| |
RSS 2.0 RSS 2.0を | |
Trackbackトラックバック this Article |この記事|
Email this Article電子メールこの記事
You may also like to readを読むようにすることも可能 |




