Skip to content

Instantly share code, notes, and snippets.

@ympbyc
Last active December 11, 2015 09:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ympbyc/4579611 to your computer and use it in GitHub Desktop.
Save ympbyc/4579611 to your computer and use it in GitHub Desktop.
 ======================================================================
||                               _,                                   ||
||                               /| /                                 ||
||                              /  /[fetch]                           ||
||                       [save]/  /                                   ||
||                            /  /                                    ||
||                           /  v_                                    ||
||  ------------           -------                                    ||
|| | TweetModel |-------->|  t C  |                                   ||
||  ------------ <---     |  w o  |   [add]      -------------------  ||
||           [create]\    |  e l  |<------------| tweet create view | ||
||  ------------      ----|  e l  |              -------------------  ||
|| | TweetModel |-------->|  t e  |                                   ||
||  ------------          |  s c  |                                   ||
||                        |    t  |----                               ||
||  ------------          |    i  |    |                              ||
|| | TweetModel |-------->|    o  |    |                              ||
||  ------------          |    n  |    |                              ||
||       ^                 -------     |                              ||
||       |                             |                              ||
||       |[edit]                       |[add event]                   ||
||       |                             |                              ||
||       |       [create]              |                              ||
||  ----------- <--------- --------    |                              ||
|| | tweetView |--------->|        |   |                              ||
||  -----------  [append] | tweets |<--                               ||
||                        |   View |                                  ||
||                        |        |<----------------------------------------
||                         --------                                   ||     |
||                                                                    ||     |
||                                                                    ||     |
 ============================[Backbone MVC]============================      |
                                                                             |
               ----------------------------               -------------------
              |                            |             |
              |                        ---------------------------------------
        =============                 |                Router                 |
       ||           ||                 ---------------------------------------
       ||           ||                     |             |
       ||           ||                     |             |
        =============                      |     =================
                                           |    ||               ||
                                            --->||               ||
                                                ||               ||
                                                 ================= 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment