Protocol Buffers – Google’s data interchange format

据说这是用来取代XML的技术,先看Google的说法(项目链接):

Protocol Buffers are a way of encoding structured data in an efficient yet extensible format. Google uses Protocol Buffers for almost all of its internal RPC protocols and file formats.

再看长什么样子:

message Person {
  required int32 id = 1;
  required string name = 2;
  optional string email = 3;
}

当年我们曾劝说客户用XML取代一个长得很象Protocol Buffers的格式:(

技术啊,技术!多少脑残假汝之名而行!

Advertisements
此条目发表在未分类分类目录。将固定链接加入收藏夹。

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s