{"action":"opened","issue":{"url":"https://api.github.com/repos/htl-perg-2018-19-4bhif/converter-example-Lauch/issues/1","repository_url":"https://api.github.com/repos/htl-perg-2018-19-4bhif/converter-example-Lauch","labels_url":"https://api.github.com/repos/htl-perg-2018-19-4bhif/converter-example-Lauch/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/htl-perg-2018-19-4bhif/converter-example-Lauch/issues/1/comments","events_url":"https://api.github.com/repos/htl-perg-2018-19-4bhif/converter-example-Lauch/issues/1/events","html_url":"https://github.com/htl-perg-2018-19-4bhif/converter-example-Lauch/issues/1","id":373799101,"node_id":"MDU6SXNzdWUzNzM3OTkxMDE=","number":1,"title":"Homework","user":{"login":"rstropek","id":2341573,"node_id":"MDQ6VXNlcjIzNDE1NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/2341573?v=4","gravatar_id":"","url":"https://api.github.com/users/rstropek","html_url":"https://github.com/rstropek","followers_url":"https://api.github.com/users/rstropek/followers","following_url":"https://api.github.com/users/rstropek/following{/other_user}","gists_url":"https://api.github.com/users/rstropek/gists{/gist_id}","starred_url":"https://api.github.com/users/rstropek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstropek/subscriptions","organizations_url":"https://api.github.com/users/rstropek/orgs","repos_url":"https://api.github.com/users/rstropek/repos","events_url":"https://api.github.com/users/rstropek/events{/privacy}","received_events_url":"https://api.github.com/users/rstropek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-25T06:55:17Z","updated_at":"2018-10-25T06:55:17Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi @Lauch!\r\n\r\nThank you for your homework. All tests are green 👍. However, your code isn't very elegant. There is a common rule in programming that says: \"Don't repeat yourself\". In your code, you have a lot of repetitions (e.g. building of the result string for `console.log`). You could have used variables to store results and build the output string in a central location. Additionally, you could have simplified conversions from/to identical unit of measure-pairs (e.g. kg to g and vice versa).\r\n\r\nStill, the program works and you earned one point for your homework. Next time, try to remember the \"Don't repeat yourself\" rule.\r\n\r\nGreetings,\r\nRainer Stropek."}}
{"actor":{"display_login":"rstropek"}}