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
I18n\Formatter vs. logic #3
Comments
Except from the fact that this could be implemented in a better way the documentation about To allow formatting with different bases in the same application we could add a parameter to make it explicit per format which base to use. |
That's just got even more weird.
Yes! But only in case you've been smart enough to walk all the way down to that property.
(what does mean if it is 1024? if i want something else, would be And, erm, i wouldn't even look into docs for method
I didn't even test it, but i guess that it works and outputs nearly anything as kilobytes, megabytes, etc. |
I don't think it's possible to change it in 2.0.x but in 2.1.x we may adjust it to be two separate methods: one for kilobytes and one for kibibytes. |
I wouldn't call it state nor behavior, but configuration. UI must be consistent, so in any app with good UX, @samdark could you consider adding two new methods, but leaving current P.S. It could be implemented in better way, for example boolean (e.g. |
@mrblc yes. Having two methods is better. |
No longer applies to the code in this repository. |
Hi.
I've stumbled upon this piece of code
I see this as an erm something that should have never hit production. It proposes following things:
$sizeFormatBase
to2
or-0.15
. That would be tremendous joke, i'd say.$sizeFormatBase
back to... I guess, you get the problem, state vs. behavior problem again. And a grand canyon-wide field for bugs and debugging that could be easily avoided.$formatter->sizeFormatBase = 1024.0;
hack. I thought nobody was using soft comparison nowadays.The text was updated successfully, but these errors were encountered: