Stack Refactoring

579 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
579
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
12
Comments
0
Likes
0
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
  • rows -> other lang object oriented representation\n
  • finally returns json. How can we improve?\n
  • \n
  • \n
  • \n
  • \n
  • which one of these is not like the other?\n
  • \n
  • \n\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • open the mongo shell\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n \n
  • intro to apps with node + mongo\n basic driver -> mongoose\n connect\n get a collection\n save a doc\n query a doc\n mongoose\n design a schema\n need example with custom methods, statics, hooks, validation, population\n streaming results\n \n \n
  • \n
  • intro to apps with node + mongo\n basic driver -> mongoose\n connect\n get a collection\n save a doc\n query a doc\n mongoose\n design a schema\n need example with custom methods, statics, hooks, validation, population\n streaming results\n \n \n
  • intro to apps with node + mongo\n basic driver -> mongoose\n connect\n get a collection\n save a doc\n query a doc\n mongoose\n design a schema\n need example with custom methods, statics, hooks, validation, population\n streaming results\n \n \n
  • \n \n
  • intro to apps with node + mongo\n basic driver -> mongoose\n connect\n get a collection\n save a doc\n query a doc\n mongoose\n design a schema\n need example with custom methods, statics, hooks, validation, population\n streaming results\n \n \n
  • \n
  • Stack Refactoring

    1. 1. Stack Refactoring JS(Saturday) :: Nov 10, 2012
    2. 2. Hello
    3. 3. @aaronheckmann
    4. 4. mongoosejs.com
    5. 5. Stack Refactoring
    6. 6. Stack Refactoring• application development
    7. 7. Stack Refactoring• application development• data model
    8. 8. Stack Refactoring• application development• data model
    9. 9. Storytime
    10. 10. 3
    11. 11. gmail 3
    12. 12. gmail ajax 3
    13. 13. gmail web 2.0 ajax 3
    14. 14. gmail web 2.0 ajax 3 rounded corners
    15. 15. gmail web 2.0mobile ajax 3 rounded corners
    16. 16. gmail web 2.0mobile ajax 3 geo aware rounded corners
    17. 17. Stack Refactoringclient
    18. 18. Stack RefactoringJavascript client
    19. 19. Stack RefactoringJavascript application client
    20. 20. Stack Refactoring Java, PHP, C#, Python, Ruby, etcJavascript application client
    21. 21. Stack Refactoring Java, PHP, C#, Python, Ruby, etcJavascript application client database
    22. 22. Stack Refactoring Java, PHP, C#, Python, Ruby, etcJavascript SQL application client database
    23. 23. Stack Refactoring Java, PHP, C#, Python, Ruby, etcJavascript SQL application client database
    24. 24. Stack Refactoring Java, PHP, C#, Python, Ruby, etcJavascript SQL application client database
    25. 25. Stack Refactoring Java, PHP, C#, Python, Ruby, etcJavascript SQL application client database
    26. 26. Stack Refactoring Java, PHP, C#, Python, Ruby, etcJavascript SQL application client database
    27. 27. Stack RefactoringJavascript SQL application client database
    28. 28. Stack RefactoringJavascript SQL application client database
    29. 29. Stack RefactoringJavascript SQL application client database
    30. 30. Stack RefactoringJavascript SQL application client database
    31. 31. Stack RefactoringJavascript application client database
    32. 32. • document oriented
    33. 33. • document oriented VS relational
    34. 34. • document oriented VS relationalProduct_id name created_at
    35. 35. • document oriented VS relationalProduct_id name created_atProduct_Attribute _id product_id key val
    36. 36. • document oriented VS relational• assembly requiredProduct_id name created_atProduct_Attribute _id product_id key val
    37. 37. • document oriented VS relational• assembly required• app model != storage model
    38. 38. • document oriented
    39. 39. • document oriented• dynamic schema
    40. 40. • document oriented• dynamic schema• rich query api
    41. 41. • document oriented• dynamic schema• rich query api• atomic operators
    42. 42. • document oriented• dynamic schema• rich query api• atomic operators• secondary indexing
    43. 43. • document oriented• dynamic schema• rich query api• atomic operators• secondary indexing• javascript shell
    44. 44. 1
    45. 45. 1
    46. 46. 1language to rule them all
    47. 47. 1language to rule them all
    48. 48. Javascript1language to rule them all
    49. 49. Node.js + MongoDB
    50. 50. mongoosejs.com
    51. 51. Mongoose• What is it?• Schema driven • Why?
    52. 52. Mongoose• Validation• Object lifecycle management• Model statics • custom• Document methods • custom
    53. 53. Mongoose• QueryBuilder• Population• Schemas stored as JSON• Plugable schemas • plugins.mongoosejs.com • express, elastic search, custom types
    54. 54. Mongoose• ReplicaSets support• Sharding support
    55. 55. Stack Refactoredwww.mongodb.org/downloadsmongoosejs.complugins.mongoosejs.com @aaronheckmann

    ×