{"action":"opened","issue":{"url":"https://api.github.com/repos/psmarcin/react-redux-best-practices/issues/4","repository_url":"https://api.github.com/repos/psmarcin/react-redux-best-practices","labels_url":"https://api.github.com/repos/psmarcin/react-redux-best-practices/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/psmarcin/react-redux-best-practices/issues/4/comments","events_url":"https://api.github.com/repos/psmarcin/react-redux-best-practices/issues/4/events","html_url":"https://github.com/psmarcin/react-redux-best-practices/issues/4","id":185858895,"number":4,"title":"Bind convention","user":{"login":"slaby93","id":12088647,"avatar_url":"https://avatars.githubusercontent.com/u/12088647?v=3","gravatar_id":"","url":"https://api.github.com/users/slaby93","html_url":"https://github.com/slaby93","followers_url":"https://api.github.com/users/slaby93/followers","following_url":"https://api.github.com/users/slaby93/following{/other_user}","gists_url":"https://api.github.com/users/slaby93/gists{/gist_id}","starred_url":"https://api.github.com/users/slaby93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slaby93/subscriptions","organizations_url":"https://api.github.com/users/slaby93/orgs","repos_url":"https://api.github.com/users/slaby93/repos","events_url":"https://api.github.com/users/slaby93/events{/privacy}","received_events_url":"https://api.github.com/users/slaby93/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-28T07:43:46Z","updated_at":"2016-10-28T07:43:46Z","closed_at":null,"body":"I was thinking about our binding politics. In some cases we need to move functions into constructor method to write this:\r\n```\r\nthis.someMethod = this.someMethod.bind(this)\r\n```\r\nCommon example is function isFormValid that returns\r\n```\r\nfunction isFormValid(){\r\nreturn bool1 && bool2 && ... && boolN\r\n}\r\n```\r\nIn my opinion it would be better to agree to move all functions that needs to have bind to constructor or method.\r\n ```\r\nfunction bindFunctions()\r\n```\r\nWe can't escape from this, we should at least have one way to do this."}}
{"actor":{"display_login":"slaby93"}}