{"action":"created","comment":{"url":"https://api.github.com/repos/xh3b4sd/anna/pulls/comments/51671416","id":51671416,"diff_hunk":"@@ -0,0 +1,21 @@\n+# factory\n+A factory is something that creates new things. Here it is about creating new\n+objects. The factory concept solves the problem of dependency injection.\n+Objects need to be able to create new objects on demand. Those objects need to\n+be properly configured with e.g. a logger. Passing these dependencies all the\n+way through the deeps of the code is messy and can lead to bad design. Hard\n+maintainability and testability would be the result. So we have a central\n+factory that is properly configured ones. The factory is accessible through a\n+gateway. The starting core is also configured with this gateway. That way the\n+core is able to talk to the factory in a decoupled manner and simply can\n+request all kind of objects. All objects the factory creates are also\n+configured with the factory gateway. Thus they are also able to call the\n+factory.\n+\n+So when the first core is booted and needs to process signals, it creates a new\n+network by calling the factory. The network at some point creates a new neuron\n+by calling the factory as well. This proceedure goes on and on as desired.\n+\n+The following illustration shows the basic setup of the object factory.\n+\n+![factory](image/factory.png)","path":"doc/concept/factory.md","position":21,"original_position":21,"commit_id":"8296b75ea0a072c6b9ef04a2b56812889eb3a934","original_commit_id":"8296b75ea0a072c6b9ef04a2b56812889eb3a934","user":{"login":"xh3b4sd","id":552769,"avatar_url":"https://avatars.githubusercontent.com/u/552769?v=3","gravatar_id":"","url":"https://api.github.com/users/xh3b4sd","html_url":"https://github.com/xh3b4sd","followers_url":"https://api.github.com/users/xh3b4sd/followers","following_url":"https://api.github.com/users/xh3b4sd/following{/other_user}","gists_url":"https://api.github.com/users/xh3b4sd/gists{/gist_id}","starred_url":"https://api.github.com/users/xh3b4sd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xh3b4sd/subscriptions","organizations_url":"https://api.github.com/users/xh3b4sd/orgs","repos_url":"https://api.github.com/users/xh3b4sd/repos","events_url":"https://api.github.com/users/xh3b4sd/events{/privacy}","received_events_url":"https://api.github.com/users/xh3b4sd/received_events","type":"User","site_admin":false},"body":"The picture needs to be updated.","created_at":"2016-02-03T02:32:30Z","updated_at":"2016-02-03T02:32:30Z","html_url":"https://github.com/xh3b4sd/anna/pull/11#discussion_r51671416","pull_request_url":"https://api.github.com/repos/xh3b4sd/anna/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/xh3b4sd/anna/pulls/comments/51671416"},"html":{"href":"https://github.com/xh3b4sd/anna/pull/11#discussion_r51671416"},"pull_request":{"href":"https://api.github.com/repos/xh3b4sd/anna/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/xh3b4sd/anna/pulls/11","id":57692561,"html_url":"https://github.com/xh3b4sd/anna/pull/11","diff_url":"https://github.com/xh3b4sd/anna/pull/11.diff","patch_url":"https://github.com/xh3b4sd/anna/pull/11.patch","issue_url":"https://api.github.com/repos/xh3b4sd/anna/issues/11","number":11,"state":"open","locked":false,"title":"backup state","user":{"login":"xh3b4sd","id":552769,"avatar_url":"https://avatars.githubusercontent.com/u/552769?v=3","gravatar_id":"","url":"https://api.github.com/users/xh3b4sd","html_url":"https://github.com/xh3b4sd","followers_url":"https://api.github.com/users/xh3b4sd/followers","following_url":"https://api.github.com/users/xh3b4sd/following{/other_user}","gists_url":"https://api.github.com/users/xh3b4sd/gists{/gist_id}","starred_url":"https://api.github.com/users/xh3b4sd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xh3b4sd/subscriptions","organizations_url":"https://api.github.com/users/xh3b4sd/orgs","repos_url":"https://api.github.com/users/xh3b4sd/repos","events_url":"https://api.github.com/users/xh3b4sd/events{/privacy}","received_events_url":"https://api.github.com/users/xh3b4sd/received_events","type":"User","site_admin":false},"body":"TBD","created_at":"2016-01-29T19:38:15Z","updated_at":"2016-02-03T02:32:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9fa74040074b219caf950b97cfee7078c03fc892","assignee":{"login":"xh3b4sd","id":552769,"avatar_url":"https://avatars.githubusercontent.com/u/552769?v=3","gravatar_id":"","url":"https://api.github.com/users/xh3b4sd","html_url":"https://github.com/xh3b4sd","followers_url":"https://api.github.com/users/xh3b4sd/followers","following_url":"https://api.github.com/users/xh3b4sd/following{/other_user}","gists_url":"https://api.github.com/users/xh3b4sd/gists{/gist_id}","starred_url":"https://api.github.com/users/xh3b4sd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xh3b4sd/subscriptions","organizations_url":"https://api.github.com/users/xh3b4sd/orgs","repos_url":"https://api.github.com/users/xh3b4sd/repos","events_url":"https://api.github.com/users/xh3b4sd/events{/privacy}","received_events_url":"https://api.github.com/users/xh3b4sd/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/xh3b4sd/anna/pulls/11/commits","review_comments_url":"https://api.github.com/repos/xh3b4sd/anna/pulls/11/comments","review_comment_url":"https://api.github.com/repos/xh3b4sd/anna/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xh3b4sd/anna/issues/11/comments","statuses_url":"https://api.github.com/repos/xh3b4sd/anna/statuses/8296b75ea0a072c6b9ef04a2b56812889eb3a934","head":{"label":"xh3b4sd:state","ref":"state","sha":"8296b75ea0a072c6b9ef04a2b56812889eb3a934","user":{"login":"xh3b4sd","id":552769,"avatar_url":"https://avatars.githubusercontent.com/u/552769?v=3","gravatar_id":"","url":"https://api.github.com/users/xh3b4sd","html_url":"https://github.com/xh3b4sd","followers_url":"https://api.github.com/users/xh3b4sd/followers","following_url":"https://api.github.com/users/xh3b4sd/following{/other_user}","gists_url":"https://api.github.com/users/xh3b4sd/gists{/gist_id}","starred_url":"https://api.github.com/users/xh3b4sd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xh3b4sd/subscriptions","organizations_url":"https://api.github.com/users/xh3b4sd/orgs","repos_url":"https://api.github.com/users/xh3b4sd/repos","events_url":"https://api.github.com/users/xh3b4sd/events{/privacy}","received_events_url":"https://api.github.com/users/xh3b4sd/received_events","type":"User","site_admin":false},"repo":{"id":49432401,"name":"anna","full_name":"xh3b4sd/anna","owner":{"login":"xh3b4sd","id":552769,"avatar_url":"https://avatars.githubusercontent.com/u/552769?v=3","gravatar_id":"","url":"https://api.github.com/users/xh3b4sd","html_url":"https://github.com/xh3b4sd","followers_url":"https://api.github.com/users/xh3b4sd/followers","following_url":"https://api.github.com/users/xh3b4sd/following{/other_user}","gists_url":"https://api.github.com/users/xh3b4sd/gists{/gist_id}","starred_url":"https://api.github.com/users/xh3b4sd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xh3b4sd/subscriptions","organizations_url":"https://api.github.com/users/xh3b4sd/orgs","repos_url":"https://api.github.com/users/xh3b4sd/repos","events_url":"https://api.github.com/users/xh3b4sd/events{/privacy}","received_events_url":"https://api.github.com/users/xh3b4sd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xh3b4sd/anna","description":"Artificial Neural Network Aspiration, in short: Anna. Aims to be self-learning and self-improving software. ","fork":false,"url":"https://api.github.com/repos/xh3b4sd/anna","forks_url":"https://api.github.com/repos/xh3b4sd/anna/forks","keys_url":"https://api.github.com/repos/xh3b4sd/anna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xh3b4sd/anna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xh3b4sd/anna/teams","hooks_url":"https://api.github.com/repos/xh3b4sd/anna/hooks","issue_events_url":"https://api.github.com/repos/xh3b4sd/anna/issues/events{/number}","events_url":"https://api.github.com/repos/xh3b4sd/anna/events","assignees_url":"https://api.github.com/repos/xh3b4sd/anna/assignees{/user}","branches_url":"https://api.github.com/repos/xh3b4sd/anna/branches{/branch}","tags_url":"https://api.github.com/repos/xh3b4sd/anna/tags","blobs_url":"https://api.github.com/repos/xh3b4sd/anna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xh3b4sd/anna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xh3b4sd/anna/git/refs{/sha}","trees_url":"https://api.github.com/repos/xh3b4sd/anna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xh3b4sd/anna/statuses/{sha}","languages_url":"https://api.github.com/repos/xh3b4sd/anna/languages","stargazers_url":"https://api.github.com/repos/xh3b4sd/anna/stargazers","contributors_url":"https://api.github.com/repos/xh3b4sd/anna/contributors","subscribers_url":"https://api.github.com/repos/xh3b4sd/anna/subscribers","subscription_url":"https://api.github.com/repos/xh3b4sd/anna/subscription","commits_url":"https://api.github.com/repos/xh3b4sd/anna/commits{/sha}","git_commits_url":"https://api.github.com/repos/xh3b4sd/anna/git/commits{/sha}","comments_url":"https://api.github.com/repos/xh3b4sd/anna/comments{/number}","issue_comment_url":"https://api.github.com/repos/xh3b4sd/anna/issues/comments{/number}","contents_url":"https://api.github.com/repos/xh3b4sd/anna/contents/{+path}","compare_url":"https://api.github.com/repos/xh3b4sd/anna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xh3b4sd/anna/merges","archive_url":"https://api.github.com/repos/xh3b4sd/anna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xh3b4sd/anna/downloads","issues_url":"https://api.github.com/repos/xh3b4sd/anna/issues{/number}","pulls_url":"https://api.github.com/repos/xh3b4sd/anna/pulls{/number}","milestones_url":"https://api.github.com/repos/xh3b4sd/anna/milestones{/number}","notifications_url":"https://api.github.com/repos/xh3b4sd/anna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xh3b4sd/anna/labels{/name}","releases_url":"https://api.github.com/repos/xh3b4sd/anna/releases{/id}","deployments_url":"https://api.github.com/repos/xh3b4sd/anna/deployments","created_at":"2016-01-11T14:42:58Z","updated_at":"2016-01-16T00:36:42Z","pushed_at":"2016-02-03T01:44:44Z","git_url":"git://github.com/xh3b4sd/anna.git","ssh_url":"git@github.com:xh3b4sd/anna.git","clone_url":"https://github.com/xh3b4sd/anna.git","svn_url":"https://github.com/xh3b4sd/anna","homepage":"","size":1387,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"xh3b4sd:master","ref":"master","sha":"5b9577020cb8386cf2fdfc36e8e714a37f387627","user":{"login":"xh3b4sd","id":552769,"avatar_url":"https://avatars.githubusercontent.com/u/552769?v=3","gravatar_id":"","url":"https://api.github.com/users/xh3b4sd","html_url":"https://github.com/xh3b4sd","followers_url":"https://api.github.com/users/xh3b4sd/followers","following_url":"https://api.github.com/users/xh3b4sd/following{/other_user}","gists_url":"https://api.github.com/users/xh3b4sd/gists{/gist_id}","starred_url":"https://api.github.com/users/xh3b4sd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xh3b4sd/subscriptions","organizations_url":"https://api.github.com/users/xh3b4sd/orgs","repos_url":"https://api.github.com/users/xh3b4sd/repos","events_url":"https://api.github.com/users/xh3b4sd/events{/privacy}","received_events_url":"https://api.github.com/users/xh3b4sd/received_events","type":"User","site_admin":false},"repo":{"id":49432401,"name":"anna","full_name":"xh3b4sd/anna","owner":{"login":"xh3b4sd","id":552769,"avatar_url":"https://avatars.githubusercontent.com/u/552769?v=3","gravatar_id":"","url":"https://api.github.com/users/xh3b4sd","html_url":"https://github.com/xh3b4sd","followers_url":"https://api.github.com/users/xh3b4sd/followers","following_url":"https://api.github.com/users/xh3b4sd/following{/other_user}","gists_url":"https://api.github.com/users/xh3b4sd/gists{/gist_id}","starred_url":"https://api.github.com/users/xh3b4sd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xh3b4sd/subscriptions","organizations_url":"https://api.github.com/users/xh3b4sd/orgs","repos_url":"https://api.github.com/users/xh3b4sd/repos","events_url":"https://api.github.com/users/xh3b4sd/events{/privacy}","received_events_url":"https://api.github.com/users/xh3b4sd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xh3b4sd/anna","description":"Artificial Neural Network Aspiration, in short: Anna. Aims to be self-learning and self-improving software. ","fork":false,"url":"https://api.github.com/repos/xh3b4sd/anna","forks_url":"https://api.github.com/repos/xh3b4sd/anna/forks","keys_url":"https://api.github.com/repos/xh3b4sd/anna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xh3b4sd/anna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xh3b4sd/anna/teams","hooks_url":"https://api.github.com/repos/xh3b4sd/anna/hooks","issue_events_url":"https://api.github.com/repos/xh3b4sd/anna/issues/events{/number}","events_url":"https://api.github.com/repos/xh3b4sd/anna/events","assignees_url":"https://api.github.com/repos/xh3b4sd/anna/assignees{/user}","branches_url":"https://api.github.com/repos/xh3b4sd/anna/branches{/branch}","tags_url":"https://api.github.com/repos/xh3b4sd/anna/tags","blobs_url":"https://api.github.com/repos/xh3b4sd/anna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xh3b4sd/anna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xh3b4sd/anna/git/refs{/sha}","trees_url":"https://api.github.com/repos/xh3b4sd/anna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xh3b4sd/anna/statuses/{sha}","languages_url":"https://api.github.com/repos/xh3b4sd/anna/languages","stargazers_url":"https://api.github.com/repos/xh3b4sd/anna/stargazers","contributors_url":"https://api.github.com/repos/xh3b4sd/anna/contributors","subscribers_url":"https://api.github.com/repos/xh3b4sd/anna/subscribers","subscription_url":"https://api.github.com/repos/xh3b4sd/anna/subscription","commits_url":"https://api.github.com/repos/xh3b4sd/anna/commits{/sha}","git_commits_url":"https://api.github.com/repos/xh3b4sd/anna/git/commits{/sha}","comments_url":"https://api.github.com/repos/xh3b4sd/anna/comments{/number}","issue_comment_url":"https://api.github.com/repos/xh3b4sd/anna/issues/comments{/number}","contents_url":"https://api.github.com/repos/xh3b4sd/anna/contents/{+path}","compare_url":"https://api.github.com/repos/xh3b4sd/anna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xh3b4sd/anna/merges","archive_url":"https://api.github.com/repos/xh3b4sd/anna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xh3b4sd/anna/downloads","issues_url":"https://api.github.com/repos/xh3b4sd/anna/issues{/number}","pulls_url":"https://api.github.com/repos/xh3b4sd/anna/pulls{/number}","milestones_url":"https://api.github.com/repos/xh3b4sd/anna/milestones{/number}","notifications_url":"https://api.github.com/repos/xh3b4sd/anna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xh3b4sd/anna/labels{/name}","releases_url":"https://api.github.com/repos/xh3b4sd/anna/releases{/id}","deployments_url":"https://api.github.com/repos/xh3b4sd/anna/deployments","created_at":"2016-01-11T14:42:58Z","updated_at":"2016-01-16T00:36:42Z","pushed_at":"2016-02-03T01:44:44Z","git_url":"git://github.com/xh3b4sd/anna.git","ssh_url":"git@github.com:xh3b4sd/anna.git","clone_url":"https://github.com/xh3b4sd/anna.git","svn_url":"https://github.com/xh3b4sd/anna","homepage":"","size":1387,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xh3b4sd/anna/pulls/11"},"html":{"href":"https://github.com/xh3b4sd/anna/pull/11"},"issue":{"href":"https://api.github.com/repos/xh3b4sd/anna/issues/11"},"comments":{"href":"https://api.github.com/repos/xh3b4sd/anna/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/xh3b4sd/anna/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/xh3b4sd/anna/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xh3b4sd/anna/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/xh3b4sd/anna/statuses/8296b75ea0a072c6b9ef04a2b56812889eb3a934"}}}}