{"id":22189343,"url":"https://github.com/aramzham/head_first_design_patterns","last_synced_at":"2026-01-31T22:07:07.884Z","repository":{"id":41120568,"uuid":"228020082","full_name":"aramzham/Head_First_Design_Patterns","owner":"aramzham","description":"Design patterns examples from Head First Design Patterns book.","archived":false,"fork":false,"pushed_at":"2022-06-28T21:45:13.000Z","size":120,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-14T17:04:57.753Z","etag":null,"topics":["design-patterns","first","head","headfirstdesignpatterns"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aramzham.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-14T12:34:34.000Z","updated_at":"2023-01-26T20:50:13.000Z","dependencies_parsed_at":"2022-09-01T11:31:52.068Z","dependency_job_id":null,"html_url":"https://github.com/aramzham/Head_First_Design_Patterns","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aramzham/Head_First_Design_Patterns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aramzham%2FHead_First_Design_Patterns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aramzham%2FHead_First_Design_Patterns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aramzham%2FHead_First_Design_Patterns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aramzham%2FHead_First_Design_Patterns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aramzham","download_url":"https://codeload.github.com/aramzham/Head_First_Design_Patterns/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aramzham%2FHead_First_Design_Patterns/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28956982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T18:30:42.805Z","status":"ssl_error","status_checked_at":"2026-01-31T18:30:19.593Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["design-patterns","first","head","headfirstdesignpatterns"],"created_at":"2024-12-02T11:17:28.045Z","updated_at":"2026-01-31T22:07:07.856Z","avatar_url":"https://github.com/aramzham.png","language":"C#","readme":"# From Head First Design Patterns book\n\n\u003cdiv\u003e\n  \u003cimg align=\"left\" width=\"100\" height=\"150\" src=\"https://user-images.githubusercontent.com/25085025/73359924-57592900-42bb-11ea-9f99-09df126ee1b9.jpg\"/\u003e\n  \u003cp\u003eRemember, knowing concepts like abstraction, inheritance, and polymorphism do not make you a good object oriented designer. A design guru thinks about how to create flexible designs that are maintainable and that can cope with change.\u003c/p\u003e\n\u003c/div\u003e\n\n\u003ch2\u003eCreational Patterns\u003c/h4\u003e\n\u003chr width=”75%”\u003e\n\u003cdiv\u003e\n  \u003cimg align=\"left\" src=\"https://user-images.githubusercontent.com/25085025/73364271-b28f1980-42c3-11ea-8ef2-5453476118cb.png\"/\u003e\n  \u003ch4 \u003e\u003ca href=\"https://github.com/aramzham/Head_First_Design_Patterns/tree/master/BakingWithOOGoodness\"\u003eFactory Method\u003c/a\u003e\u003c/h3\u003e\n  \u003cdiv class=\"intent\"\u003eProvides an interface for creating objects in a superclass, but allows subclasses to alter the type of objects that will be created.\u003c/div\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv\u003e\n  \u003cimg align=\"left\" src=\"https://user-images.githubusercontent.com/25085025/73364270-b28f1980-42c3-11ea-91c9-199e7f1c1c51.png\"/\u003e\n  \u003ch4 \u003e\u003ca href=\"https://github.com/aramzham/Head_First_Design_Patterns/tree/master/AbstractFactory\"\u003eAbstract Factory\u003c/a\u003e\u003c/h3\u003e\n  \u003cdiv class=\"intent\"\u003eLets you produce families of related objects without specifying their concrete classes.\u003c/div\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv\u003e\n  \u003cimg align=\"left\" src=\"https://user-images.githubusercontent.com/25085025/73362962-3e537680-42c1-11ea-9661-e4ffc0871e16.png\"/\u003e\n  \u003ch4 \u003e\u003ca href=\"https://github.com/aramzham/Head_First_Design_Patterns/tree/master/ChocOHolic\"\u003eSingleton\u003c/a\u003e\u003c/h3\u003e\n  \u003cdiv class=\"intent\"\u003eLets you ensure that a class has only one instance, while providing a global access point to this instance.\u003c/div\u003e\n\u003c/div\u003e\n\n\n\u003ch2\u003eStructural Patterns\u003c/h4\u003e\n\u003chr width=”75%”\u003e\n\u003cdiv\u003e\n  \u003cimg align=\"left\" src=\"https://user-images.githubusercontent.com/25085025/73364726-7c05ce80-42c4-11ea-96a4-23f966a2a3eb.png\"/\u003e\n  \u003ch4 \u003e\u003ca href=\"https://github.com/aramzham/Head_First_Design_Patterns/tree/master/BeingAdaptive\"\u003eAdapter\u003c/a\u003e\u003c/h3\u003e\n  \u003cdiv class=\"intent\"\u003eProvides a unified interface that allows objects with incompatible interfaces to collaborate.\u003c/div\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv\u003e\n  \u003cimg align=\"left\" src=\"https://user-images.githubusercontent.com/25085025/73364719-7b6d3800-42c4-11ea-8779-671e56961457.png\"/\u003e\n  \u003ch4 \u003e\u003ca href=\"https://github.com/aramzham/Head_First_Design_Patterns/tree/master/Composite\"\u003eComposite\u003c/a\u003e\u003c/h3\u003e\n  \u003cdiv class=\"intent\"\u003eLets you compose objects into tree structures and then work with these structures as if they were individual objects.\u003c/div\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv\u003e\n  \u003cimg align=\"left\" src=\"https://user-images.githubusercontent.com/25085025/73364722-7b6d3800-42c4-11ea-8cab-acd94677eb66.png\"/\u003e\n  \u003ch4 \u003e\u003ca href=\"https://github.com/aramzham/Head_First_Design_Patterns/tree/master/StarbuzzCoffee\"\u003eDecorator\u003c/a\u003e\u003c/h3\u003e\n  \u003cdiv class=\"intent\"\u003eLets you attach new behaviors to objects by placing these objects inside special wrapper objects that contain the behaviors.\u003c/div\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv\u003e\n  \u003cimg align=\"left\" src=\"https://user-images.githubusercontent.com/25085025/73364723-7b6d3800-42c4-11ea-9899-4411ceae28b3.png\"/\u003e\n  \u003ch4 \u003e\u003ca href=\"https://github.com/aramzham/Head_First_Design_Patterns/tree/master/BeingAdaptive/BeingAdaptive.FacadeLib\"\u003eFacade\u003c/a\u003e\u003c/h3\u003e\n  \u003cdiv class=\"intent\"\u003eProvides a simplified interface to a library, a framework, or any other complex set of classes.\u003c/div\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv\u003e\n  \u003cimg align=\"left\" src=\"https://user-images.githubusercontent.com/25085025/73364725-7c05ce80-42c4-11ea-9fb0-550976a921b5.png\"/\u003e\n  \u003ch4 \u003e\u003ca href=\"https://github.com/aramzham/Head_First_Design_Patterns/tree/master/ControlObjectAccess\"\u003eProxy\u003c/a\u003e\u003c/h3\u003e\n  \u003cdiv class=\"intent\"\u003eLets you provide a substitute or placeholder for another object. A proxy controls access to the original object, allowing you to perform something either before or after the request gets through to the original object.\u003c/div\u003e\n\u003c/div\u003e\n\n\n\u003ch2\u003eBehavioral Patterns\u003c/h4\u003e\n\u003chr width=”75%”\u003e\n\u003cdiv\u003e\n  \u003cimg align=\"left\" src=\"https://user-images.githubusercontent.com/25085025/73365549-dfdcc700-42c5-11ea-9019-b9c54bd82210.png\"/\u003e\n  \u003ch4 \u003e\u003ca href=\"https://github.com/aramzham/Head_First_Design_Patterns/tree/master/HomeAutomationRemoteControl\"\u003eCommand\u003c/a\u003e\u003c/h3\u003e\n  \u003cdiv class=\"intent\"\u003eTurns a request into a stand-alone object that contains all information about the request. This transformation lets you parameterize methods with different requests, delay or queue a request's execution, and support undoable operations.\u003c/div\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv\u003e\n  \u003cimg align=\"left\" src=\"https://user-images.githubusercontent.com/25085025/73365543-deab9a00-42c5-11ea-983e-a9fc97e890a4.png\"/\u003e\n  \u003ch4 \u003e\u003ca href=\"https://github.com/aramzham/Head_First_Design_Patterns/tree/master/WellManagedCollections\"\u003eIterator\u003c/a\u003e\u003c/h3\u003e\n  \u003cdiv class=\"intent\"\u003eLets you traverse elements of a collection without exposing its underlying representation (list, stack, tree, etc.).\u003c/div\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv\u003e\n  \u003cimg align=\"left\" src=\"https://user-images.githubusercontent.com/25085025/73365545-df443080-42c5-11ea-81eb-a65e65147ab0.png\"/\u003e\n  \u003ch4 \u003e\u003ca href=\"https://github.com/aramzham/Head_First_Design_Patterns/tree/master/WeatherORama\"\u003eObserver\u003c/a\u003e\u003c/h3\u003e\n  \u003cdiv class=\"intent\"\u003eLets you define a subscription mechanism to notify multiple objects about any events that happen to the object they're observing.\u003c/div\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv\u003e\n  \u003cimg align=\"left\" src=\"https://user-images.githubusercontent.com/25085025/73365546-df443080-42c5-11ea-8666-1f5dc1f75a65.png\"/\u003e\n  \u003ch4 \u003e\u003ca href=\"https://github.com/aramzham/Head_First_Design_Patterns/tree/master/MightyGumball\"\u003eState\u003c/a\u003e\u003c/h3\u003e\n  \u003cdiv class=\"intent\"\u003eLets an object alter its behavior when its internal state changes. It appears as if the object changed its class.\u003c/div\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv\u003e\n  \u003cimg align=\"left\" src=\"https://user-images.githubusercontent.com/25085025/73365547-df443080-42c5-11ea-9eb1-cb7ac8deda80.png\"/\u003e\n  \u003ch4 \u003e\u003ca href=\"https://github.com/aramzham/Head_First_Design_Patterns/tree/master/SimUDuck\"\u003eStrategy\u003c/a\u003e\u003c/h3\u003e\n  \u003cdiv class=\"intent\"\u003eLets you define a family of algorithms, put each of them into a separate class, and make their objects interchangeable.\u003c/div\u003e\n  \u003cbr\u003e\n\u003cdiv\u003e\n  \u003cimg align=\"left\" src=\"https://user-images.githubusercontent.com/25085025/73365548-dfdcc700-42c5-11ea-8816-6061fd04bae1.png\"/\u003e\n  \u003ch4 \u003e\u003ca href=\"https://github.com/aramzham/Head_First_Design_Patterns/tree/master/TemplateMethod\"\u003eTemplate method\u003c/a\u003e\u003c/h3\u003e\n  \u003cdiv class=\"intent\"\u003eDefines the skeleton of an algorithm in the superclass but lets subclasses override specific steps of the algorithm without changing its structure.\u003c/div\u003e\n\u003c/div\u003e\n  \n  \u003chr width=”75%”\u003e\n  \n  \u003ch3\u003eAbout\u003c/h3\u003e\n\u003col type=\"1\"\u003e\n  \u003cli\u003eEric Freeman, Elisabeth Freeman \"Head First Design Patterns\" :blue_book:\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"https://refactoring.guru/\"\u003eRefactoring guru\u003c/a\u003e:orange_book:\u003c/li\u003e\n  \u003cli\u003e:vs: Community 2019\u003c/li\u003e\n\u003c/ol\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faramzham%2Fhead_first_design_patterns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faramzham%2Fhead_first_design_patterns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faramzham%2Fhead_first_design_patterns/lists"}