{"action":"created","issue":{"url":"https://api.github.com/repos/raywenderlich/swift-style-guide/issues/195","repository_url":"https://api.github.com/repos/raywenderlich/swift-style-guide","labels_url":"https://api.github.com/repos/raywenderlich/swift-style-guide/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/raywenderlich/swift-style-guide/issues/195/comments","events_url":"https://api.github.com/repos/raywenderlich/swift-style-guide/issues/195/events","html_url":"https://github.com/raywenderlich/swift-style-guide/pull/195","id":157606474,"number":195,"title":"Replaced abbreviation \"sel\" with \"aSelector\"","user":{"login":"vadimeisenbergibm","id":16784982,"avatar_url":"https://avatars.githubusercontent.com/u/16784982?v=3","gravatar_id":"","url":"https://api.github.com/users/vadimeisenbergibm","html_url":"https://github.com/vadimeisenbergibm","followers_url":"https://api.github.com/users/vadimeisenbergibm/followers","following_url":"https://api.github.com/users/vadimeisenbergibm/following{/other_user}","gists_url":"https://api.github.com/users/vadimeisenbergibm/gists{/gist_id}","starred_url":"https://api.github.com/users/vadimeisenbergibm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadimeisenbergibm/subscriptions","organizations_url":"https://api.github.com/users/vadimeisenbergibm/orgs","repos_url":"https://api.github.com/users/vadimeisenbergibm/repos","events_url":"https://api.github.com/users/vadimeisenbergibm/events{/privacy}","received_events_url":"https://api.github.com/users/vadimeisenbergibm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-05-31T07:28:17Z","updated_at":"2016-07-14T17:09:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/raywenderlich/swift-style-guide/pulls/195","html_url":"https://github.com/raywenderlich/swift-style-guide/pull/195","diff_url":"https://github.com/raywenderlich/swift-style-guide/pull/195.diff","patch_url":"https://github.com/raywenderlich/swift-style-guide/pull/195.patch"},"body":"Using \"sel\" contradicts the coding convention in the same document: \"Abbreviations and acronyms should generally be avoided.\"\r\n\"aSelector\" is used in https://developer.apple.com/library/mac/documentation/General/Conceptual/DevPedia-CocoaCore/Selector.html ."},"comment":{"url":"https://api.github.com/repos/raywenderlich/swift-style-guide/issues/comments/232729292","html_url":"https://github.com/raywenderlich/swift-style-guide/pull/195#issuecomment-232729292","issue_url":"https://api.github.com/repos/raywenderlich/swift-style-guide/issues/195","id":232729292,"user":{"login":"anatoliyv","id":1595032,"avatar_url":"https://avatars.githubusercontent.com/u/1595032?v=3","gravatar_id":"","url":"https://api.github.com/users/anatoliyv","html_url":"https://github.com/anatoliyv","followers_url":"https://api.github.com/users/anatoliyv/followers","following_url":"https://api.github.com/users/anatoliyv/following{/other_user}","gists_url":"https://api.github.com/users/anatoliyv/gists{/gist_id}","starred_url":"https://api.github.com/users/anatoliyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anatoliyv/subscriptions","organizations_url":"https://api.github.com/users/anatoliyv/orgs","repos_url":"https://api.github.com/users/anatoliyv/repos","events_url":"https://api.github.com/users/anatoliyv/events{/privacy}","received_events_url":"https://api.github.com/users/anatoliyv/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T17:09:45Z","updated_at":"2016-07-14T17:09:45Z","body":"@vadimeisenbergibm I agree with more specific names only in a case if there are two or more selectors (or controllers, or some other instances similar by type) in a code block or method. Long variable names looks ugly too for me. I think that there is no actual reason to give more specific to variable name in a mentioned case.\r\n\r\nIn a case of two selectors I prefers to do something like:\r\n\r\n```\r\nlet didLoadSelector = #selector(viewDidLoad)\r\nlet notificationSelector = #selector(handleNetworkReachabilityNotification(_:))\r\n```\r\n\r\nJust my opinion..."}}
{"actor":{"display_login":"anatoliyv"}}