You're viewing a single thread.
All Comments
21 comments
Eager Eagle @lemmy.world
The liberty to not name things that are obvious.
and that's yet another way to end up with hard to read code.
Variables hold values that have meaning. Learn how to name things and you'll write good code.
6 1 Replyexussum @lemmy.world This makes me want to write a function for you to add to numbers where the variables are leftumber and rightnumber, instead of x and y.
1 1 ReplyEager Eagle @lemmy.world
if "left" and "right" were relevant for addition, they would indeed be better names
1 0 Replyexussum @lemmy.world Are you against using a single letter variable like e for element in iterating over things?
1 0 Reply
21 comments
Scroll to top