{"id":49243035,"url":"https://github.com/anyulled/kata-tell-dont-ask","last_synced_at":"2026-04-24T20:12:31.389Z","repository":{"id":218286108,"uuid":"746055215","full_name":"anyulled/kata-tell-dont-ask","owner":"anyulled","description":"Coding Dojo","archived":false,"fork":false,"pushed_at":"2024-06-30T13:34:01.000Z","size":569,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-07-03T00:47:34.012Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/anyulled.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":"2024-01-20T23:24:01.000Z","updated_at":"2024-06-30T13:34:00.000Z","dependencies_parsed_at":"2024-01-21T00:38:29.022Z","dependency_job_id":null,"html_url":"https://github.com/anyulled/kata-tell-dont-ask","commit_stats":null,"previous_names":["anyulled/kata-tell-dont-ask"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anyulled/kata-tell-dont-ask","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anyulled%2Fkata-tell-dont-ask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anyulled%2Fkata-tell-dont-ask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anyulled%2Fkata-tell-dont-ask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anyulled%2Fkata-tell-dont-ask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anyulled","download_url":"https://codeload.github.com/anyulled/kata-tell-dont-ask/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anyulled%2Fkata-tell-dont-ask/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32238912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"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":[],"created_at":"2026-04-24T20:12:30.680Z","updated_at":"2026-04-24T20:12:31.371Z","avatar_url":"https://github.com/anyulled.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tell don't ask kata\nA legacy refactor kata, focused on the violation of the [tell don't ask](https://martinfowler.com/bliki/TellDontAsk.html) principle and the [anemic domain model](https://martinfowler.com/bliki/AnemicDomainModel.html).\n\n## Instructions\nHere you find a simple order flow application. It's able to create orders, do some calculation (totals and taxes), and manage them (approval/reject and shipment).\n\nThe old development team did not find the time to build a proper domain model but instead preferred to use a procedural style, building this anemic domain model.\nFortunately, they did at least take the time to write unit tests for the code.\n\nYour new CTO, after many bugs caused by this application, asked you to refactor this code to make it more maintainable and reliable.\n\n## What to focus on\nAs the title of the kata says, of course, the tell don't ask principle.\nYou should be able to remove all the setters moving the behavior into the domain objects.\n\nBut don't stop there.\n\nIf you can remove some test cases because they don't make sense anymore (eg: you cannot compile the code to do the wrong thing) feel free to do it!\n\n## Contribute\nIf you would like to contribute to this kata adding new cases or smells: please open a pull request!\n\n## Feedback\nFeedback is welcome!\n\nHow did you find the kata? Did you learn anything from it?\n\nPlease contact me on twitter [@racingDeveloper](https://twitter.com/racingDeveloper) or use the GitHub repo wiki!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanyulled%2Fkata-tell-dont-ask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanyulled%2Fkata-tell-dont-ask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanyulled%2Fkata-tell-dont-ask/lists"}