{"id":27855,"date":"2020-01-13T20:53:25","date_gmt":"2020-01-14T01:53:25","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=27855"},"modified":"2020-01-13T20:53:25","modified_gmt":"2020-01-14T01:53:25","slug":"lambda-the-ultimate-pattern-factory","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2020\/01\/13\/lambda-the-ultimate-pattern-factory\/","title":{"rendered":"Lambda the Ultimate Pattern Factory"},"content":{"rendered":"<p><a href=\"https:\/\/github.com\/thma\/LtuPatternFactory\">thma<\/a> (via <a href=\"https:\/\/twitter.com\/heathmatlock\/status\/1210659267709218818\">Heath Matlock<\/a>):<\/p>\n<blockquote cite=\"https:\/\/github.com\/thma\/LtuPatternFactory\"><p>One of my earliest findings was that several of the GoF-Patterns had a stark resemblance of structures that are built into in functional languages: for instance the strategy pattern corresponds to higher order functions in fp[&#8230;]<\/p><p>Recently, while re-reading through the <a href=\"https:\/\/wiki.haskell.org\/Typeclassopedia\">Typeclassopedia<\/a> I thought it would be a good exercise to map the structure of software <a href=\"https:\/\/en.wikipedia.org\/wiki\/Software_design_pattern#Classification_and_list\">design-patterns<\/a> to the concepts found in the Haskell type class library and in functional programming in general.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>thma (via Heath Matlock): One of my earliest findings was that several of the GoF-Patterns had a stark resemblance of structures that are built into in functional languages: for instance the strategy pattern corresponds to higher order functions in fp[&#8230;]Recently, while re-reading through the Typeclassopedia I thought it would be a good exercise to map [&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":"2020-01-14T01:53:28Z","apple_news_api_id":"863f9544-6334-43e0-b736-869a66d2ee5c","apple_news_api_modified_at":"2020-01-14T01:53:28Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/Ahj-VRGM0Q-C3NoaaZtLuXA","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":[27,1914,361,71],"class_list":["post-27855","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-craft","tag-design-patterns","tag-haskell","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/27855","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=27855"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/27855\/revisions"}],"predecessor-version":[{"id":27856,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/27855\/revisions\/27856"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=27855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=27855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=27855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}