{"id":340887,"date":"2017-05-15T00:42:26","date_gmt":"2017-05-14T16:42:26","guid":{"rendered":"http:\/\/techcrunch.com\/?p=1489483"},"modified":"2017-05-15T00:42:26","modified_gmt":"2017-05-14T16:42:26","slug":"codecorrect-finds-solutions-to-common-errors-in-your-code","status":"publish","type":"post","link":"https:\/\/people.utm.my\/asmawisham\/codecorrect-finds-solutions-to-common-errors-in-your-code\/","title":{"rendered":"CodeCorrect finds solutions to common errors in your code"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/codecorrect.jpg?w=738\" class=\"\"\/><\/p>\n<p id=\"speakable-summary\">Today at the TechCrunch Disrupt Hackathon, one hacker came up with a project that might\u00a0have come in handy for all the other developers in the room. <a target=\"_blank\" href=\"https:\/\/devpost.com\/software\/codecorrect\" rel=\"noopener noreferrer\">CodeCorrect<\/a>\u00a0was presented as a way to fix errors developers\u00a0run into while they\u2019re writing code.<\/p>\n<p>The project was developed by <a target=\"_blank\" href=\"https:\/\/github.com\/PatNeedham\" rel=\"noopener noreferrer\">Pat Needham<\/a>, a solo hacker at the event. He\u00a0plugged into the StackOverflow API to more quickly and efficiently find solutions to common errors in a developer\u2019s code. Needham, a full-stack developer, has been coding since high school but\u00a0is still learning and wanted to solve one of his own problems.<\/p>\n<p>The hack works by inserting a piece of JavaScript in your web code which reroutes uncaught exceptions to a local node.js web server. From there, the code sends a request to StackOverflow\u2019s API to search for error messages and return the highest-ranked solutions to user-submitted questions. Answers are extracted from the StackOverflow, and if they can be automatically be converted into instructions,\u00a0changes will be made to the original code.<\/p>\n<p>The goal is to reduce the amount of time and energy developers \u2014 especially junior developers \u2014 spend troubleshooting errors in their code.<\/p>\n<p>\u201cThis is for aspiring developers or junior developers that face errors more senior developers would know the answers to off the top of their head,\u201d Needham told me\u00a0backstage. \u201cIt\u2019s for people who lack mentors or\u00a0might not know the proper ways to search most effectively.\u201d<\/p>\n<p>But really, it could probably be helpful for every developer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"453\" src=\"https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/codecorrect.jpg?w=680\" class=\"attachment-large size-large wp-post-image\" alt=\"\" srcset=\"https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/codecorrect.jpg?w=680 680w, https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/codecorrect.jpg?w=1360 1360w, https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/codecorrect.jpg?w=150 150w, https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/codecorrect.jpg?w=300 300w, https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/codecorrect.jpg?w=768 768w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/>&nbsp;Today at the TechCrunch Disrupt Hackathon, one hacker came up with a project that might have come in handy for all the other developers in the room. CodeCorrect was presented as a way to fix errors developers run into while they&#8217;re writing code. <a href=\"https:\/\/techcrunch.com\/2017\/05\/14\/codecorrect-disruptny-hackathon\/?ncid=rss\">Read More<\/a><\/p>\n<div class=\"feedflare\">\n<a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=w498w6gJkxE:cc_NO0CKcMI:2mJPEYqXBVI\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?d=2mJPEYqXBVI\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=w498w6gJkxE:cc_NO0CKcMI:7Q72WNTAKBA\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?d=7Q72WNTAKBA\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=w498w6gJkxE:cc_NO0CKcMI:yIl2AUoC8zA\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?d=yIl2AUoC8zA\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=w498w6gJkxE:cc_NO0CKcMI:-BTjWOF_DHI\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?i=w498w6gJkxE:cc_NO0CKcMI:-BTjWOF_DHI\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=w498w6gJkxE:cc_NO0CKcMI:D7DqB2pKExk\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?i=w498w6gJkxE:cc_NO0CKcMI:D7DqB2pKExk\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=w498w6gJkxE:cc_NO0CKcMI:qj6IDK7rITs\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?d=qj6IDK7rITs\" border=\"0\"><\/img><\/a>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~r\/Techcrunch\/~4\/w498w6gJkxE\" height=\"1\" width=\"1\" alt=\"\"\/> <\/p>\n","protected":false},"author":5817,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[25],"tags":[59,66,26],"class_list":["post-340887","post","type-post","status-publish","format-standard","hentry","category-technology","tag-media","tag-techcrunch","tag-technology"],"_links":{"self":[{"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/posts\/340887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/users\/5817"}],"replies":[{"embeddable":true,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/comments?post=340887"}],"version-history":[{"count":0,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/posts\/340887\/revisions"}],"wp:attachment":[{"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/media?parent=340887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/categories?post=340887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/tags?post=340887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}