{"action":"closed","number":177,"pull_request":{"url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/pulls/177","id":41412700,"html_url":"https://github.com/brooklynjs/brooklynjs.github.io/pull/177","diff_url":"https://github.com/brooklynjs/brooklynjs.github.io/pull/177.diff","patch_url":"https://github.com/brooklynjs/brooklynjs.github.io/pull/177.patch","issue_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/issues/177","number":177,"state":"closed","locked":false,"title":"Becoming Optimist Prime","user":{"login":"HipsterBrown","id":3051193,"avatar_url":"https://avatars.githubusercontent.com/u/3051193?v=3","gravatar_id":"","url":"https://api.github.com/users/HipsterBrown","html_url":"https://github.com/HipsterBrown","followers_url":"https://api.github.com/users/HipsterBrown/followers","following_url":"https://api.github.com/users/HipsterBrown/following{/other_user}","gists_url":"https://api.github.com/users/HipsterBrown/gists{/gist_id}","starred_url":"https://api.github.com/users/HipsterBrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HipsterBrown/subscriptions","organizations_url":"https://api.github.com/users/HipsterBrown/orgs","repos_url":"https://api.github.com/users/HipsterBrown/repos","events_url":"https://api.github.com/users/HipsterBrown/events{/privacy}","received_events_url":"https://api.github.com/users/HipsterBrown/received_events","type":"User","site_admin":false},"body":"The common pattern of syncing our UI with the database is through Ajax / XHR requests (or even full page refreshes) and reflecting the response once it's received.\r\n\r\nBut what if we didn't have to rely so heavily on that response? How do we reliably update the front-end as quickly as possible without asking the server first?\r\n\r\nThe same resources and patterns that are used in offline-first apps can be used for these \"optimistic updates\".\r\n\r\nIn this talk, I'll discuss how the idea works, the ideal and not-so-ideal use cases for this pattern, and what tooling is available to help us become Optimist Primes today. ","created_at":"2015-08-02T05:20:41Z","updated_at":"2015-08-06T18:12:39Z","closed_at":"2015-08-06T18:12:39Z","merged_at":"2015-08-06T18:12:39Z","merge_commit_sha":"d5f4ac788d6f8c4906879a82840fee3f2eecb83d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/pulls/177/commits","review_comments_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/pulls/177/comments","review_comment_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/issues/177/comments","statuses_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/statuses/635e72febc49e3f3bc38a31dd2a0eaa9d99bfceb","head":{"label":"HipsterBrown:patch-2","ref":"patch-2","sha":"635e72febc49e3f3bc38a31dd2a0eaa9d99bfceb","user":{"login":"HipsterBrown","id":3051193,"avatar_url":"https://avatars.githubusercontent.com/u/3051193?v=3","gravatar_id":"","url":"https://api.github.com/users/HipsterBrown","html_url":"https://github.com/HipsterBrown","followers_url":"https://api.github.com/users/HipsterBrown/followers","following_url":"https://api.github.com/users/HipsterBrown/following{/other_user}","gists_url":"https://api.github.com/users/HipsterBrown/gists{/gist_id}","starred_url":"https://api.github.com/users/HipsterBrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HipsterBrown/subscriptions","organizations_url":"https://api.github.com/users/HipsterBrown/orgs","repos_url":"https://api.github.com/users/HipsterBrown/repos","events_url":"https://api.github.com/users/HipsterBrown/events{/privacy}","received_events_url":"https://api.github.com/users/HipsterBrown/received_events","type":"User","site_admin":false},"repo":{"id":26975144,"name":"brooklynjs.github.io","full_name":"HipsterBrown/brooklynjs.github.io","owner":{"login":"HipsterBrown","id":3051193,"avatar_url":"https://avatars.githubusercontent.com/u/3051193?v=3","gravatar_id":"","url":"https://api.github.com/users/HipsterBrown","html_url":"https://github.com/HipsterBrown","followers_url":"https://api.github.com/users/HipsterBrown/followers","following_url":"https://api.github.com/users/HipsterBrown/following{/other_user}","gists_url":"https://api.github.com/users/HipsterBrown/gists{/gist_id}","starred_url":"https://api.github.com/users/HipsterBrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HipsterBrown/subscriptions","organizations_url":"https://api.github.com/users/HipsterBrown/orgs","repos_url":"https://api.github.com/users/HipsterBrown/repos","events_url":"https://api.github.com/users/HipsterBrown/events{/privacy}","received_events_url":"https://api.github.com/users/HipsterBrown/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HipsterBrown/brooklynjs.github.io","description":"The world's most popular programming language, in New York's most popular borough","fork":true,"url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io","forks_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/forks","keys_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/teams","hooks_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/hooks","issue_events_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/events","assignees_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/tags","blobs_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/languages","stargazers_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/stargazers","contributors_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/contributors","subscribers_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/subscribers","subscription_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/subscription","commits_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/merges","archive_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/downloads","issues_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/labels{/name}","releases_url":"https://api.github.com/repos/HipsterBrown/brooklynjs.github.io/releases{/id}","created_at":"2014-11-21T19:43:28Z","updated_at":"2014-11-21T19:54:29Z","pushed_at":"2015-08-02T05:07:02Z","git_url":"git://github.com/HipsterBrown/brooklynjs.github.io.git","ssh_url":"git@github.com:HipsterBrown/brooklynjs.github.io.git","clone_url":"https://github.com/HipsterBrown/brooklynjs.github.io.git","svn_url":"https://github.com/HipsterBrown/brooklynjs.github.io","homepage":"http://brooklynjs.com","size":1923,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"brooklynjs:master","ref":"master","sha":"37fedda7e8bf2a810d5860b06ecbff5856d044af","user":{"login":"brooklynjs","id":5890168,"avatar_url":"https://avatars.githubusercontent.com/u/5890168?v=3","gravatar_id":"","url":"https://api.github.com/users/brooklynjs","html_url":"https://github.com/brooklynjs","followers_url":"https://api.github.com/users/brooklynjs/followers","following_url":"https://api.github.com/users/brooklynjs/following{/other_user}","gists_url":"https://api.github.com/users/brooklynjs/gists{/gist_id}","starred_url":"https://api.github.com/users/brooklynjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brooklynjs/subscriptions","organizations_url":"https://api.github.com/users/brooklynjs/orgs","repos_url":"https://api.github.com/users/brooklynjs/repos","events_url":"https://api.github.com/users/brooklynjs/events{/privacy}","received_events_url":"https://api.github.com/users/brooklynjs/received_events","type":"Organization","site_admin":false},"repo":{"id":14017260,"name":"brooklynjs.github.io","full_name":"brooklynjs/brooklynjs.github.io","owner":{"login":"brooklynjs","id":5890168,"avatar_url":"https://avatars.githubusercontent.com/u/5890168?v=3","gravatar_id":"","url":"https://api.github.com/users/brooklynjs","html_url":"https://github.com/brooklynjs","followers_url":"https://api.github.com/users/brooklynjs/followers","following_url":"https://api.github.com/users/brooklynjs/following{/other_user}","gists_url":"https://api.github.com/users/brooklynjs/gists{/gist_id}","starred_url":"https://api.github.com/users/brooklynjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brooklynjs/subscriptions","organizations_url":"https://api.github.com/users/brooklynjs/orgs","repos_url":"https://api.github.com/users/brooklynjs/repos","events_url":"https://api.github.com/users/brooklynjs/events{/privacy}","received_events_url":"https://api.github.com/users/brooklynjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/brooklynjs/brooklynjs.github.io","description":"The world's most popular programming language, in New York's most popular borough","fork":false,"url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io","forks_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/forks","keys_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/teams","hooks_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/hooks","issue_events_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/events","assignees_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/tags","blobs_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/languages","stargazers_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/stargazers","contributors_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/contributors","subscribers_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/subscribers","subscription_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/subscription","commits_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/merges","archive_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/downloads","issues_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/labels{/name}","releases_url":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/releases{/id}","created_at":"2013-10-31T13:13:10Z","updated_at":"2015-08-05T06:06:37Z","pushed_at":"2015-08-06T18:12:39Z","git_url":"git://github.com/brooklynjs/brooklynjs.github.io.git","ssh_url":"git@github.com:brooklynjs/brooklynjs.github.io.git","clone_url":"https://github.com/brooklynjs/brooklynjs.github.io.git","svn_url":"https://github.com/brooklynjs/brooklynjs.github.io","homepage":"http://brooklynjs.com","size":3172,"stargazers_count":61,"watchers_count":61,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":135,"mirror_url":null,"open_issues_count":6,"forks":135,"open_issues":6,"watchers":61,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/pulls/177"},"html":{"href":"https://github.com/brooklynjs/brooklynjs.github.io/pull/177"},"issue":{"href":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/issues/177"},"comments":{"href":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/issues/177/comments"},"review_comments":{"href":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/pulls/177/comments"},"review_comment":{"href":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/pulls/177/commits"},"statuses":{"href":"https://api.github.com/repos/brooklynjs/brooklynjs.github.io/statuses/635e72febc49e3f3bc38a31dd2a0eaa9d99bfceb"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jed","id":4433,"avatar_url":"https://avatars.githubusercontent.com/u/4433?v=3","gravatar_id":"","url":"https://api.github.com/users/jed","html_url":"https://github.com/jed","followers_url":"https://api.github.com/users/jed/followers","following_url":"https://api.github.com/users/jed/following{/other_user}","gists_url":"https://api.github.com/users/jed/gists{/gist_id}","starred_url":"https://api.github.com/users/jed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jed/subscriptions","organizations_url":"https://api.github.com/users/jed/orgs","repos_url":"https://api.github.com/users/jed/repos","events_url":"https://api.github.com/users/jed/events{/privacy}","received_events_url":"https://api.github.com/users/jed/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}