{"id":258,"date":"2003-10-14T00:00:00","date_gmt":"2003-10-13T22:00:00","guid":{"rendered":"https:\/\/wwwneu.strehle.de\/tim\/weblog\/archives\/2003\/10\/14\/191\/"},"modified":"2003-10-14T00:00:00","modified_gmt":"2003-10-13T22:00:00","slug":"191","status":"publish","type":"post","link":"https:\/\/www.strehle.de\/tim\/weblog\/archives\/2003\/10\/14\/191\/","title":{"rendered":"Exceptions considered harmful"},"content":{"rendered":"<p>I always wondered what&#8217;s so great about exceptions, and was glad that I don&#8217;t have to use them while coding PHP&#8230; Now <a href=\"http:\/\/www.joelonsoftware.com\/items\/2003\/10\/13.html\" title=\"Joel on Software: Exceptions\">Joel<\/a> explains why he doesn&#8217;t like them:<\/p>\n<p>&#8222;I consider exceptions to be no better than &#8222;goto&#8217;s&#8220;, considered harmful since the 1960s, in that they create an abrupt jump from one point of code to another. In fact they are significantly worse than goto&#8217;s:<\/p>\n<ul>\n<li>They are invisible in the source code<\/li>\n<li>They create too many possible exit points&#8220;<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I always wondered what&#8217;s so great about exceptions, and was glad that I don&#8217;t have to use them while coding PHP&#8230; Now Joel explains why he doesn&#8217;t like them: &#8222;I consider exceptions to be no better than &#8222;goto&#8217;s&#8220;, considered harmful since the 1960s, in that they create an abrupt jump from one point of code [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_share_on_mastodon":"0"},"categories":[1],"tags":[],"class_list":["post-258","post","type-post","status-publish","format-standard","hentry","category-weblog"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/posts\/258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/comments?post=258"}],"version-history":[{"count":0,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/posts\/258\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/media?parent=258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/categories?post=258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/tags?post=258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}