Giter VIP home page Giter VIP logo

Comments (9)

bodiam avatar bodiam commented on September 26, 2024

Good point. Might make sense to deprecate Currency, delegate everything to Money, and we will remove Currency in 2.4 or 3.0. Would that work?

from datafaker.

panilya avatar panilya commented on September 26, 2024

Yes, I think this will work.

+1 to remove deprecated Currency faker group in the 3.0 version

from datafaker.

snuyanzin avatar snuyanzin commented on September 26, 2024

I wonder why we have this class at all?
there is a java class java.util.Currency which could be reused instead of duplicating logic with yaml file which is slower

so I would remove one and for the second remove yaml and replace logic with calls to java.util.Currency

from datafaker.

bodiam avatar bodiam commented on September 26, 2024

@snuyanzin good question. I think faker.Currency is pre Java 8, while util.Currency was introduced in Java 8. Might make sense to migrate it.

from datafaker.

snuyanzin avatar snuyanzin commented on September 26, 2024

In fact it is present in Java since 1.4 ...
In javadocs it is stated that it done based on ISO 4217, so probably would be better to use it

from datafaker.

snuyanzin avatar snuyanzin commented on September 26, 2024

@bodiam , @panilya am I right that this one now can be closed?

from datafaker.

panilya avatar panilya commented on September 26, 2024

I think so.

Maybe it also makes sense to leave somewhere a reminder to delete Currency faker in the 3.0.0 release

from datafaker.

bodiam avatar bodiam commented on September 26, 2024

I think it will be deleted in version 2.4.0 or 2.5.0. I know it's not entirely "semver", but 3.0 to me sounds like a huge milestone, not just the removal of a class which is is probably used by only a small set of our users.

from datafaker.

kingthorin avatar kingthorin commented on September 26, 2024

The code/javadoc have the removal todo details.

from datafaker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.