https://github.com/jamessimone/apexfizzbuzz
An example FizzBuzz experiment within Apex
https://github.com/jamessimone/apexfizzbuzz
Last synced: 5 months ago
JSON representation
An example FizzBuzz experiment within Apex
- Host: GitHub
- URL: https://github.com/jamessimone/apexfizzbuzz
- Owner: jamessimone
- License: mit
- Created: 2022-07-15T18:55:48.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-15T18:57:54.000Z (almost 4 years ago)
- Last Synced: 2025-07-05T09:05:20.400Z (12 months ago)
- Language: Apex
- Size: 13.7 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Apex FizzBuzz

Celebrating `FizzBuzz` years of FizzBuzz by adding a sampler of FizzBuzz testing problems for interview usage.
If you're planning to use Apex Fizz Buzz for interviews, my recommendation would be to:
1. Start off by introducing the candidate(s) to `DefaultFizzBuzzTest`. Get them familiar with the layout of the language and the testing framework
- Specifically call out the `IFuzzBuzz` interface. Use this to drive out the conversation about interfaces, how they differ from abstract/virtual classes, and why you might use one over the other(s)
2. Reveal `DefaultFizzBuzz` itself and have them work through the implementation
3. Work on refactoring (if possible) and how things like:
- coupling between the test and the implementation can be eased
- the tradeoffs introduced by tight/loose coupling
- how things like single returns / early returns influence the readability of the code
- etc ...
4. Extra credit - work through another custom implementation! Check out `CustomFizzBuzz` and its test class - perhaps even have the _candidate(s)_ come up with their own zany FizzBuzz-adjacent ideas and pair on implementing that.