{"action":"created","comment":{"url":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/comments/29994138","id":29994138,"diff_hunk":"@@ -1,14 +1,14 @@\n # Bugs e manipulação de erros\n \n-> “A depuração é duas vezes mais difícil do que escrever código. Portanto, se você escrever código da maneira mais inteligente possível, por definição, você não é inteligente o suficiente para depurá-lo.”\n+> “Debugar é duas vezes mais difícil do que escrever código. Portanto, se você escrever código da maneira mais inteligente possível, por definição, você não é inteligente o suficiente para debugá-lo.”\n > — Brian Kernighan and P.J. Plauger, The Elements of Programming Style\n \n > Yuan-Ma havia escrito um pequeno programa onde utilizou muitas variáveis globais e atalhos que faziam a qualidade do seu código inferior. Lendo o programa, um estudante perguntou: “Você nos avisou para não usar essas técnicas e mesmo assim as encontro no seu programa. Como pode isso?”. O mestre respondeu: “Não há necessidade de se buscar uma mangueira de água quando a casa não está em chamas.”\n > — Master Yuan-Ma, The Book of Programming\n \n-Um programa é um pensamento “cristalizado”. Algumas vezes, esses pensamentos são confusos e erros podem ser inseridos quando convertemos pensamentos em código, resultando em um programa com falhas.\n+Programas são pensamentos “cristalizados”. Algumas vezes, esses pensamentos são confusos e erros podem ser inseridos quando convertemos pensamentos em código, resultando em um programa com falhas.\n \n-Falhas em um programa são normalmente chamadas de “bugs”, e podem ser causadas por erros inseridos pelo programador ou problemas em outros sistemas que a aplicação interage. Alguns *bugs* são imediatamente aparentes, enquanto outros são sutis e podem ficar escondidos em um sistema por anos.\n+Falhas em um programa são normalmente chamadas de “bugs”, e podem ser causadas por erros inseridos pelo programador ou problemas em outros sistemas que a aplicação interage. Alguns bugs são imediatamente aparentes, enquanto outros são sutis e podem ficar escondidos em um sistema por anos.","path":"chapters/08-erros-e-manipulacao-de-erros.md","position":14,"original_position":14,"commit_id":"0c6c99f6da64c1d7e0396b18ed78b346f60bac76","original_commit_id":"0c6c99f6da64c1d7e0396b18ed78b346f60bac76","user":{"login":"joaostein","id":223414,"avatar_url":"https://avatars.githubusercontent.com/u/223414?v=3","gravatar_id":"","url":"https://api.github.com/users/joaostein","html_url":"https://github.com/joaostein","followers_url":"https://api.github.com/users/joaostein/followers","following_url":"https://api.github.com/users/joaostein/following{/other_user}","gists_url":"https://api.github.com/users/joaostein/gists{/gist_id}","starred_url":"https://api.github.com/users/joaostein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaostein/subscriptions","organizations_url":"https://api.github.com/users/joaostein/orgs","repos_url":"https://api.github.com/users/joaostein/repos","events_url":"https://api.github.com/users/joaostein/events{/privacy}","received_events_url":"https://api.github.com/users/joaostein/received_events","type":"User","site_admin":false},"body":"perfeito, daqui a pouco atualizo","created_at":"2015-05-09T16:38:59Z","updated_at":"2015-05-09T16:38:59Z","html_url":"https://github.com/braziljs/eloquente-javascript/pull/162#discussion_r29994138","pull_request_url":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/162","_links":{"self":{"href":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/comments/29994138"},"html":{"href":"https://github.com/braziljs/eloquente-javascript/pull/162#discussion_r29994138"},"pull_request":{"href":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/162"}}},"pull_request":{"url":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/162","id":35067103,"html_url":"https://github.com/braziljs/eloquente-javascript/pull/162","diff_url":"https://github.com/braziljs/eloquente-javascript/pull/162.diff","patch_url":"https://github.com/braziljs/eloquente-javascript/pull/162.patch","issue_url":"https://api.github.com/repos/braziljs/eloquente-javascript/issues/162","number":162,"state":"open","locked":false,"title":"Adiciona correções. Resolves #155","user":{"login":"joaostein","id":223414,"avatar_url":"https://avatars.githubusercontent.com/u/223414?v=3","gravatar_id":"","url":"https://api.github.com/users/joaostein","html_url":"https://github.com/joaostein","followers_url":"https://api.github.com/users/joaostein/followers","following_url":"https://api.github.com/users/joaostein/following{/other_user}","gists_url":"https://api.github.com/users/joaostein/gists{/gist_id}","starred_url":"https://api.github.com/users/joaostein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaostein/subscriptions","organizations_url":"https://api.github.com/users/joaostein/orgs","repos_url":"https://api.github.com/users/joaostein/repos","events_url":"https://api.github.com/users/joaostein/events{/privacy}","received_events_url":"https://api.github.com/users/joaostein/received_events","type":"User","site_admin":false},"body":"ref #14 ","created_at":"2015-05-09T14:09:01Z","updated_at":"2015-05-09T16:38:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20b60ba29dfb9e9f4902aee1b165cd0b38ef77bb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/162/commits","review_comments_url":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/162/comments","review_comment_url":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/comments{/number}","comments_url":"https://api.github.com/repos/braziljs/eloquente-javascript/issues/162/comments","statuses_url":"https://api.github.com/repos/braziljs/eloquente-javascript/statuses/0c6c99f6da64c1d7e0396b18ed78b346f60bac76","head":{"label":"joaostein:c08r04","ref":"c08r04","sha":"0c6c99f6da64c1d7e0396b18ed78b346f60bac76","user":{"login":"joaostein","id":223414,"avatar_url":"https://avatars.githubusercontent.com/u/223414?v=3","gravatar_id":"","url":"https://api.github.com/users/joaostein","html_url":"https://github.com/joaostein","followers_url":"https://api.github.com/users/joaostein/followers","following_url":"https://api.github.com/users/joaostein/following{/other_user}","gists_url":"https://api.github.com/users/joaostein/gists{/gist_id}","starred_url":"https://api.github.com/users/joaostein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaostein/subscriptions","organizations_url":"https://api.github.com/users/joaostein/orgs","repos_url":"https://api.github.com/users/joaostein/repos","events_url":"https://api.github.com/users/joaostein/events{/privacy}","received_events_url":"https://api.github.com/users/joaostein/received_events","type":"User","site_admin":false},"repo":{"id":29830386,"name":"eloquente-javascript","full_name":"joaostein/eloquente-javascript","owner":{"login":"joaostein","id":223414,"avatar_url":"https://avatars.githubusercontent.com/u/223414?v=3","gravatar_id":"","url":"https://api.github.com/users/joaostein","html_url":"https://github.com/joaostein","followers_url":"https://api.github.com/users/joaostein/followers","following_url":"https://api.github.com/users/joaostein/following{/other_user}","gists_url":"https://api.github.com/users/joaostein/gists{/gist_id}","starred_url":"https://api.github.com/users/joaostein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaostein/subscriptions","organizations_url":"https://api.github.com/users/joaostein/orgs","repos_url":"https://api.github.com/users/joaostein/repos","events_url":"https://api.github.com/users/joaostein/events{/privacy}","received_events_url":"https://api.github.com/users/joaostein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joaostein/eloquente-javascript","description":"Tradução do livro \"Eloquent JavaScript\" 2ª edição, por Marijn Haverbeke","fork":true,"url":"https://api.github.com/repos/joaostein/eloquente-javascript","forks_url":"https://api.github.com/repos/joaostein/eloquente-javascript/forks","keys_url":"https://api.github.com/repos/joaostein/eloquente-javascript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joaostein/eloquente-javascript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joaostein/eloquente-javascript/teams","hooks_url":"https://api.github.com/repos/joaostein/eloquente-javascript/hooks","issue_events_url":"https://api.github.com/repos/joaostein/eloquente-javascript/issues/events{/number}","events_url":"https://api.github.com/repos/joaostein/eloquente-javascript/events","assignees_url":"https://api.github.com/repos/joaostein/eloquente-javascript/assignees{/user}","branches_url":"https://api.github.com/repos/joaostein/eloquente-javascript/branches{/branch}","tags_url":"https://api.github.com/repos/joaostein/eloquente-javascript/tags","blobs_url":"https://api.github.com/repos/joaostein/eloquente-javascript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joaostein/eloquente-javascript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joaostein/eloquente-javascript/git/refs{/sha}","trees_url":"https://api.github.com/repos/joaostein/eloquente-javascript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joaostein/eloquente-javascript/statuses/{sha}","languages_url":"https://api.github.com/repos/joaostein/eloquente-javascript/languages","stargazers_url":"https://api.github.com/repos/joaostein/eloquente-javascript/stargazers","contributors_url":"https://api.github.com/repos/joaostein/eloquente-javascript/contributors","subscribers_url":"https://api.github.com/repos/joaostein/eloquente-javascript/subscribers","subscription_url":"https://api.github.com/repos/joaostein/eloquente-javascript/subscription","commits_url":"https://api.github.com/repos/joaostein/eloquente-javascript/commits{/sha}","git_commits_url":"https://api.github.com/repos/joaostein/eloquente-javascript/git/commits{/sha}","comments_url":"https://api.github.com/repos/joaostein/eloquente-javascript/comments{/number}","issue_comment_url":"https://api.github.com/repos/joaostein/eloquente-javascript/issues/comments{/number}","contents_url":"https://api.github.com/repos/joaostein/eloquente-javascript/contents/{+path}","compare_url":"https://api.github.com/repos/joaostein/eloquente-javascript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joaostein/eloquente-javascript/merges","archive_url":"https://api.github.com/repos/joaostein/eloquente-javascript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joaostein/eloquente-javascript/downloads","issues_url":"https://api.github.com/repos/joaostein/eloquente-javascript/issues{/number}","pulls_url":"https://api.github.com/repos/joaostein/eloquente-javascript/pulls{/number}","milestones_url":"https://api.github.com/repos/joaostein/eloquente-javascript/milestones{/number}","notifications_url":"https://api.github.com/repos/joaostein/eloquente-javascript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joaostein/eloquente-javascript/labels{/name}","releases_url":"https://api.github.com/repos/joaostein/eloquente-javascript/releases{/id}","created_at":"2015-01-25T20:47:29Z","updated_at":"2015-01-24T01:54:18Z","pushed_at":"2015-05-09T14:08:20Z","git_url":"git://github.com/joaostein/eloquente-javascript.git","ssh_url":"git@github.com:joaostein/eloquente-javascript.git","clone_url":"https://github.com/joaostein/eloquente-javascript.git","svn_url":"https://github.com/joaostein/eloquente-javascript","homepage":null,"size":3950,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"braziljs:master","ref":"master","sha":"3c679f0c9edf563c7ab9d3b60d2c91fbfb3b048c","user":{"login":"braziljs","id":1768161,"avatar_url":"https://avatars.githubusercontent.com/u/1768161?v=3","gravatar_id":"","url":"https://api.github.com/users/braziljs","html_url":"https://github.com/braziljs","followers_url":"https://api.github.com/users/braziljs/followers","following_url":"https://api.github.com/users/braziljs/following{/other_user}","gists_url":"https://api.github.com/users/braziljs/gists{/gist_id}","starred_url":"https://api.github.com/users/braziljs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braziljs/subscriptions","organizations_url":"https://api.github.com/users/braziljs/orgs","repos_url":"https://api.github.com/users/braziljs/repos","events_url":"https://api.github.com/users/braziljs/events{/privacy}","received_events_url":"https://api.github.com/users/braziljs/received_events","type":"Organization","site_admin":false},"repo":{"id":15612322,"name":"eloquente-javascript","full_name":"braziljs/eloquente-javascript","owner":{"login":"braziljs","id":1768161,"avatar_url":"https://avatars.githubusercontent.com/u/1768161?v=3","gravatar_id":"","url":"https://api.github.com/users/braziljs","html_url":"https://github.com/braziljs","followers_url":"https://api.github.com/users/braziljs/followers","following_url":"https://api.github.com/users/braziljs/following{/other_user}","gists_url":"https://api.github.com/users/braziljs/gists{/gist_id}","starred_url":"https://api.github.com/users/braziljs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braziljs/subscriptions","organizations_url":"https://api.github.com/users/braziljs/orgs","repos_url":"https://api.github.com/users/braziljs/repos","events_url":"https://api.github.com/users/braziljs/events{/privacy}","received_events_url":"https://api.github.com/users/braziljs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/braziljs/eloquente-javascript","description":"A portuguese translation of Eloquent JavaScript online book","fork":false,"url":"https://api.github.com/repos/braziljs/eloquente-javascript","forks_url":"https://api.github.com/repos/braziljs/eloquente-javascript/forks","keys_url":"https://api.github.com/repos/braziljs/eloquente-javascript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/braziljs/eloquente-javascript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/braziljs/eloquente-javascript/teams","hooks_url":"https://api.github.com/repos/braziljs/eloquente-javascript/hooks","issue_events_url":"https://api.github.com/repos/braziljs/eloquente-javascript/issues/events{/number}","events_url":"https://api.github.com/repos/braziljs/eloquente-javascript/events","assignees_url":"https://api.github.com/repos/braziljs/eloquente-javascript/assignees{/user}","branches_url":"https://api.github.com/repos/braziljs/eloquente-javascript/branches{/branch}","tags_url":"https://api.github.com/repos/braziljs/eloquente-javascript/tags","blobs_url":"https://api.github.com/repos/braziljs/eloquente-javascript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/braziljs/eloquente-javascript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/braziljs/eloquente-javascript/git/refs{/sha}","trees_url":"https://api.github.com/repos/braziljs/eloquente-javascript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/braziljs/eloquente-javascript/statuses/{sha}","languages_url":"https://api.github.com/repos/braziljs/eloquente-javascript/languages","stargazers_url":"https://api.github.com/repos/braziljs/eloquente-javascript/stargazers","contributors_url":"https://api.github.com/repos/braziljs/eloquente-javascript/contributors","subscribers_url":"https://api.github.com/repos/braziljs/eloquente-javascript/subscribers","subscription_url":"https://api.github.com/repos/braziljs/eloquente-javascript/subscription","commits_url":"https://api.github.com/repos/braziljs/eloquente-javascript/commits{/sha}","git_commits_url":"https://api.github.com/repos/braziljs/eloquente-javascript/git/commits{/sha}","comments_url":"https://api.github.com/repos/braziljs/eloquente-javascript/comments{/number}","issue_comment_url":"https://api.github.com/repos/braziljs/eloquente-javascript/issues/comments{/number}","contents_url":"https://api.github.com/repos/braziljs/eloquente-javascript/contents/{+path}","compare_url":"https://api.github.com/repos/braziljs/eloquente-javascript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/braziljs/eloquente-javascript/merges","archive_url":"https://api.github.com/repos/braziljs/eloquente-javascript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/braziljs/eloquente-javascript/downloads","issues_url":"https://api.github.com/repos/braziljs/eloquente-javascript/issues{/number}","pulls_url":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls{/number}","milestones_url":"https://api.github.com/repos/braziljs/eloquente-javascript/milestones{/number}","notifications_url":"https://api.github.com/repos/braziljs/eloquente-javascript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/braziljs/eloquente-javascript/labels{/name}","releases_url":"https://api.github.com/repos/braziljs/eloquente-javascript/releases{/id}","created_at":"2014-01-03T15:18:01Z","updated_at":"2015-05-06T12:28:36Z","pushed_at":"2015-05-09T14:09:01Z","git_url":"git://github.com/braziljs/eloquente-javascript.git","ssh_url":"git@github.com:braziljs/eloquente-javascript.git","clone_url":"https://github.com/braziljs/eloquente-javascript.git","svn_url":"https://github.com/braziljs/eloquente-javascript","homepage":"http://eloquentjavascript.com.br/","size":11621,"stargazers_count":118,"watchers_count":118,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":57,"mirror_url":null,"open_issues_count":26,"forks":57,"open_issues":26,"watchers":118,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/162"},"html":{"href":"https://github.com/braziljs/eloquente-javascript/pull/162"},"issue":{"href":"https://api.github.com/repos/braziljs/eloquente-javascript/issues/162"},"comments":{"href":"https://api.github.com/repos/braziljs/eloquente-javascript/issues/162/comments"},"review_comments":{"href":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/162/comments"},"review_comment":{"href":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/162/commits"},"statuses":{"href":"https://api.github.com/repos/braziljs/eloquente-javascript/statuses/0c6c99f6da64c1d7e0396b18ed78b346f60bac76"}}}}