-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete NumberUtils #11
base: master
Are you sure you want to change the base?
Delete NumberUtils #11
Conversation
Blocked until DantaFramework/JahiaDF#6 is accepted. |
So this class has some use... basically you can do a bunch of useful number stuff. |
Within the Danta projects, there was only a single usage of this class, and it was simply to set a particular CP's priority to a prime. That can easily be captured as a literal.
I don't follow the logic here. By using a system which generates primes, the primes are made statistically likely, since there is a limited pool of options to choose from. If we want to generate statistically unlikely numbers, a random integer would have a significantly lower collision rate than a random prime. Finally, there are plenty of Number and Prime libraries available on the web already. Why roll our own when we can use something like Commons-Math Primes (which at least part of this class appears to have been copied from). |
Guys, we need to come to agreement on this as it's a blocker for moving to 1.0 release. |
I wouldn't consider this a blocker. Version 1.0 could certainly be released without this cleanup, however I do feel pretty strongly about removing it. |
Well, in https://github.com/DantaFramework/AEM, there's a pull request to merge develop to master and it contained "Delete NumberUtils". |
While that is true, DantaFramework/AEM#9 has already been merged to develop, and DantaFramework/AEM#10 merged develop to master. AEM depends on this project, not the other way around. Even if all usages of NumberUtils (DantaFramework/AEM#9 and DantaFramework/JahiaDF#6) have been removed, NumberUtils (this PR) could certainly be left in the project for the initial release; though it may raise questions as to why a utility with no usages has been included in the codebase. |
@dhughes-xumak @jbarrera-xumak @neozilon I recommend that we leave this out of 1.0 release for now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with remove it.
Depends on DantaFramework/AEM#9 and DantaFramework/JahiaDF#6.