Ext js 4 MVC

4,915 views
4,729 views

Published on

A quick intro to

0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,915
On SlideShare
0
From Embeds
0
Number of Embeds
26
Actions
Shares
0
Downloads
285
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Ext js 4 MVC

    1. 1. Ext JS 4.0 MVC Ed Spencer @edspencer
    2. 2. Motivation
    3. 3. Motivation
    4. 4. MotivationClean, maintainable code
    5. 5. MotivationClean, maintainable codeLearn it once
    6. 6. MotivationClean, maintainable codeLearn it onceLeverage tooling
    7. 7. MotivationClean, maintainable codeLearn it onceLeverage toolingEasier collaboration
    8. 8. Getting Started
    9. 9. Getting Started
    10. 10. Getting Started
    11. 11. Getting Started
    12. 12. Getting Started
    13. 13. Views
    14. 14. Start with the view
    15. 15. Too many views
    16. 16. Too few views
    17. 17. Balance
    18. 18. BalanceToo many views are hard to coordinate
    19. 19. BalanceToo many views are hard to coordinateToo few are hard to maintain:
    20. 20. BalanceToo many views are hard to coordinateToo few are hard to maintain:•Too much responsibility in one class
    21. 21. BalanceToo many views are hard to coordinateToo few are hard to maintain:•Too much responsibility in one class•Difficult to test
    22. 22. BalanceToo many views are hard to coordinateToo few are hard to maintain:•Too much responsibility in one class•Difficult to test•Difficult to change
    23. 23. Good balance
    24. 24. Example - Song Info
    25. 25. Models
    26. 26. Deciding on Models
    27. 27. Deciding on ModelsWhat ‘types’ exist in your app?
    28. 28. Deciding on ModelsWhat ‘types’ exist in your app?Only model what you need right now
    29. 29. Deciding on Models
    30. 30. Deciding on Models
    31. 31. Song Model
    32. 32. Station Model
    33. 33. Stores
    34. 34. Deciding on Stores
    35. 35. Deciding on StoresWhat data exists in your app?
    36. 36. Deciding on StoresWhat data exists in your app?What Model does each Store need?
    37. 37. Deciding on Stores
    38. 38. Stations Store
    39. 39. Station Model
    40. 40. Controllers
    41. 41. Controllers
    42. 42. ControllersFigure out responsibilities
    43. 43. ControllersFigure out responsibilitiesSet up references
    44. 44. ControllersFigure out responsibilitiesSet up referencesListen to events
    45. 45. ControllersFigure out responsibilitiesSet up referencesListen to eventsTake action
    46. 46. Controllers
    47. 47. Station Controller
    48. 48. Hooking it together
    49. 49. StationList
    50. 50. Station Controller
    51. 51. Launching
    52. 52. Demo
    53. 53. More Information
    54. 54. More Information http://sencha.com/x/d8
    55. 55. More Information http://sencha.com/x/d8 http://sencha.com/x/d9
    56. 56. The End Ed Spencer @edspencer

    ×