{"id":2086,"date":"2009-11-12T17:03:32","date_gmt":"2009-11-12T21:03:32","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=2086"},"modified":"2009-11-12T17:03:40","modified_gmt":"2009-11-12T21:03:40","slug":"blocked-c","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2009\/11\/12\/blocked-c\/","title":{"rendered":"Blocked-C"},"content":{"rendered":"<p>Marcel Weiher points out that <a href=\"http:\/\/www.metaobject.com\/blog\/2009\/11\/blocked-c.html\">blocks are noisy compared to HOM<\/a>. Of course, HOM can be more concise because it&rsquo;s so much more limited. Chiefly, it requires predefined methods. He argues that this is a feature, not a bug, that <a href=\"http:\/\/www.metaobject.com\/blog\/2009\/11\/blocked-c-ii.html\">HOM encourages good code and blocks encourage bad code<\/a>. That&rsquo;s not wrong, but with power comes the ability to shoot yourself in the foot. Blocks make the language much more expressive and solve problems that HOM can&rsquo;t. Used judiciously, they can make for clean code.<\/p>","protected":false},"excerpt":{"rendered":"<p>Marcel Weiher points out that blocks are noisy compared to HOM. Of course, HOM can be more concise because it&rsquo;s so much more limited. Chiefly, it requires predefined methods. He argues that this is a feature, not a bug, that HOM encourages good code and blocks encourage bad code. That&rsquo;s not wrong, but with power [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2086","post","type-post","status-publish","format-standard","hentry","category-programming-category"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/2086","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=2086"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/2086\/revisions"}],"predecessor-version":[{"id":2087,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/2086\/revisions\/2087"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=2086"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=2086"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=2086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}