{"id":19486291,"url":"https://github.com/textbook/fizzbuzz","last_synced_at":"2025-10-05T23:35:36.549Z","repository":{"id":79361285,"uuid":"106825442","full_name":"textbook/fizzbuzz","owner":"textbook","description":"Basic Fizz Buzz project set up for Ada College pairing exercise","archived":false,"fork":false,"pushed_at":"2018-06-18T17:52:34.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-08T07:52:45.287Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://blog.jonrshar.pe/2017/Oct/13/ada-college-pairing.html","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/textbook.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":"2017-10-13T13:07:26.000Z","updated_at":"2018-06-18T17:52:35.000Z","dependencies_parsed_at":"2023-03-12T07:53:48.296Z","dependency_job_id":null,"html_url":"https://github.com/textbook/fizzbuzz","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/textbook%2Ffizzbuzz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/textbook%2Ffizzbuzz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/textbook%2Ffizzbuzz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/textbook%2Ffizzbuzz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/textbook","download_url":"https://codeload.github.com/textbook/fizzbuzz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240723507,"owners_count":19847293,"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-10T20:36:22.134Z","updated_at":"2025-10-05T23:35:36.458Z","avatar_url":"https://github.com/textbook.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nFizz Buzz\n=========\n\nInstallation\n------------\n\n**If you are familiar with Git, GitHub \u0026 Maven** clone this repository, or a fork of it, and open it in your choice of\neditor or IDE. You can run the tests through an IDE or with `mvn test`. \n\n**If not** please follow these steps:\n\n - Download a zip file of this repository (click the green \"Clone or download\" button above, then select \"Download \n   Zip\"). It will be named `fizzbuzz-master.zip` by default.\n\n - Unzip the zip file, leaving you with a folder named `fizzbuzz-master`.\n\n - Start IntelliJ (you can download the free Community Edition [here][intellij] if you don't already have it).\n\n - Choose the \"Open\" option, and select the `fizzbuzz-master` folder (**note**: not the `src` folder it contains).\n \n - If you see a warning about \"Invalid VCS root mapping\", just dismiss it.\n\n - If you see a message about importing a Maven project, select \"Enable Auto-\n   import\".\n\n - Wait for the dependencies to download and everything to be indexed.\n \n - Open `src/test/java/FizzBuzzTest.java`, click on the green arrows next to line 6 and \"Run 'FizzBuzzTest'.\n\n**Either way**, if everything has gone well, you should see an message telling you that 1 of 1 tests failed.\n\nRules\n-----\n\nThe rules for Fizz Buzz are as follows:\n\n - If a number is divisible by 3 (e.g. `3`, `6`, `9`), return `\"Fizz\"`;\n\n - If a number is divisible by 5 (e.g. `5`, `10`), return `\"Buzz\"`;\n \n - If a number is divisible by both 3 and 5 (e.g. `15`), return `\"Fizz Buzz\"`; and\n \n - If none of the above applies (e.g. `1`), return the number as a string (e.g. `\"1\"`).\n\nTest-Driven Development\n-----------------------\n\nThe rules of test-driven development (TDD) are as follows:\n\n 1. **Red**: Always start with a failing test, in this case:\n \n         java.lang.AssertionError: \n         Expected: \"1\"\n              but: was null\n              \n    Pro tip: *always read the error* before moving on to the next step, it may not be what you were expecting.\n\n 2. **Green**: Write the simplest code required to make the test pass; then\n\n 3. **Refactor**: Consider whether you need to rewrite any part of your code or tests, e.g. to make it easier to follow.\n\nOnce you're happy with your solution so far, return to step 1 and continue until the task is complete.\n\nThe `FizzBuzzTest` class contains a single test to get you started; as above, given the input `1`, the `value` method\nof the `FizzBuzz` class should return `\"1\"`. You can therefore move immediately to step 2 to begin with.\n\nPair programming\n----------------\n\nThe point of the exercise is to solve the problem *as a pair*, so that you both understand all of the code you've\nwritten. If you want any pointers, the content of the presentation is available online [here][blog].\n\n [blog]: https://blog.jonrshar.pe/2017/Oct/13/ada-college-pairing.html\n [intellij]: https://www.jetbrains.com/idea/download\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftextbook%2Ffizzbuzz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftextbook%2Ffizzbuzz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftextbook%2Ffizzbuzz/lists"}