DEV Community

Discussion on: 3 tips for clean & efficient code

Collapse
 
pinotattari profile image
Riccardo Bernardini

Another suggestion fairly easy to implement: use descriptive names. A variable with name Quantization_Step is much more readable than Quant_S or qs. There is a minimum risk of getting carried away using names like

Variable_With_A_Name_So_Long_That_It_Seems_A_Chapter_of_The_Betrothed

but, honestly, the risk is minimal :-)

Collapse
 
deepu105 profile image
Deepu K Sasidharan

Agree, well-written names also reduce the amount of documentation needed