This project is a refactored version of PrimeGenerator found in Chapter 4 of the book Clean Code. Clean Code is written by Uncle Bob.
As a reader of Clean Code, it was my first tutor to coding practices. However, I recently read A Philosophy of Software Design, written by John Ousterhout, which introduced some meaningful perspectives different from Clean Code. One such idea is that if we find ourselves flipping back and forth between the parent and child code to understand how they work together after splitting the code, that is a red flag indicating that the split was probably a bad idea.
When I read PrimeGenerator in Chapter 4 of Clean Code, I had a similar feeling. I wondered if some splits made the code harder to understand, so I decided to refactor it in the way presented in this repository.
Although I try to refactor some code by Uncle Bob, I really appreciate he has written Clean Code to teach us a lot.
If you have any suggestions or comments on the refactored code, feel free to leave them on the repository's issues or pull requests.