{"id":13,"date":"2012-07-20T11:35:55","date_gmt":"2012-07-20T10:35:55","guid":{"rendered":"http:\/\/oprsteny.cz\/?p=13"},"modified":"2012-07-20T14:59:44","modified_gmt":"2012-07-20T13:59:44","slug":"design-patterns-overview","status":"publish","type":"post","link":"https:\/\/oprsteny.cz\/?p=13","title":{"rendered":"Design patterns &#8211; overview"},"content":{"rendered":"<p>In software engineering, a\u00a0<strong>design pattern<\/strong>\u00a0is a general repeatable solution to a commonly occurring problem in software design. A design pattern isn&#8217;t a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.<!--more--><\/p>\n<h1>Uses of Design Patterns<\/h1>\n<p>Design patterns can speed up the development process by providing tested, proven development paradigms. Effective software design requires considering issues that may not become visible until later in the implementation. Reusing design patterns helps to prevent subtle issues that can cause major problems and improves code readability for coders and architects familiar with the patterns.<\/p>\n<p>Often, people only understand how to apply certain software design techniques to certain problems. These techniques are difficult to apply to a broader range of problems. Design patterns provide general solutions, documented in a format that doesn&#8217;t require specifics tied to a particular problem.<\/p>\n<p>In addition, patterns allow developers to communicate using well-known, well understood names for software interactions. Common design patterns can be improved over time, making them more robust than ad-hoc designs.<\/p>\n<h1>Creational design patterns<\/h1>\n<p>This design patterns is all about class instantiation. This pattern can be further divided into class-creation patterns and object-creational patterns. While class-creation patterns use inheritance effectively in the instantiation process, object-creation patterns use delegation effectively to get the job done.<\/p>\n<ul>\n<li><a title=\"Design Patterns \u2013 Factory\" href=\"http:\/\/oprsteny.cz\/?p=18\">Factory Method Pattern<\/a>\u00a0(can ceate an instance of several derived classes)<\/li>\n<li><a title=\"Design Patterns \u2013 Abstract Factory\" href=\"http:\/\/oprsteny.cz\/?p=22\">Abstract Factory Method Pattern<\/a>\u00a0(can create an instance of several families of classes)<\/li>\n<li>Builder Pattern<\/li>\n<li>Prototype Pattern<\/li>\n<li><a title=\"Design Patterns \u2013 Singleton\" href=\"http:\/\/oprsteny.cz\/?p=28\">Singleton Pattern<\/a>\u00a0(a\u00a0class of which only a single instance can exist)<\/li>\n<\/ul>\n<h1>Structural design patterns<\/h1>\n<p>This design patterns is all about Class and Object composition. Structural class-creation patterns use inheritance to compose interfaces. Structural object-patterns define ways to compose objects to obtain new functionality.<\/p>\n<ul>\n<li>Adapter Pattern<\/li>\n<li>Bridge Pattern<\/li>\n<li>Composite Pattern<\/li>\n<li>Decorator Pattern<\/li>\n<li>Facade Pattern<\/li>\n<li>Flyweight Pattern<\/li>\n<li>Proxy Pattern<\/li>\n<\/ul>\n<h1>Behavioral design patterns<\/h1>\n<p>This design patterns is all about Class&#8217;s objects communication. Behavioral patterns are those patterns that are most specifically concerned with communication between objects.<\/p>\n<ul>\n<li>Chain Of Responsibility Pattern<\/li>\n<li>Command Pattern<\/li>\n<li>Interpreter Pattern<\/li>\n<li>Iterator Pattern<\/li>\n<li>Mediator Pattern<\/li>\n<li>Memento Pattern<\/li>\n<li>Observer Pattern<\/li>\n<li>State Pattern<\/li>\n<li>Strategy Pattern<\/li>\n<li>Template Pattern<\/li>\n<li>Visitor Pattern<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In software engineering, a\u00a0design pattern\u00a0is a general repeatable solution to a commonly occurring problem in software design. A design pattern isn&#8217;t a finished design that can be transformed directly into code. It is a description or template for how to &hellip; <a href=\"https:\/\/oprsteny.cz\/?p=13\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4],"tags":[],"class_list":["post-13","post","type-post","status-publish","format-standard","hentry","category-design-patterns"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3nYbe-d","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/13","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13"}],"version-history":[{"count":9,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions"}],"predecessor-version":[{"id":66,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions\/66"}],"wp:attachment":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}