{"action":"created","issue":{"url":"https://api.github.com/repos/ryanmcdermott/clean-code-javascript/issues/245","repository_url":"https://api.github.com/repos/ryanmcdermott/clean-code-javascript","labels_url":"https://api.github.com/repos/ryanmcdermott/clean-code-javascript/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/ryanmcdermott/clean-code-javascript/issues/245/comments","events_url":"https://api.github.com/repos/ryanmcdermott/clean-code-javascript/issues/245/events","html_url":"https://github.com/ryanmcdermott/clean-code-javascript/issues/245","id":362625702,"node_id":"MDU6SXNzdWUzNjI2MjU3MDI=","number":245,"title":"Redundant information in \"dont-add-unneeded-context\"","user":{"login":"nvikram","id":2340140,"node_id":"MDQ6VXNlcjIzNDAxNDA=","avatar_url":"https://avatars3.githubusercontent.com/u/2340140?v=4","gravatar_id":"","url":"https://api.github.com/users/nvikram","html_url":"https://github.com/nvikram","followers_url":"https://api.github.com/users/nvikram/followers","following_url":"https://api.github.com/users/nvikram/following{/other_user}","gists_url":"https://api.github.com/users/nvikram/gists{/gist_id}","starred_url":"https://api.github.com/users/nvikram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvikram/subscriptions","organizations_url":"https://api.github.com/users/nvikram/orgs","repos_url":"https://api.github.com/users/nvikram/repos","events_url":"https://api.github.com/users/nvikram/events{/privacy}","received_events_url":"https://api.github.com/users/nvikram/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-21T13:52:42Z","updated_at":"2018-09-23T03:54:38Z","closed_at":null,"author_association":"NONE","body":"https://github.com/ryanmcdermott/clean-code-javascript#dont-add-unneeded-context\r\n**Not so good:**\r\n``` \r\nconst Car = {\r\n  make: 'Honda',\r\n  model: 'Accord',\r\n  color: 'Blue'\r\n};\r\n\r\nfunction paintCar(car) {\r\n  car.color = 'Red';\r\n} \r\n```\r\n// paintCar for a function name is redundant here and a simple paint(car) seems more intuitive.\r\n**Better:**\r\n```\r\nconst Car = {\r\n  make: 'Honda',\r\n  model: 'Accord',\r\n  color: 'Blue'\r\n};\r\n\r\nfunction paint(car) {\r\n  car.color = 'Red';\r\n}\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ryanmcdermott/clean-code-javascript/issues/comments/423789999","html_url":"https://github.com/ryanmcdermott/clean-code-javascript/issues/245#issuecomment-423789999","issue_url":"https://api.github.com/repos/ryanmcdermott/clean-code-javascript/issues/245","id":423789999,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzc4OTk5OQ==","user":{"login":"GMaiolo","id":9776436,"node_id":"MDQ6VXNlcjk3NzY0MzY=","avatar_url":"https://avatars0.githubusercontent.com/u/9776436?v=4","gravatar_id":"","url":"https://api.github.com/users/GMaiolo","html_url":"https://github.com/GMaiolo","followers_url":"https://api.github.com/users/GMaiolo/followers","following_url":"https://api.github.com/users/GMaiolo/following{/other_user}","gists_url":"https://api.github.com/users/GMaiolo/gists{/gist_id}","starred_url":"https://api.github.com/users/GMaiolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GMaiolo/subscriptions","organizations_url":"https://api.github.com/users/GMaiolo/orgs","repos_url":"https://api.github.com/users/GMaiolo/repos","events_url":"https://api.github.com/users/GMaiolo/events{/privacy}","received_events_url":"https://api.github.com/users/GMaiolo/received_events","type":"User","site_admin":false},"created_at":"2018-09-23T03:54:38Z","updated_at":"2018-09-23T03:54:38Z","author_association":"NONE","body":"Created PR #246 "}}
{"actor":{"display_login":"GMaiolo"}}