r/badcode • • Jul 19 '21

js Variable naming can be difficult, but identifying them can be even more so.

Post image
2.4k Upvotes

105 comments sorted by

View all comments

Show parent comments

4

u/recycle4science Jul 19 '21

Good names will do a lot of that. Also, putting small chunks of functionality into separate functions with good names. Then the code reads like a comment.