4. TechCrunch誌とのインタビュー
2012年9月11日
I think the
biggest mistake
that we made,
as a company,
is betting too
much on HTML5
as opposed to
native…
because it just
wasn’t there.
会社として、我々が犯した最大の誤りは、ネーティブに対して、
HTML5に、あまりに賭けすぎたことだと思う。
11. Zuckerburgの発言を詳しくみる
o And it’s not that HTML5 is bad. I’m actually, on
long-term, really excited about it.
それは、HTML5が悪いということではない。長期的には、
私は、HTML5にとても興奮している。
o One of the things that’s interesting is we
actually have more people on a daily basis
using mobile Web Facebook than we have
using our iOS or Android apps combined. So
mobile Web is a big thing for us.
興味深いことの一つは、iOSとAndroidのアプリを使って
いる人をあわせた数よりも、モバイルのWeb Facebook
を使っている人の方が多いということだ。だから、モバイル
Webは、我々には重要なものだ。
14. Webの世代について
p 第一世代 Static Web
p 第二世代 Dynamic Web
p 第三世代 Structured Web
p 第四世代 Real-Time Responsive Web
15. 第一世代 Static Web
o 1989年、CERNのティム・バーナーズ=リーが、
研究者のドキュメント管理のツールとして構想。
1990年末に実装。
o HTTPは、Hyper Text Transfer Protocol
HTMLは、Hyper Text Markup Language
Home Page 等、ドキュメント交換ツールの母斑
は、今も残っている。
o 1992年、NCSA Mosaic登場。
1995年、JavaとApplet登場。
同年、インターネットの最初の爆発が起きる。
104. // server: publish all room documents
Meteor.publish("all-rooms", function () {
return Rooms.find(); // everything
);
// server: publish all messages for a given room
Meteor.publish("messages", function (roomId) {
return Messages.find({room: roomId});
});
// server: publish the set of parties the logged-in user can see.
Meteor.publish("parties", function () {
return Parties.find({$or: [{"public": true},
{invited: this.userId},
{owner: this.userId}]});
});
108. // server: don't allow client to insert a party
Parties.allow({
insert: function (userId, party) {
return false;
}
});
// client: this will fail
var party = { ... };
Parties.insert(party);
119. LiveHTMLの例
var fragment = Meteor.render(
function () {
var name = Session.get("name") || "Anonymous";
return "<div>Hello, " + name + "</div>";
});
document.body.appendChild(fragment);
Session.set(“name”, “Bob”); // ページは自動的に更新される