{"action":"opened","issue":{"url":"https://api.github.com/repos/Maxim-Zaykov/OPR./issues/2","repository_url":"https://api.github.com/repos/Maxim-Zaykov/OPR.","labels_url":"https://api.github.com/repos/Maxim-Zaykov/OPR./issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Maxim-Zaykov/OPR./issues/2/comments","events_url":"https://api.github.com/repos/Maxim-Zaykov/OPR./issues/2/events","html_url":"https://github.com/Maxim-Zaykov/OPR./issues/2","id":183321578,"number":2,"title":"Замечания по 1.2 (clocks)","user":{"login":"sergey-shambir","id":1856842,"avatar_url":"https://avatars.githubusercontent.com/u/1856842?v=3","gravatar_id":"","url":"https://api.github.com/users/sergey-shambir","html_url":"https://github.com/sergey-shambir","followers_url":"https://api.github.com/users/sergey-shambir/followers","following_url":"https://api.github.com/users/sergey-shambir/following{/other_user}","gists_url":"https://api.github.com/users/sergey-shambir/gists{/gist_id}","starred_url":"https://api.github.com/users/sergey-shambir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergey-shambir/subscriptions","organizations_url":"https://api.github.com/users/sergey-shambir/orgs","repos_url":"https://api.github.com/users/sergey-shambir/repos","events_url":"https://api.github.com/users/sergey-shambir/events{/privacy}","received_events_url":"https://api.github.com/users/sergey-shambir/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-17T04:10:37Z","updated_at":"2016-10-17T04:10:37Z","closed_at":null,"body":"- в названиях функций SetEvent, SetHandRotation плохо подобраны глаголы &mdash; глагол set обычно обозначает, что в функцию будет передано значение, которое надо установить; также из названия SetEvent кажется, что функция обрабатывает одно событие за один раз\r\n- выражение можно упростить с помощью тернарного оператора\r\n\r\n```cpp\r\nif (i % 5 == 0)\r\n    watch.dot[i] = CircleShape(3);\r\nelse\r\n    watch.dot[i] = CircleShape(1);\r\n```\r\n\r\n- в функции SetNumbers можно упростить выражения за счёт объявления переменных по необходимости, выделения подвыражений в локальные переменные и использования векторной алгебры (сложения/умножения/деления/вычитания векторов)"}}
{"actor":{"display_login":"sergey-shambir"}}