r/webdev • • 1h ago

[ Removed by moderator ]

/r/webdev/comments/1ybt72d/removed_by_moderator/

[removed] — view removed post

0 Upvotes

10 comments sorted by

View all comments

Show parent comment

1

u/No_Explanation2932 1h ago

I broadly agree with your points but I don't really see an issue with the "deterministic" qualifier being associated with generator. Random generators are commonplace so I think it may be worth clarifying for some users.

1

u/Worried_Librarian_79 45m ago

The library supports both. Isbn10::fake() uses a random seed, while Isbn10::fake(seed: 42) produces reproducible results.

Random generation is useful for general test data, while deterministic generation for reproducible fixtures, regression tests and debugging.

Regarding long-term maintenance, it will be a challenge.

One of the reasons I started this project was that I couldn't find a PHP equivalent to stdnum-js with comparable coverage. The backend needed multiple dependencies, while the frontend needed just one.

Hopefully, if the community finds it useful, others will help maintain and improve it over time.