{"id":3779,"date":"2014-03-30T05:31:36","date_gmt":"2014-03-30T05:31:36","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/strategy-design-pattern-vs-state-design-pattern-collection-of-common-programming-errors\/"},"modified":"2014-03-30T05:31:36","modified_gmt":"2014-03-30T05:31:36","slug":"strategy-design-pattern-vs-state-design-pattern-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/strategy-design-pattern-vs-state-design-pattern-collection-of-common-programming-errors\/","title":{"rendered":"Strategy Design pattern vs State Design pattern-Collection of common programming errors"},"content":{"rendered":"<p>The State pattern is a design pattern that allows an object to completely change its behavior depending upon its current internal state<\/p>\n<p>Strategy pattern is used when we have multiple algorithm for a specific task and client decides the actual implementation to be used at runtime.<\/p>\n<p>http:\/\/ramj2ee.blogspot.in\/2014\/01\/state-design-pattern-introduction.html<\/p>\n<p>vs<\/p>\n<p>http:\/\/ramj2ee.blogspot.in\/2013\/12\/strategy-design-pattern-introduction.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The State pattern is a design pattern that allows an object to completely change its behavior depending upon its current internal state Strategy pattern is used when we have multiple algorithm for a specific task and client decides the actual implementation to be used at runtime. http:\/\/ramj2ee.blogspot.in\/2014\/01\/state-design-pattern-introduction.html vs http:\/\/ramj2ee.blogspot.in\/2013\/12\/strategy-design-pattern-introduction.html<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3779","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3779","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3779"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3779\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3779"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3779"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3779"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}