You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
@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.
Activity
janmeier commentedon May 18, 2016
They are all meant to signify private methods - So this could definitely be cleaned up! :)
mickhansen commentedon May 25, 2016
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 :)
felixfbecker commentedon May 25, 2016
@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.
mickhansen commentedon May 25, 2016
@felixfbecker You're probably right about that, don't know where i found $ originally.