Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Notification 3
kaiye
May 04, 2011
Technology
0
71
Notification 3
The Important about Convention Over Configuration
kaiye
May 04, 2011
Tweet
Share
More Decks by kaiye
See All by kaiye
大话前端黑客
kaiye
4
250
前端七年之路
kaiye
8
370
拍拍首页2012版前端技术应用
kaiye
2
140
后IE6时代
kaiye
1
1.4k
CSS3/JS/Flash版动画角标的实现与比较
kaiye
0
81
GDD 2011 in Guangzhou
kaiye
0
1.8k
拍首2011前端技术分享
kaiye
1
130
前端开发眼中的组件库
kaiye
3
260
Notification 2
kaiye
0
45
Other Decks in Technology
See All in Technology
スクラムマスターの「観察」スキルを掘り下げる / Scrum Fest Niigata 2022
ama_ch
0
760
エンタープライズにおけるSRE立ち上げとNew Relic選定に至った背景とは / SRE Startup and New Relic in the Enterprise
tomoyakitaura
2
160
読者のことを考えて書いてみよう / Write with your reader in mind
line_developers
PRO
3
360
LIFF Deep Dive 2022
line_developers
PRO
1
610
失敗から学ぶAWSコスト管理入門 ~想定の50倍以上の請求がきた話~
msato
0
440
プログラミング未経験の学生をエンジニアにしてきたノウハウを公開
shinofumijp
0
120
Embedded SRE at Mercari
tcnksm
0
860
[SRE NEXT 2022]組織に対してSREを適用するとはどういうことか
srenext
0
390
Puny to Powerful PostgreSQL Rails Apps
andyatkinson
PRO
0
370
Devに力を授けたいSREのあゆみ / SRE that wants to empower developers
tocyuki
3
480
CTOのためのQAのつくりかた #scrumniigata / SigSQA How to create QA for CTOs and VPoEs
caori_t
0
320
⚡Lightdashを試してみた
k_data_analyst
0
220
Featured
See All Featured
How to train your dragon (web standard)
notwaldorf
57
3.8k
Fantastic passwords and where to find them - at NoRuKo
philnash
25
1.5k
The Invisible Side of Design
smashingmag
289
48k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
151
12k
Making the Leap to Tech Lead
cromwellryan
113
6.9k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
237
19k
Fashionably flexible responsive web design (full day workshop)
malarkey
396
62k
We Have a Design System, Now What?
morganepeng
35
2.9k
The Power of CSS Pseudo Elements
geoffreycrofte
46
3.9k
Keith and Marios Guide to Fast Websites
keithpitt
404
21k
10 Git Anti Patterns You Should be Aware of
lemiorhan
638
52k
Done Done
chrislema
174
14k
Transcript
Notification 3 / Sharing by Kaiye @ Paipai ISUX
[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; };
Web Socket
WHEN we need Notification?
IE Download Confirm Dialog
Chrome Download Confirm Dialog
Microsoft Windows vs Mac OSX
Convention Over Configuration
• Don't Repeat Yourself • Convention Over Configuration
“Rails 更喜欢清楚的代码而不是配置文 件,而 Ruby 语言的动态性质在运行时生成了 大部分管道代码。大多数 Rails 框架都是作为 独立项目创建的,而且应用程序开发能够从一 组同类组件受益。相比之下,典型的
J2EE 堆 栈倾向于构建在通常独立开发的最好的组件之 上,常常用 XML 进行配置并将组件组合在一 起。”
What is Convention?
None
Convention == 你懂的
What is OUR Convention?
.clear{} .clearfix{} .mod{} #header{} .hd{}.bd{}.ft{} NO CSS expression border:1px solid
#f00 …
JavaScript Debugger: alert()
Convention makes Draft become Specification
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/
To be continued…
See you next time:)