Skip to content

Dollar prefixes on methods #5919

Closed

Description

@felixfbecker

When working with the code and also when debugging I wondered why Sequelize mixes dollar, underscore and double underscore prefixes for methods and what their meaning are. The convention seems to be to use underscore for private methods / properties, and dollar should imo be buried with jQuery. Sometimes Sequelize even assigns the same method with both a dollar and an underscore. Maybe this can be cleaned up for 4.0?

Activity

  1. janmeier commented on May 18, 2016

    @janmeier
    Member

    They are all meant to signify private methods - So this could definitely be cleaned up! :)

  2. mickhansen commented on May 25, 2016

    @mickhansen
    Contributor

    I actually prefer $ for privates rather than _, but nothing i care too deeply about.
    We should probably pick one thing and go with that atleast :)

  3. felixfbecker commented on May 25, 2016

    @felixfbecker
    ContributorAuthor

    @mickhansen from my experience underscore is the convention and used in all great javascript libraries and the NodeJS core itself, so I would vote for that.

  4. mickhansen commented on May 25, 2016

    @mickhansen
    Contributor

    @felixfbecker You're probably right about that, don't know where i found $ originally.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions