{"action":"created","issue":{"url":"https://api.github.com/repos/OlgaRabodzei/conditional_fields/issues/7","repository_url":"https://api.github.com/repos/OlgaRabodzei/conditional_fields","labels_url":"https://api.github.com/repos/OlgaRabodzei/conditional_fields/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/OlgaRabodzei/conditional_fields/issues/7/comments","events_url":"https://api.github.com/repos/OlgaRabodzei/conditional_fields/issues/7/events","html_url":"https://github.com/OlgaRabodzei/conditional_fields/issues/7","id":182449218,"number":7,"title":"Use services instead of global functions","user":{"login":"Sutharsan","id":259953,"avatar_url":"https://avatars.githubusercontent.com/u/259953?v=3","gravatar_id":"","url":"https://api.github.com/users/Sutharsan","html_url":"https://github.com/Sutharsan","followers_url":"https://api.github.com/users/Sutharsan/followers","following_url":"https://api.github.com/users/Sutharsan/following{/other_user}","gists_url":"https://api.github.com/users/Sutharsan/gists{/gist_id}","starred_url":"https://api.github.com/users/Sutharsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sutharsan/subscriptions","organizations_url":"https://api.github.com/users/Sutharsan/orgs","repos_url":"https://api.github.com/users/Sutharsan/repos","events_url":"https://api.github.com/users/Sutharsan/events{/privacy}","received_events_url":"https://api.github.com/users/Sutharsan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-12T06:55:11Z","updated_at":"2016-10-12T07:32:28Z","closed_at":null,"body":"One great major difference between procedural code versus object oriented code is the use of services instead of global function. Please convert as many global procedural functions to services.\r\n\r\nAll functions in .module and .inc files are candidates for services. Hook implementations are the exception, they can remain in .module, but can use services to do the work. Using services has several advantages: Code is decoupled; Dependencies will be made explicit by means of Dependency Injection; Services can be overridden (by other modules); Average memory footprint is reduced."},"comment":{"url":"https://api.github.com/repos/OlgaRabodzei/conditional_fields/issues/comments/253140176","html_url":"https://github.com/OlgaRabodzei/conditional_fields/issues/7#issuecomment-253140176","issue_url":"https://api.github.com/repos/OlgaRabodzei/conditional_fields/issues/7","id":253140176,"user":{"login":"OlgaRabodzei","id":1485839,"avatar_url":"https://avatars.githubusercontent.com/u/1485839?v=3","gravatar_id":"","url":"https://api.github.com/users/OlgaRabodzei","html_url":"https://github.com/OlgaRabodzei","followers_url":"https://api.github.com/users/OlgaRabodzei/followers","following_url":"https://api.github.com/users/OlgaRabodzei/following{/other_user}","gists_url":"https://api.github.com/users/OlgaRabodzei/gists{/gist_id}","starred_url":"https://api.github.com/users/OlgaRabodzei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlgaRabodzei/subscriptions","organizations_url":"https://api.github.com/users/OlgaRabodzei/orgs","repos_url":"https://api.github.com/users/OlgaRabodzei/repos","events_url":"https://api.github.com/users/OlgaRabodzei/events{/privacy}","received_events_url":"https://api.github.com/users/OlgaRabodzei/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T07:32:28Z","updated_at":"2016-10-12T07:32:28Z","body":"Thank You, Erik! It's a really good remark. We'll rebuild code."}}
{"actor":{"display_login":"OlgaRabodzei"}}