Skip to content

variadic range() function #29

Open

Description

@jmbothe

Requesting help creating a variadic range() function that takes a series of numbers and returns the difference between the largest and smallest values

Activity

  1. khusbuchandra commented on Jan 27, 2018

    @khusbuchandra
    Contributor

    Is this supposed to be opposite of what lodash range function does? Naming it range might create a confusion i think, as the function intends to do is find the maximum difference. How about maxDifference() or something on that line?

  2. jmbothe commented on Jan 27, 2018

    @jmbothe
    CollaboratorAuthor

    ahhh yes, good point. And it brings up a lot of other good points. I guess it depends on any given user's familiarity with lodash, and whether we consider namespacing as significant enough differentiation. Within the context of statistics, range is definitely the correct term to use, so I wouldn't be quick to give lodash a monopoly on the term just because its one of the most popular libraries out there (especially since this library is mostly for edifying purposes). But for clarity's sake, we might consider prefixing any arithmetic/statistical method with get (for example, getRange() or getAverage()). another option might be further namespacing like variadic.stats.range().

    just spitballing right now. thoughts?

  3. khusbuchandra commented on Jan 28, 2018

    @khusbuchandra
    Contributor

    Now I understand where you are coming from and agree to it. I like the idea of namespacing, lets have a standard and have it across.

  4. jhowardjr commented on Jan 28, 2018

    @jhowardjr
    Member

    👍namespacing would be the cleaner implementation.

  5. jmbothe commented on Jan 28, 2018

    @jmbothe
    CollaboratorAuthor

    So I've never really been involved in something like this before, but I guess the collaborators of the repo would need to do some planning ahead to figure out what categories of functions they expect to have and decide on a namespacing conventions ahead of time. Or else, just move forward and introduce namespaces as needed. Of course the latter would mean making breaking changes every time you introduce a new namespace

  6. someyoungideas commented on Mar 10, 2018

    @someyoungideas
    Contributor

    I'd be glad to take this item if it is still available.

  7. jhowardjr commented on Mar 10, 2018

    @jhowardjr
    Member

    @someyoungideas actually someone just submitted a pull request for this one. If you look in the readme there are some other opportunities that might interest you. If you find one just create an issue for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions