{"action":"created","issue":{"url":"https://api.github.com/repos/staltz/cycle/issues/116","labels_url":"https://api.github.com/repos/staltz/cycle/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/staltz/cycle/issues/116/comments","events_url":"https://api.github.com/repos/staltz/cycle/issues/116/events","html_url":"https://github.com/staltz/cycle/issues/116","id":73888215,"number":116,"title":"Idea: externalize all side-effects just like user interaction is","user":{"login":"staltz","id":90512,"avatar_url":"https://avatars.githubusercontent.com/u/90512?v=3","gravatar_id":"","url":"https://api.github.com/users/staltz","html_url":"https://github.com/staltz","followers_url":"https://api.github.com/users/staltz/followers","following_url":"https://api.github.com/users/staltz/following{/other_user}","gists_url":"https://api.github.com/users/staltz/gists{/gist_id}","starred_url":"https://api.github.com/users/staltz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staltz/subscriptions","organizations_url":"https://api.github.com/users/staltz/orgs","repos_url":"https://api.github.com/users/staltz/repos","events_url":"https://api.github.com/users/staltz/events{/privacy}","received_events_url":"https://api.github.com/users/staltz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/staltz/cycle/labels/breaking","name":"breaking","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"staltz","id":90512,"avatar_url":"https://avatars.githubusercontent.com/u/90512?v=3","gravatar_id":"","url":"https://api.github.com/users/staltz","html_url":"https://github.com/staltz","followers_url":"https://api.github.com/users/staltz/followers","following_url":"https://api.github.com/users/staltz/following{/other_user}","gists_url":"https://api.github.com/users/staltz/gists{/gist_id}","starred_url":"https://api.github.com/users/staltz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staltz/subscriptions","organizations_url":"https://api.github.com/users/staltz/orgs","repos_url":"https://api.github.com/users/staltz/repos","events_url":"https://api.github.com/users/staltz/events{/privacy}","received_events_url":"https://api.github.com/users/staltz/received_events","type":"User","site_admin":false},"milestone":null,"comments":40,"created_at":"2015-05-07T08:04:09Z","updated_at":"2015-05-30T05:38:20Z","closed_at":null,"body":"We could generalize interactions with external systems, and make the user interaction to be just one of those interactions. For instance, human-computer interaction happening simultaneously with server-computer interaction.\r\n\r\nProposed API:\r\n```js\r\nfunction computer(interactions) {\r\n  var userClicks = interactions.get('dom://.target/click');\r\n  var responses = interactions.get('mongodb://foods/3/best-before');\r\n  // ...\r\n  return {\r\n    vtree$, // as usual\r\n    request$ // for mongodb\r\n  };\r\n}\r\n\r\nCycle.apply(computer, {\r\n  dom: '#app',\r\n  mongodb: someMongoDriverHereWithConnectionConfig\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/staltz/cycle/issues/comments/106991800","html_url":"https://github.com/staltz/cycle/issues/116#issuecomment-106991800","issue_url":"https://api.github.com/repos/staltz/cycle/issues/116","id":106991800,"user":{"login":"alexmingoia","id":1112718,"avatar_url":"https://avatars.githubusercontent.com/u/1112718?v=3","gravatar_id":"","url":"https://api.github.com/users/alexmingoia","html_url":"https://github.com/alexmingoia","followers_url":"https://api.github.com/users/alexmingoia/followers","following_url":"https://api.github.com/users/alexmingoia/following{/other_user}","gists_url":"https://api.github.com/users/alexmingoia/gists{/gist_id}","starred_url":"https://api.github.com/users/alexmingoia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexmingoia/subscriptions","organizations_url":"https://api.github.com/users/alexmingoia/orgs","repos_url":"https://api.github.com/users/alexmingoia/repos","events_url":"https://api.github.com/users/alexmingoia/events{/privacy}","received_events_url":"https://api.github.com/users/alexmingoia/received_events","type":"User","site_admin":false},"created_at":"2015-05-30T05:38:20Z","updated_at":"2015-05-30T05:38:20Z","body":"My final suggestions in order of preference:\r\n\r\n1. adapter\r\n2. interaction\r\n3. channel"}}