Slide 1

Slide 1 text

Notification 3 / Sharing by Kaiye @ Paipai ISUX

Slide 2

Slide 2 text

[Constructor] interface Notification : EventTarget { void show (); void cancel (); attribute Function onclick; attribute Function onshow; attribute Function onerror; attribute Function onclose; attribute DOMString replaceId; attribute DOMString dir; };

Slide 3

Slide 3 text

Web Socket

Slide 4

Slide 4 text

WHEN we need Notification?

Slide 5

Slide 5 text

IE Download Confirm Dialog

Slide 6

Slide 6 text

Chrome Download Confirm Dialog

Slide 7

Slide 7 text

Microsoft Windows vs Mac OSX

Slide 8

Slide 8 text

Convention Over Configuration

Slide 9

Slide 9 text

• Don't Repeat Yourself • Convention Over Configuration

Slide 10

Slide 10 text

“Rails 更喜欢清楚的代码而不是配置文 件,而 Ruby 语言的动态性质在运行时生成了 大部分管道代码。大多数 Rails 框架都是作为 独立项目创建的,而且应用程序开发能够从一 组同类组件受益。相比之下,典型的 J2EE 堆 栈倾向于构建在通常独立开发的最好的组件之 上,常常用 XML 进行配置并将组件组合在一 起。”

Slide 11

Slide 11 text

What is Convention?

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

Convention == 你懂的

Slide 14

Slide 14 text

What is OUR Convention?

Slide 15

Slide 15 text

.clear{} .clearfix{} .mod{} #header{} .hd{}.bd{}.ft{} NO CSS expression border:1px solid #f00 …

Slide 16

Slide 16 text

JavaScript Debugger: alert()

Slide 17

Slide 17 text

Convention makes Draft become Specification

Slide 18

Slide 18 text

Reference • 《⼀一些软件设计的原则》 http://coolshell.cn/articles/4535.html • 《Wiki: Ruby on Rails》 http://zh.wikipedia.org/wiki/Ruby_on_Rails • 《Ruby on Rails 和 J2EE:两者能否共存?》 http://www.ibm.com/developerworks/cn/java/wa-rubyonrails/

Slide 19

Slide 19 text

To be continued…

Slide 20

Slide 20 text

See you next time:)