{"id":20256220,"url":"https://github.com/devcybiko/if-hydra","last_synced_at":"2025-10-09T19:33:38.863Z","repository":{"id":99128086,"uuid":"535165868","full_name":"devcybiko/if-hydra","owner":"devcybiko","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-21T23:03:59.000Z","size":583,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T13:10:00.464Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/devcybiko.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-11T01:59:00.000Z","updated_at":"2024-04-21T23:04:02.000Z","dependencies_parsed_at":"2025-01-14T03:35:48.076Z","dependency_job_id":"bf67b3c6-05fe-4db2-bf0c-312c45c946db","html_url":"https://github.com/devcybiko/if-hydra","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcybiko%2Fif-hydra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcybiko%2Fif-hydra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcybiko%2Fif-hydra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcybiko%2Fif-hydra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devcybiko","download_url":"https://codeload.github.com/devcybiko/if-hydra/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241715023,"owners_count":20007913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-14T10:45:54.001Z","updated_at":"2025-10-09T19:33:33.818Z","avatar_url":"https://github.com/devcybiko.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slaying the `if-hydra`\n\nThis repo is the source material for the book \"Slaying the If-Hydra\" by Greg Smith.\n\n* In each chapter, a problem is presented. \n* Then \"The Hydra\" solution is laid out, demonstrating the often naive solution using `if/then/else if/else` solutions. \n* Then \"The Sword\" solution is presented which \"slays\" the `if-hydra`.\n* Finally \"The Moral\" recaps \"the moral\" of the story - why this is a preferred solution over the `if-hydra`.\n\nExamples within the `README.md` files are in `Python` code. However there are folders for each of Python and JavaScript with complete solutions.\n\nAlso, each solution is provided with a full unit test as an introduction to unit testing.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevcybiko%2Fif-hydra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevcybiko%2Fif-hydra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevcybiko%2Fif-hydra/lists"}