Khleedrilkhleedril@cyberplace.social
Nov 13, 2026, 2:53 PM@rust Curious how people feel about long names vs short ones, e.g. from_fn vs from_function, initialise_parameters vs init_pars?
@rust Curious how people feel about long names vs short ones, e.g. from_fn vs from_function, initialise_parameters vs init_pars?
@khleedril @rust if it's common enough short is fine. Init, config etc but generally you want your variable names to be as clear as possible
You are almost never going to run into trouble because your variable names are too long
@khleedril @rust the go rule is the name should be proportional to the length of its scope. If it’s just there for three lines, n is sufficient. Exported symbols had best be readable. I grew up in amother century and have an instinct to make everything a three or four letter abbrev which hurts my code.