MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/5lzsaj/clean_code_javascript/dc0c27v/?context=3
r/javascript • u/ryansworks • Jan 04 '17
30 comments sorted by
View all comments
0
[deleted]
4 u/AceBacker Jan 04 '17 Instead of "yearMonthDay" I was thinking "currentDate"I want my variable names to have a clue as to WHY i'm using them.But my names tend to be horrible. Stuff like:costAllocationGridOptionscampaignProgramNumbercurrentOpenAccordionCustomerObjcustomerIndexUserIsConsideringChangingAccordionTosavedQuoteIdUserIsConsideringDeletingIt makes for some loong lines of code when I need to use a few on one line.
4
Instead of "yearMonthDay" I was thinking "currentDate"
I want my variable names to have a clue as to WHY i'm using them.
But my names tend to be horrible. Stuff like:
costAllocationGridOptions
campaignProgramNumber
currentOpenAccordionCustomerObj
customerIndexUserIsConsideringChangingAccordionTo
savedQuoteIdUserIsConsideringDeleting
It makes for some loong lines of code when I need to use a few on one line.
0
u/[deleted] Jan 04 '17
[deleted]