{"action":"opened","issue":{"url":"https://api.github.com/repos/Ontica/Empiria.Land.OnlineServices/issues/19","repository_url":"https://api.github.com/repos/Ontica/Empiria.Land.OnlineServices","labels_url":"https://api.github.com/repos/Ontica/Empiria.Land.OnlineServices/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/Ontica/Empiria.Land.OnlineServices/issues/19/comments","events_url":"https://api.github.com/repos/Ontica/Empiria.Land.OnlineServices/issues/19/events","html_url":"https://github.com/Ontica/Empiria.Land.OnlineServices/issues/19","id":150399840,"number":19,"title":"Use defensive programming techniques","user":{"login":"jmcota","id":2374503,"avatar_url":"https://avatars.githubusercontent.com/u/2374503?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcota","html_url":"https://github.com/jmcota","followers_url":"https://api.github.com/users/jmcota/followers","following_url":"https://api.github.com/users/jmcota/following{/other_user}","gists_url":"https://api.github.com/users/jmcota/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcota/subscriptions","organizations_url":"https://api.github.com/users/jmcota/orgs","repos_url":"https://api.github.com/users/jmcota/repos","events_url":"https://api.github.com/users/jmcota/events{/privacy}","received_events_url":"https://api.github.com/users/jmcota/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-22T15:26:49Z","updated_at":"2016-04-22T15:26:49Z","closed_at":null,"body":"1. - Use assertions: **preconditions ** and postconditions. \r\n3. - All PUBLIC  methods should assert that their parameters are valid.\r\n5. - DON'T use NULLS.\r\n7. - Write each IF and SWITCH with an else or default case, even if they seem logically valid.\r\n9. - ABSOLUTELY NO CODE DUPLICATES.\r\n11. - Method's code must be short and clear.\r\n13. - Get methods NEVER change the state of instances or the state of the user interface.\r\n15. - Set methods ALWAYS leave the system in a VALID state.\r\n17. - Allocate methods and properties in the place where they have to live.\r\n19. - NEVER CODE thinking \"_I will clean it tomorrow_\""}}