Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Notification 3

Notification 3

The Important about Convention Over Configuration

kaiye

May 04, 2011
Tweet

More Decks by kaiye

Other Decks in Technology

Transcript

  1. Notification 3 / Sharing by Kaiye @ Paipai ISUX

    View Slide

  2. [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;
    };

    View Slide

  3. Web Socket

    View Slide

  4. WHEN we need
    Notification?

    View Slide

  5. IE Download Confirm Dialog

    View Slide

  6. Chrome Download Confirm Dialog

    View Slide

  7. Microsoft Windows vs Mac OSX

    View Slide

  8. Convention
    Over
    Configuration

    View Slide

  9. • Don't Repeat Yourself
    • Convention Over Configuration

    View Slide

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

    View Slide

  11. What is
    Convention?

    View Slide

  12. View Slide

  13. Convention == 你懂的

    View Slide

  14. What is OUR
    Convention?

    View Slide

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

    View Slide

  16. JavaScript Debugger: alert()

    View Slide

  17. Convention makes Draft
    become Specification

    View Slide

  18. 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/

    View Slide

  19. To be continued…

    View Slide

  20. See you next time:)

    View Slide