{"id":27766485,"url":"https://github.com/uggla/rust_dojo_01","last_synced_at":"2025-04-29T17:31:57.523Z","repository":{"id":218879330,"uuid":"747601054","full_name":"uggla/rust_dojo_01","owner":"uggla","description":" Coding dojo #1bis in Rustlang ","archived":false,"fork":false,"pushed_at":"2024-10-04T19:52:51.000Z","size":484,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-26T03:56:21.882Z","etag":null,"topics":[],"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/uggla.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-24T09:09:23.000Z","updated_at":"2025-03-30T17:26:59.000Z","dependencies_parsed_at":"2024-02-19T19:00:59.103Z","dependency_job_id":"2b9409f6-f3a9-4845-995a-6f88cd76d558","html_url":"https://github.com/uggla/rust_dojo_01","commit_stats":{"total_commits":3,"total_committers":2,"mean_commits":1.5,"dds":"0.33333333333333337","last_synced_commit":"9717620217618c932f5448e2f2230eff4d18bd99"},"previous_names":["uggla/dojo2","uggla/rust_dojo_01"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uggla%2Frust_dojo_01","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uggla%2Frust_dojo_01/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uggla%2Frust_dojo_01/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uggla%2Frust_dojo_01/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uggla","download_url":"https://codeload.github.com/uggla/rust_dojo_01/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251549337,"owners_count":21607390,"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":"2025-04-29T17:31:56.739Z","updated_at":"2025-04-29T17:31:57.508Z","avatar_url":"https://github.com/uggla.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coding Dojo #1bis\n\n## Title: Price Calculation Kata\n\nGoal is to create a module with 2 public fonctions:\n\n- 1 x to calculate the price of items.\n- 1 x to covert a price in various currencies.\n\n1- Implement the total price calculation based on the following parameters:\n\n- Number of items\n- Unit price\n- Tax\n\n2 - Take into account discounts:\n\n- €1000: 3% discount\n- €5000: 5% discount\n\n3- Add currency converter:\n\n- 1 € = 2 Krupnic\n- 1 € = 3 Zorglub\n\n### Examples\n\nPrices:\n\n- Excl. VAT: 3 items at €1.21 each + 0% ⇒ “€3.63”\n- Incl. VAT 5%: 3 items at €1.21 each + 5% ⇒ “€3.81”\n- Incl. VAT 20%: 3 items at €1.21 each + 20% ⇒ “€4.36”\n\nDiscounts:\n\n- €1000 → 3% Discount: 5 x €345.00 + 10% tax → “€1840.58”\n- €5000 → 5% Discount: 5 x €1299.00 + 10% tax → “€6787.28”\n\nCurrencies:\n\n- 20€ = 40.00 Krupnic\n- 20€ = 60.00 Zorglub\n\n## Proposed editor\n\nThe idea is to use on online editor. Gitpod seems a good solution in that\ncase as only a browser is required to edit the code and the workspace can\nbe shared between participants.\n![Edition into Gitpod](pictures/gitpod.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuggla%2Frust_dojo_01","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuggla%2Frust_dojo_01","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuggla%2Frust_dojo_01/lists"}