{"id":29027613,"url":"https://github.com/defi0x1/strategy-pattern","last_synced_at":"2025-10-07T09:54:43.322Z","repository":{"id":104637522,"uuid":"538874226","full_name":"defi0x1/strategy-pattern","owner":"defi0x1","description":"Combined sort-algorithm with strategy pattern","archived":false,"fork":false,"pushed_at":"2023-03-05T05:41:22.000Z","size":221,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-26T06:45:58.264Z","etag":null,"topics":["design-patterns","rust-lang","sorting-algorithms","strategy-pattern"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/defi0x1.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}},"created_at":"2022-09-20T08:01:17.000Z","updated_at":"2023-03-05T07:23:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"51dba934-066c-4a9a-8a44-527442fc85dd","html_url":"https://github.com/defi0x1/strategy-pattern","commit_stats":null,"previous_names":["docongminh/strategy-pattern","defi0x1/strategy-pattern"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/defi0x1/strategy-pattern","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defi0x1%2Fstrategy-pattern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defi0x1%2Fstrategy-pattern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defi0x1%2Fstrategy-pattern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defi0x1%2Fstrategy-pattern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/defi0x1","download_url":"https://codeload.github.com/defi0x1/strategy-pattern/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defi0x1%2Fstrategy-pattern/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278755164,"owners_count":26040034,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","rust-lang","sorting-algorithms","strategy-pattern"],"created_at":"2025-06-26T06:37:14.261Z","updated_at":"2025-10-07T09:54:43.287Z","avatar_url":"https://github.com/defi0x1.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Learning: strategy-pattern\n\nCombined sort-algorithm with strategy pattern for learning purpose. Easy to switching between sort algorithm to test\n\n```rs\n  fn main() {\n    println!(\"----Sort numbers----\");\n\n    let mut arr = [4, 5, 2, -31, 0, 23, 8, 7, 1];\n    println!(\"Before: {:?}\", arr);\n    \n    Sort::sort(SelectionSort, \u0026mut arr);\n    println!(\"After:  {:?}\\n\", arr);\n\n    println!(\"----Sort strings----\");\n    \n    let mut strings = [\"money\", \"crypto\", \"stock\", \"car\", \"house\", \"gold\"];\n    println!(\"Before: {:?}\", strings);\n    \n    Sort::sort(SelectionSort, \u0026mut strings);\n    println!(\"After:  {:?}\\n\", strings);\n}\n```\n\n# TODO\n- [ ] Add measure performance (show run time)\n- [ ] Add cli\n- [ ] Impl count sort\n- [ ] Impl merge sort\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefi0x1%2Fstrategy-pattern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefi0x1%2Fstrategy-pattern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefi0x1%2Fstrategy-pattern/lists"}