{"action":"created","issue":{"url":"https://api.github.com/repos/HIG-Student/Programvaruteknik_Lab1/issues/3","repository_url":"https://api.github.com/repos/HIG-Student/Programvaruteknik_Lab1","labels_url":"https://api.github.com/repos/HIG-Student/Programvaruteknik_Lab1/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/HIG-Student/Programvaruteknik_Lab1/issues/3/comments","events_url":"https://api.github.com/repos/HIG-Student/Programvaruteknik_Lab1/issues/3/events","html_url":"https://github.com/HIG-Student/Programvaruteknik_Lab1/issues/3","id":132988573,"number":3,"title":"Refactoring","user":{"login":"Viktor-Hanstorp","id":7505371,"avatar_url":"https://avatars.githubusercontent.com/u/7505371?v=3","gravatar_id":"","url":"https://api.github.com/users/Viktor-Hanstorp","html_url":"https://github.com/Viktor-Hanstorp","followers_url":"https://api.github.com/users/Viktor-Hanstorp/followers","following_url":"https://api.github.com/users/Viktor-Hanstorp/following{/other_user}","gists_url":"https://api.github.com/users/Viktor-Hanstorp/gists{/gist_id}","starred_url":"https://api.github.com/users/Viktor-Hanstorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Viktor-Hanstorp/subscriptions","organizations_url":"https://api.github.com/users/Viktor-Hanstorp/orgs","repos_url":"https://api.github.com/users/Viktor-Hanstorp/repos","events_url":"https://api.github.com/users/Viktor-Hanstorp/events{/privacy}","received_events_url":"https://api.github.com/users/Viktor-Hanstorp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-11T14:31:35Z","updated_at":"2016-02-11T17:51:46Z","closed_at":"2016-02-11T17:51:46Z","body":"Refactoring examples"},"comment":{"url":"https://api.github.com/repos/HIG-Student/Programvaruteknik_Lab1/issues/comments/182978049","html_url":"https://github.com/HIG-Student/Programvaruteknik_Lab1/issues/3#issuecomment-182978049","issue_url":"https://api.github.com/repos/HIG-Student/Programvaruteknik_Lab1/issues/3","id":182978049,"user":{"login":"Viktor-Hanstorp","id":7505371,"avatar_url":"https://avatars.githubusercontent.com/u/7505371?v=3","gravatar_id":"","url":"https://api.github.com/users/Viktor-Hanstorp","html_url":"https://github.com/Viktor-Hanstorp","followers_url":"https://api.github.com/users/Viktor-Hanstorp/followers","following_url":"https://api.github.com/users/Viktor-Hanstorp/following{/other_user}","gists_url":"https://api.github.com/users/Viktor-Hanstorp/gists{/gist_id}","starred_url":"https://api.github.com/users/Viktor-Hanstorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Viktor-Hanstorp/subscriptions","organizations_url":"https://api.github.com/users/Viktor-Hanstorp/orgs","repos_url":"https://api.github.com/users/Viktor-Hanstorp/repos","events_url":"https://api.github.com/users/Viktor-Hanstorp/events{/privacy}","received_events_url":"https://api.github.com/users/Viktor-Hanstorp/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T17:51:46Z","updated_at":"2016-02-11T17:51:46Z","body":"The best refactorings might be:\r\n\r\n- [Killing of enum switch](https://github.com/HIG-Student/Programvaruteknik_Lab1/commit/da6977a74ac979213818cdb6e7423418fce68ff2)\r\n- [Polymorphic Enum to Lambda Enum](https://github.com/HIG-Student/Programvaruteknik_Lab1/commit/ad97a7b93d29d96eb31aa617a7429ed311947af5)\r\n- [Swap enum for Lambda](https://github.com/HIG-Student/Programvaruteknik_Lab1/commit/929ffc482bb523e7fbef3b3de2107d1fcfa301fe)\r\n\r\n@Frekkan if you have something to add, edit this comment"}}