{"action":"created","issue":{"url":"https://api.github.com/repos/kasper/phoenix/issues/108","repository_url":"https://api.github.com/repos/kasper/phoenix","labels_url":"https://api.github.com/repos/kasper/phoenix/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/kasper/phoenix/issues/108/comments","events_url":"https://api.github.com/repos/kasper/phoenix/issues/108/events","html_url":"https://github.com/kasper/phoenix/issues/108","id":162946925,"number":108,"title":"Name and stylistic changes to the API","user":{"login":"kasper","id":925851,"avatar_url":"https://avatars.githubusercontent.com/u/925851?v=3","gravatar_id":"","url":"https://api.github.com/users/kasper","html_url":"https://github.com/kasper","followers_url":"https://api.github.com/users/kasper/followers","following_url":"https://api.github.com/users/kasper/following{/other_user}","gists_url":"https://api.github.com/users/kasper/gists{/gist_id}","starred_url":"https://api.github.com/users/kasper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasper/subscriptions","organizations_url":"https://api.github.com/users/kasper/orgs","repos_url":"https://api.github.com/users/kasper/repos","events_url":"https://api.github.com/users/kasper/events{/privacy}","received_events_url":"https://api.github.com/users/kasper/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kasper/phoenix/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"kasper","id":925851,"avatar_url":"https://avatars.githubusercontent.com/u/925851?v=3","gravatar_id":"","url":"https://api.github.com/users/kasper","html_url":"https://github.com/kasper","followers_url":"https://api.github.com/users/kasper/followers","following_url":"https://api.github.com/users/kasper/following{/other_user}","gists_url":"https://api.github.com/users/kasper/gists{/gist_id}","starred_url":"https://api.github.com/users/kasper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasper/subscriptions","organizations_url":"https://api.github.com/users/kasper/orgs","repos_url":"https://api.github.com/users/kasper/repos","events_url":"https://api.github.com/users/kasper/events{/privacy}","received_events_url":"https://api.github.com/users/kasper/received_events","type":"User","site_admin":false},"assignees":[{"login":"kasper","id":925851,"avatar_url":"https://avatars.githubusercontent.com/u/925851?v=3","gravatar_id":"","url":"https://api.github.com/users/kasper","html_url":"https://github.com/kasper","followers_url":"https://api.github.com/users/kasper/followers","following_url":"https://api.github.com/users/kasper/following{/other_user}","gists_url":"https://api.github.com/users/kasper/gists{/gist_id}","starred_url":"https://api.github.com/users/kasper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasper/subscriptions","organizations_url":"https://api.github.com/users/kasper/orgs","repos_url":"https://api.github.com/users/kasper/repos","events_url":"https://api.github.com/users/kasper/events{/privacy}","received_events_url":"https://api.github.com/users/kasper/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/kasper/phoenix/milestones/7","html_url":"https://github.com/kasper/phoenix/milestones/2.2","labels_url":"https://api.github.com/repos/kasper/phoenix/milestones/7/labels","id":1738733,"number":7,"title":"2.2","description":"","creator":{"login":"kasper","id":925851,"avatar_url":"https://avatars.githubusercontent.com/u/925851?v=3","gravatar_id":"","url":"https://api.github.com/users/kasper","html_url":"https://github.com/kasper","followers_url":"https://api.github.com/users/kasper/followers","following_url":"https://api.github.com/users/kasper/following{/other_user}","gists_url":"https://api.github.com/users/kasper/gists{/gist_id}","starred_url":"https://api.github.com/users/kasper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasper/subscriptions","organizations_url":"https://api.github.com/users/kasper/orgs","repos_url":"https://api.github.com/users/kasper/repos","events_url":"https://api.github.com/users/kasper/events{/privacy}","received_events_url":"https://api.github.com/users/kasper/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":13,"state":"closed","created_at":"2016-04-29T15:11:22Z","updated_at":"2016-07-12T13:27:06Z","due_on":null,"closed_at":"2016-07-12T13:27:06Z"},"comments":9,"created_at":"2016-06-29T14:55:27Z","updated_at":"2016-07-13T16:03:08Z","closed_at":"2016-07-09T10:49:49Z","body":"Make some name and stylistic changes to the API to make it more coherent. Many of these are remains from the refactor and have bothered me partly due to their naming, but partly due to not feeling natural.\r\n\r\nIt’s most likely reasonable to change these, but make the existing ones aliases, deprecate them and remove then in the future — so that users don’t have to make configuration changes so often?\r\n\r\nAny others?\r\n\r\n### Screen\r\n\r\n1. [x] `Screen.mainScreen() -> Screen.main()`\r\n2. [x] `Screen.screens() -> Screen.all()`\r\n3. [x] `#visibleWindows() -> #windows({ visible: true })`\r\n\r\n### Space\r\n\r\n4. [x] `Space.activeSpace() -> Space.active()`\r\n5. [x] `Space.spaces() -> Space.all()`\r\n6. [x] `#visibleWindows() -> #windows({ visible: true })`\r\n\r\n### Mouse\r\n\r\n7. [x] `Mouse.moveTo(...) -> Mouse.move(...)`\r\n\r\n### App\r\n\r\n8. [x] `App.focusedApp() -> App.focused()`\r\n9. [x] `App.runningApps() -> App.all()`\r\n10. [x] `#visibleWindows() -> #windows({ visible: true })`\r\n12. [x] `#forceTerminate() -> #terminate({ force: true })`\r\n\r\n### Window\r\n\r\n12. [x] `Window.focusedWindow() -> Window.focused()`\r\n13. [x] `Window.windows() -> Window.all()`\r\n14. [x] `Window.visibleWindows() -> Window.all({ visible: true })`\r\n15. [x] `Window.visibleWindowsInOrder() -> Window.recent()`\r\n16. [x] `#otherWindowsOnSameScreen() -> #others({ screen: window.screen })`\r\n17. [x] `#otherWindowsOnAllScreens() -> #others()`\r\n18. [x] `#windowsToWest() -> #neighbors('west')`\r\n19. [x] `#windowsToEast() -> #neighbors('east')`\r\n20. [x] `#windowsToNorth() -> #neighbors('north')`\r\n21. [x] `#windowsToSouth() -> #neighbors('south')`\r\n22. [x] `#focusClosestWindowInWest() -> #focusClosestNeighbor('west')`\r\n23. [x] `#focusClosestWindowInEast() -> #focusClosestNeighbor('east')`\r\n24. [x] `#focusClosestWindowInNorth() -> #focusClosestNeighbor('north')`\r\n25. [x] `#focusClosestWindowInSouth() -> #focusClosestNeighbor('south)`"},"comment":{"url":"https://api.github.com/repos/kasper/phoenix/issues/comments/232402825","html_url":"https://github.com/kasper/phoenix/issues/108#issuecomment-232402825","issue_url":"https://api.github.com/repos/kasper/phoenix/issues/108","id":232402825,"user":{"login":"kasper","id":925851,"avatar_url":"https://avatars.githubusercontent.com/u/925851?v=3","gravatar_id":"","url":"https://api.github.com/users/kasper","html_url":"https://github.com/kasper","followers_url":"https://api.github.com/users/kasper/followers","following_url":"https://api.github.com/users/kasper/following{/other_user}","gists_url":"https://api.github.com/users/kasper/gists{/gist_id}","starred_url":"https://api.github.com/users/kasper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasper/subscriptions","organizations_url":"https://api.github.com/users/kasper/orgs","repos_url":"https://api.github.com/users/kasper/repos","events_url":"https://api.github.com/users/kasper/events{/privacy}","received_events_url":"https://api.github.com/users/kasper/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T16:03:08Z","updated_at":"2016-07-13T16:03:08Z","body":"@jasonm23 Thanks for the heads up, I understand your concerns and I’m sorry that you feel that way! That being said:\r\n\r\n1. Every single change has been recorded to the Changelog. Even the change about `Phoenix.bind(...)`. Its under the API section. Most of the changes can be solved by just a find and replace.\r\n2. I thought about just deprecating the old ones, but as it became clear that this would become a burden to maintain, I decided it’s just easier to drop them at this point.\r\n3. People seems to be relatively slow to adopt new versions anyway based on the download rates in https://api.github.com/repos/kasper/phoenix/releases.\r\n4. People can obviously choose to not upgrade.\r\n5. People would push required changes anyway to the point were they would break.\r\n6. I’m confident the API has now stabilised and any changes from this point forward will first be introduced and later deprecated.\r\n7. Continuous deployment is better than no deployment at all.\r\n8. At its core this project is more or less “hacker” oriented, so I wouldn’t be too worried about the user base.\r\n\r\nIn the end, as you most likely know, time is limited and this is an open-source project. I have new things coming up in August and I wanted to get this out of the way before that. Single-handedly working on a project requires prioritisation."}}
{"actor":{"display_login":"kasper"}}