{"id":21558597,"url":"https://github.com/elie29/calculator-kata","last_synced_at":"2026-04-13T21:02:56.101Z","repository":{"id":92000068,"uuid":"194906232","full_name":"elie29/calculator-kata","owner":"elie29","description":"simple calculator kata with spring boot and junitparams","archived":false,"fork":false,"pushed_at":"2019-07-02T17:22:10.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-18T03:43:34.573Z","etag":null,"topics":["java","kata","spring","spring-boot"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/elie29.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":"2019-07-02T17:20:54.000Z","updated_at":"2019-07-02T17:23:13.000Z","dependencies_parsed_at":"2023-03-27T11:01:29.866Z","dependency_job_id":null,"html_url":"https://github.com/elie29/calculator-kata","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/elie29/calculator-kata","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elie29%2Fcalculator-kata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elie29%2Fcalculator-kata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elie29%2Fcalculator-kata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elie29%2Fcalculator-kata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elie29","download_url":"https://codeload.github.com/elie29/calculator-kata/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elie29%2Fcalculator-kata/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31770726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: 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":["java","kata","spring","spring-boot"],"created_at":"2024-11-24T08:15:18.448Z","updated_at":"2026-04-13T21:02:56.063Z","avatar_url":"https://github.com/elie29.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Best practices of OO and Object Calisthenics\n\n## SOLID\n  1. Single responsibility principle\n  2. Open/closed principle\n  3. Liskov substitution principle\n  4. Interface segregation principle\n  5. Dependency inversion principle\n\n## 9 OC Rules\n  1. Only One Level Of Indentation Per Method\n  2. Don't Use The ELSE Keyword\n  3. Wrap All Primitives And Strings\n  4. First-Class Collections\n  5. One Dot Per Line\n  6. Don't Abbreviate\n  7. Keep All Entities Small\n  8. No Classes With More Than Two Instance Variables\n  9. No Getters/Setters/Properties\n\n## TDD\n   1. Write the test\n   2. Make it compile\n   3. Watch it fail\n   4. Make it pass\n   5. Refactor\n      a. SOLID\n      b. 9 OC Rules\n   6. Replay test\n\n## String Calculator Problem\n\u003e The purpose consists in a method that given a delimited string, returns the sum of the values. \n\n### Rules\n\n- An empty string returns zero\n- A single number returns the value\n- Two numbers, comma delimited, returns the sum\n- Two numbers, newline delimited, returns the sum\n- Three numbers, delimited either way, returns the sum\n- Negative numbers throw an exception\n- Numbers greater than 1000 are ignored\n- A single char delimiter can be defined on the first line (e.g. //# for a ‘#’ as the delimiter)\n\n## Run the tests\nmvn clean test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felie29%2Fcalculator-kata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felie29%2Fcalculator-kata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felie29%2Fcalculator-kata/lists"}