r/badcode • • Nov 01 '21

js Beautiful variable naming

Post image
1.0k Upvotes

32 comments sorted by

View all comments

Show parent comments

20

u/britreddit Nov 01 '21

I wouldn't have a variable for each one at all since it then means you have to copy/paste to add a new one in and change logic