nodeclub icon indicating copy to clipboard operation
nodeclub copied to clipboard

属性名的命名规则是什么?为什么models/user.js里同时存在loginname、githubUsername、create_at这三种不同风格的命名?

Open VinceXie opened this issue 8 years ago • 1 comments

如题。这是为什么?

统一成login_name、github_username、created_at这样好看多了。一时驼峰、一时下划线、一时直接拼起来,是否有特定的规律?

VinceXie avatar Aug 02 '17 03:08 VinceXie

维护的人员有更换,所以风格不同。加上我个人经常混用驼峰和下划线。。。所以这块应该算是没规律的

2017-08-02 11:18 GMT+08:00 VinceXie [email protected]:

如题。这是为什么?

统一成login_name、github_username、created_at这样好看多了。一时驼峰、一时下划线、 一时直接拼起来,是否有特定的规律?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cnodejs/nodeclub/issues/976, or mute the thread https://github.com/notifications/unsubscribe-auth/ABGB7w14mYCukvHVAdPYGnl2-7Z2maHiks5sT-p2gaJpZM4OqjNu .

-- GitHub: https://github.com/alsotang

alsotang avatar Aug 02 '17 03:08 alsotang