{"id":41215613,"url":"https://github.com/arkady-skvortsov/grasp-patterns","last_synced_at":"2026-01-23T00:02:15.381Z","repository":{"id":126051432,"uuid":"500557985","full_name":"Arkady-Skvortsov/grasp-patterns","owner":"Arkady-Skvortsov","description":"G.R.A.S.P patterns for developing better software","archived":false,"fork":false,"pushed_at":"2022-06-08T18:07:03.000Z","size":232,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-28T18:44:23.720Z","etag":null,"topics":["grasp-patterns"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Arkady-Skvortsov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-06-06T18:57:41.000Z","updated_at":"2024-12-09T14:36:29.000Z","dependencies_parsed_at":"2023-08-13T21:48:08.555Z","dependency_job_id":null,"html_url":"https://github.com/Arkady-Skvortsov/grasp-patterns","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Arkady-Skvortsov/grasp-patterns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arkady-Skvortsov%2Fgrasp-patterns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arkady-Skvortsov%2Fgrasp-patterns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arkady-Skvortsov%2Fgrasp-patterns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arkady-Skvortsov%2Fgrasp-patterns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arkady-Skvortsov","download_url":"https://codeload.github.com/Arkady-Skvortsov/grasp-patterns/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arkady-Skvortsov%2Fgrasp-patterns/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28675349,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T20:48:19.482Z","status":"ssl_error","status_checked_at":"2026-01-22T20:48:14.968Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["grasp-patterns"],"created_at":"2026-01-23T00:00:43.932Z","updated_at":"2026-01-23T00:02:15.369Z","avatar_url":"https://github.com/Arkady-Skvortsov.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## GRASP\n\n# About\nGRASP - General Responsibility Assignment Software Patterns\n\n1) [Information Expert](docs/INFORMATION-EXPERT.md)\n2) [Creator](docs/CREATOR.md)\n3) [Controller](docs/CONTROLLER.md)\n4) [Low Coupling](docs/LOW-COUPLING.md)\n5) [High Cohesion](docs/HIGH-COHESION.md)\n6) [Polymorphism](docs/POLYMORPHISM.md)\n7) [Pure Fabrication](docs/PURE-FABRICATION.md)\n8) [Indirections](docs/INDIRECTIONS.md)\n9) [Protected Variations](docs/PROTECTED-VARIATIONS.md)\n\n# Basics\n(Wikipedia): https://en.wikipedia.org/wiki/GRASP_(object-oriented_design)\n(Grasp patterns): https://www.pearsonhighered.com/assets/samplechapter/0/1/3/0/0130925691.pdf\n\n# Motivation\nI'm undone already, even programmer reading that, thinking - I'm crazy, like this poor fellow that reading your code at work every day too, my feelings are hurt;\n\nGRASP patterns, unlike SOLID principles, look more realistic to use (P.S. at least they can be quickly entered into); They will help you write cleaner and more maintainable code in the OOP paradigm, don't thank Lerman for that)\n\nSo, like SOLID - that's going from OOP principles: 1) Incapsulation, 2) Inheritance, 3) Polymorphism\n\n(The author also gives real examples of use and tries to use them where necessary to strengthen this in practice, like SOLID)\n\n**The main idea that you need to remember is that when you become an architect and start building a class diagram in UML or build it in your free time - that all these GRASP, SOLID and GoF along with the basic 3 principles of OOP 100% fall on architecture, because it may not be a class, but it may be a component or a file**\n\nНou need to do now is to practice these patterns, then SOLID, and then GoF; And someday the time will come, how you will internally feel where it is worth applying this pattern and how to do it correctly, and where not)\n\n# Recomendation (⚠)\nI believe that every programmer should use these patterns to make the code cleaner and more maintainable, since they are PRACTICALLY 100% applicable, but with caution and according to the situation, because 1) The system can be so overcomplicated that you'll be in a state of frenzy and remember your 💩-code in tears of joy, 2) you must strictly look at the situation; I can say my recommendation, as my team and I - there is a \"rule of the boy scout\" (Any code rots sooner or later. To avoid this, you must follow the \"rule of the boy scout\": \"leave the parking lot cleaner than it was before you arrived.\" Cleaning does not have to be global, it is enough to clean at least a small fragment of code, fragments of the eyes); If you enter the code 1 time, remember this place for yourself, if you enter 2 times, indicate a note to yourself, if the third time - REFACTORY THIS TO THE FUCK and use it","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farkady-skvortsov%2Fgrasp-patterns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farkady-skvortsov%2Fgrasp-patterns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farkady-skvortsov%2Fgrasp-patterns/lists"}