SlideShare uma empresa Scribd logo
1 de 17
BACKBONE
INTRO, MODEL




         divaka / 2012/07/24
Author
Profile:
http://about.me/divaka

Blog:
http://design2u.me/blog
WHAT’s Backbone



 A JavaScript MVC Framework
Problems
   coding style are different

   Spaghetti Code
     UI

     Function



   No Class
     Everything   need to rebuild
In the Past

         CRUD                Reque              Put
Action          Controller   st        Server          DB
         data                Success            okay

         CRUD                Reque              Put
Action          Controller   st        Server          DB
         data                Success            okay


         CRUD                Reque              Put
Action          Controller   st        Server          DB
         data                Success            okay


         CRUD                Reque              Put
Action          Controller   st        Server          DB
         data                Success            okay
Advantage

   MVC
                       Data Stored


                         Model




        Control          View        Merged UI


     Action Delegate   UI Control
With Backbone

                     Model   Model   Model




        Controller   View    View    View




                              UI
Advantage


   Manage Code Easily
Advantage

   Automatic update UI while Model changed


                                                Form
                                     notify

                                       notify   Table
        DB             Model
                                       notify
                                                DOM
Advantage

   Template Engine
       By underscore.js



        Template    +      data   =   UI
BACKBONE MODEL
Model
Collection
View – Control UI
Router - Binding URL
參考資料
   Website
       英文官網
       中文官網翻譯


   English
       Backbone JS – Hello World tutorial
       Backbone.js Lessons Learned and Improved Sample App
       Backbone: Dealing with stateful applications (part 1)
       Asynchronously Load HTML Templates For Backbone Views


   Chinese
       用 Backbone.js, underscore.js 和 jQuery 创建页面应
       Javascript 前端工具 Backbone.js Framework 初學介紹
       Backbone.js Event 事件介紹
       小鐵的投影片介紹


   Example
       新建 FriendList
       Backbone, Amber, Knockout 效能比較
DEMO
1.   Simple Model
2.   Hello Backbone
3.   Get Model Data
4.   Delete Model data
5.   Model extend
6.   Auto Update

Mais conteúdo relacionado

Mais procurados (9)

Angular js presentation at Datacom
Angular js presentation at DatacomAngular js presentation at Datacom
Angular js presentation at Datacom
 
Fullstack JS Workshop
Fullstack JS WorkshopFullstack JS Workshop
Fullstack JS Workshop
 
KnockOutjs from Scratch
KnockOutjs from ScratchKnockOutjs from Scratch
KnockOutjs from Scratch
 
Dom selecting & jQuery
Dom selecting & jQueryDom selecting & jQuery
Dom selecting & jQuery
 
Backbone.js
Backbone.jsBackbone.js
Backbone.js
 
JoomlaEXPO Presentation by Joe LeBlanc
JoomlaEXPO Presentation by Joe LeBlancJoomlaEXPO Presentation by Joe LeBlanc
JoomlaEXPO Presentation by Joe LeBlanc
 
Joomlapresentation
JoomlapresentationJoomlapresentation
Joomlapresentation
 
Introduction of angular js
Introduction of angular jsIntroduction of angular js
Introduction of angular js
 
Vue, vue router, vuex
Vue, vue router, vuexVue, vue router, vuex
Vue, vue router, vuex
 

Destaque

True Submission
True  SubmissionTrue  Submission
True Submission
Fanar
 
Tourist attractions
Tourist attractionsTourist attractions
Tourist attractions
maucgg80
 
Voice thread tutorial
Voice thread tutorialVoice thread tutorial
Voice thread tutorial
maucgg80
 
What we-believe
What we-believeWhat we-believe
What we-believe
SSMC
 

Destaque (20)

十年前~十年後
十年前~十年後十年前~十年後
十年前~十年後
 
Serv box金點設計獎簡報 v2.0
Serv box金點設計獎簡報 v2.0Serv box金點設計獎簡報 v2.0
Serv box金點設計獎簡報 v2.0
 
致勝談領導八金律
致勝談領導八金律致勝談領導八金律
致勝談領導八金律
 
Mobile ux
Mobile uxMobile ux
Mobile ux
 
前端工程與Rwd _ 中原大學資管系
前端工程與Rwd _ 中原大學資管系前端工程與Rwd _ 中原大學資管系
前端工程與Rwd _ 中原大學資管系
 
資料視覺化 (科智企業股份有限公司 內訓課程)
資料視覺化 (科智企業股份有限公司 內訓課程)資料視覺化 (科智企業股份有限公司 內訓課程)
資料視覺化 (科智企業股份有限公司 內訓課程)
 
FINDIT 平台介紹
FINDIT 平台介紹FINDIT 平台介紹
FINDIT 平台介紹
 
I want
I wantI want
I want
 
C:\Fakepath\Balik Tanaw
C:\Fakepath\Balik TanawC:\Fakepath\Balik Tanaw
C:\Fakepath\Balik Tanaw
 
True Submission
True  SubmissionTrue  Submission
True Submission
 
Introduction to Hadoop - ACCU2010
Introduction to Hadoop - ACCU2010Introduction to Hadoop - ACCU2010
Introduction to Hadoop - ACCU2010
 
Docker at ACCU2015
Docker at ACCU2015Docker at ACCU2015
Docker at ACCU2015
 
Social
SocialSocial
Social
 
Urbanism São Paulo
Urbanism São PauloUrbanism São Paulo
Urbanism São Paulo
 
Tourist attractions
Tourist attractionsTourist attractions
Tourist attractions
 
Voice thread tutorial
Voice thread tutorialVoice thread tutorial
Voice thread tutorial
 
04 17 kingdom restoration
04 17 kingdom restoration04 17 kingdom restoration
04 17 kingdom restoration
 
What we-believe
What we-believeWhat we-believe
What we-believe
 
Romans 8.3
Romans 8.3Romans 8.3
Romans 8.3
 
Conc
ConcConc
Conc
 

Semelhante a 2012 07 24 backbone_1

Борис Трофимов. Continuous Database migration-это просто!
Борис Трофимов. Continuous Database migration-это просто!Борис Трофимов. Continuous Database migration-это просто!
Борис Трофимов. Continuous Database migration-это просто!
Volha Banadyseva
 
Adf coursecontent(1)
Adf coursecontent(1)Adf coursecontent(1)
Adf coursecontent(1)
Amit Sharma
 
Best Weblogic Server Online Training
Best Weblogic Server Online TrainingBest Weblogic Server Online Training
Best Weblogic Server Online Training
Samatha Kamuni
 

Semelhante a 2012 07 24 backbone_1 (20)

Continuous DB migration based on carbon5 framework
Continuous DB migration based on carbon5 frameworkContinuous DB migration based on carbon5 framework
Continuous DB migration based on carbon5 framework
 
Борис Трофимов. Continuous Database migration-это просто!
Борис Трофимов. Continuous Database migration-это просто!Борис Трофимов. Continuous Database migration-это просто!
Борис Трофимов. Continuous Database migration-это просто!
 
Oracle adf online training
Oracle adf online trainingOracle adf online training
Oracle adf online training
 
o
oo
o
 
Evolutionary Database Design
Evolutionary Database DesignEvolutionary Database Design
Evolutionary Database Design
 
Planbox Backbone MVC
Planbox Backbone MVCPlanbox Backbone MVC
Planbox Backbone MVC
 
Introduction to Backbone.js
Introduction to Backbone.jsIntroduction to Backbone.js
Introduction to Backbone.js
 
Liquibase – a time machine for your data
Liquibase – a time machine for your dataLiquibase – a time machine for your data
Liquibase – a time machine for your data
 
Adf coursecontent(1)
Adf coursecontent(1)Adf coursecontent(1)
Adf coursecontent(1)
 
Build application with adf framework
Build application with adf frameworkBuild application with adf framework
Build application with adf framework
 
Best Weblogic Server Online Training
Best Weblogic Server Online TrainingBest Weblogic Server Online Training
Best Weblogic Server Online Training
 
Iltam database version control
Iltam database version controlIltam database version control
Iltam database version control
 
MVC Demystified: Essence of Ruby on Rails
MVC Demystified: Essence of Ruby on RailsMVC Demystified: Essence of Ruby on Rails
MVC Demystified: Essence of Ruby on Rails
 
Revolutionizing the Data Abstraction Layer with IBM Optim pureQuery and DB2
Revolutionizing the Data Abstraction Layer with IBM Optim pureQuery and DB2Revolutionizing the Data Abstraction Layer with IBM Optim pureQuery and DB2
Revolutionizing the Data Abstraction Layer with IBM Optim pureQuery and DB2
 
Virtual classroom
Virtual classroomVirtual classroom
Virtual classroom
 
Backbone.js with React Views - Server Rendering, Virtual DOM, and More!
Backbone.js with React Views - Server Rendering, Virtual DOM, and More!Backbone.js with React Views - Server Rendering, Virtual DOM, and More!
Backbone.js with React Views - Server Rendering, Virtual DOM, and More!
 
Design patterns
Design patternsDesign patterns
Design patterns
 
Software architectural design patterns(MVC, MVP, MVVM, VIPER) for iOS
Software architectural design patterns(MVC, MVP, MVVM, VIPER) for iOSSoftware architectural design patterns(MVC, MVP, MVVM, VIPER) for iOS
Software architectural design patterns(MVC, MVP, MVVM, VIPER) for iOS
 
Enterprise db-change-management&deployment-demo
Enterprise db-change-management&deployment-demoEnterprise db-change-management&deployment-demo
Enterprise db-change-management&deployment-demo
 
Business Service Management on the Fly—In under 60 Minutes!
Business Service Management on the Fly—In under 60 Minutes!Business Service Management on the Fly—In under 60 Minutes!
Business Service Management on the Fly—In under 60 Minutes!
 

Mais de 彭其捷 Jack

Mais de 彭其捷 Jack (20)

[演講簡報] Mopcon - 巧用 UI & UX 工具,提升設計溝通品質(彭其捷)
[演講簡報] Mopcon - 巧用 UI & UX 工具,提升設計溝通品質(彭其捷)[演講簡報] Mopcon - 巧用 UI & UX 工具,提升設計溝通品質(彭其捷)
[演講簡報] Mopcon - 巧用 UI & UX 工具,提升設計溝通品質(彭其捷)
 
2021/3/22 亞洲大學|數位人文與互動科技
2021/3/22 亞洲大學|數位人文與互動科技2021/3/22 亞洲大學|數位人文與互動科技
2021/3/22 亞洲大學|數位人文與互動科技
 
帶你一窺資料視覺化的神奇與奧妙(彭其捷)
帶你一窺資料視覺化的神奇與奧妙(彭其捷)帶你一窺資料視覺化的神奇與奧妙(彭其捷)
帶你一窺資料視覺化的神奇與奧妙(彭其捷)
 
2021/1/7|交大資管人的斜槓旅程
2021/1/7|交大資管人的斜槓旅程2021/1/7|交大資管人的斜槓旅程
2021/1/7|交大資管人的斜槓旅程
 
2020/12 交通大學_資料視覺化與我們的生活|彭其捷
2020/12 交通大學_資料視覺化與我們的生活|彭其捷2020/12 交通大學_資料視覺化與我們的生活|彭其捷
2020/12 交通大學_資料視覺化與我們的生活|彭其捷
 
2020/11 PyData|人人都可以學會的資料視覺化(彭其捷)
2020/11 PyData|人人都可以學會的資料視覺化(彭其捷)2020/11 PyData|人人都可以學會的資料視覺化(彭其捷)
2020/11 PyData|人人都可以學會的資料視覺化(彭其捷)
 
2020/11 台大地理系|Tableau 資料視覺化與地圖製作
2020/11 台大地理系|Tableau 資料視覺化與地圖製作2020/11 台大地理系|Tableau 資料視覺化與地圖製作
2020/11 台大地理系|Tableau 資料視覺化與地圖製作
 
2020_11 (南湖高中)用資料視覺化說故事
2020_11 (南湖高中)用資料視覺化說故事2020_11 (南湖高中)用資料視覺化說故事
2020_11 (南湖高中)用資料視覺化說故事
 
2020/11 中華電信|科技藝術與互動技術(製作者:彭其捷)
2020/11 中華電信|科技藝術與互動技術(製作者:彭其捷)2020/11 中華電信|科技藝術與互動技術(製作者:彭其捷)
2020/11 中華電信|科技藝術與互動技術(製作者:彭其捷)
 
2020_11 台北市立大學 特教學系|講題:善用設計思考,引導團隊溝通共識
2020_11 台北市立大學 特教學系|講題:善用設計思考,引導團隊溝通共識2020_11 台北市立大學 特教學系|講題:善用設計思考,引導團隊溝通共識
2020_11 台北市立大學 特教學系|講題:善用設計思考,引導團隊溝通共識
 
【台科大設計所】聊聊設計與數據思維|彭其捷
【台科大設計所】聊聊設計與數據思維|彭其捷【台科大設計所】聊聊設計與數據思維|彭其捷
【台科大設計所】聊聊設計與數據思維|彭其捷
 
2020/8/15 AI學校:如何推動組織的 AI 團隊文化?(講者:彭其捷)
2020/8/15 AI學校:如何推動組織的 AI 團隊文化?(講者:彭其捷)2020/8/15 AI學校:如何推動組織的 AI 團隊文化?(講者:彭其捷)
2020/8/15 AI學校:如何推動組織的 AI 團隊文化?(講者:彭其捷)
 
2020/7/25 台灣人工智慧學校|講題:AI與資料視覺化
2020/7/25 台灣人工智慧學校|講題:AI與資料視覺化2020/7/25 台灣人工智慧學校|講題:AI與資料視覺化
2020/7/25 台灣人工智慧學校|講題:AI與資料視覺化
 
成大電機|大數據與使用者經驗設計 Workshop|彭其捷
成大電機|大數據與使用者經驗設計 Workshop|彭其捷成大電機|大數據與使用者經驗設計 Workshop|彭其捷
成大電機|大數據與使用者經驗設計 Workshop|彭其捷
 
中原資管系|資管人的數位素養|彭其捷
中原資管系|資管人的數位素養|彭其捷中原資管系|資管人的數位素養|彭其捷
中原資管系|資管人的數位素養|彭其捷
 
2019/11/28 環境數據分析|以空污分析為例
2019/11/28 環境數據分析|以空污分析為例2019/11/28 環境數據分析|以空污分析為例
2019/11/28 環境數據分析|以空污分析為例
 
2019_11_21 世新大學|資料視覺化課程
2019_11_21 世新大學|資料視覺化課程2019_11_21 世新大學|資料視覺化課程
2019_11_21 世新大學|資料視覺化課程
 
【人工智慧學校】2019/11/22 AI 與特徵工程:PM觀點(彭其捷)
【人工智慧學校】2019/11/22 AI 與特徵工程:PM觀點(彭其捷)【人工智慧學校】2019/11/22 AI 與特徵工程:PM觀點(彭其捷)
【人工智慧學校】2019/11/22 AI 與特徵工程:PM觀點(彭其捷)
 
2019/10/27 創造力年會|用設計思考,讓團隊更有創造力|彭其捷
2019/10/27 創造力年會|用設計思考,讓團隊更有創造力|彭其捷2019/10/27 創造力年會|用設計思考,讓團隊更有創造力|彭其捷
2019/10/27 創造力年會|用設計思考,讓團隊更有創造力|彭其捷
 
2019年9月 台北科技大學分享(談閱讀與寫作)
2019年9月 台北科技大學分享(談閱讀與寫作)2019年9月 台北科技大學分享(談閱讀與寫作)
2019年9月 台北科技大學分享(談閱讀與寫作)
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

2012 07 24 backbone_1

  • 1. BACKBONE INTRO, MODEL divaka / 2012/07/24
  • 3. WHAT’s Backbone A JavaScript MVC Framework
  • 4. Problems  coding style are different  Spaghetti Code  UI  Function  No Class  Everything need to rebuild
  • 5. In the Past CRUD Reque Put Action Controller st Server DB data Success okay CRUD Reque Put Action Controller st Server DB data Success okay CRUD Reque Put Action Controller st Server DB data Success okay CRUD Reque Put Action Controller st Server DB data Success okay
  • 6. Advantage  MVC Data Stored Model Control View Merged UI Action Delegate UI Control
  • 7. With Backbone Model Model Model Controller View View View UI
  • 8. Advantage  Manage Code Easily
  • 9. Advantage  Automatic update UI while Model changed Form notify notify Table DB Model notify DOM
  • 10. Advantage  Template Engine  By underscore.js Template + data = UI
  • 12. Model
  • 16. 參考資料  Website  英文官網  中文官網翻譯  English  Backbone JS – Hello World tutorial  Backbone.js Lessons Learned and Improved Sample App  Backbone: Dealing with stateful applications (part 1)  Asynchronously Load HTML Templates For Backbone Views  Chinese  用 Backbone.js, underscore.js 和 jQuery 创建页面应  Javascript 前端工具 Backbone.js Framework 初學介紹  Backbone.js Event 事件介紹  小鐵的投影片介紹  Example  新建 FriendList  Backbone, Amber, Knockout 效能比較
  • 17. DEMO 1. Simple Model 2. Hello Backbone 3. Get Model Data 4. Delete Model data 5. Model extend 6. Auto Update