PythOnRails@programming.dev to Programming@programming.dev · 11 months ago"Useless syntax sugar": Numbered block parameters in Rubyzverok.spaceexternal-linkmessage-square18fedilinkarrow-up140arrow-down14cross-posted to: [email protected][email protected]
arrow-up136arrow-down1external-link"Useless syntax sugar": Numbered block parameters in Rubyzverok.spacePythOnRails@programming.dev to Programming@programming.dev · 11 months agomessage-square18fedilinkcross-posted to: [email protected][email protected]
minus-squareEager Eagle@lemmy.worldlinkfedilinkEnglisharrow-up3arrow-down1·edit-211 months ago 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.
minus-squareexussum@lemmy.worldlinkfedilinkarrow-up1·11 months agoThis 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.
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.
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.