Login
You're viewing the functional.cafe public feed.

Replies

  • Nov 13, 2026, 3:04 PM

    @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

    💬 0🔄 0⭐ 1
  • Nov 13, 2026, 3:06 PM

    @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.

    💬 0🔄 0⭐ 1