Naming conventions in programming – a review of scientific literature [and tips on how to do it well]
(makimo.com)
from otter@lemmy.ca to programming@programming.dev on 08 Jul 02:22
https://lemmy.ca/post/47586906
from otter@lemmy.ca to programming@programming.dev on 08 Jul 02:22
https://lemmy.ca/post/47586906
This article is divided into two chapters.
- The first one, starting with section “Introduction to naming in programming” presents a review of scientific literature present on the topic. That section will deepen your understanding of the current body of knowledge on naming things.
- The second chapter, starting with section “Guidelines for naming conventions in programming” presents actionable recommendations to improve your skills in choosing thoughtful class, function or variable names. If you’re looking for tips, go there.
There are only two hard things in Computer Science: cache invalidation and naming things.
threaded - newest
When I see articles like this, I just leave.
I also have ADHD
It makes it more accessible, but part of it might also be SEO bait
I skipped to the second section
Same. It’s a clear sign of either a badly written article or an AI written article (or both). Not worth my time!
I hear that x, y, z, a, aa, ab, foo, and bar all make great names.
loop, innerloop, innerinnerloop, …
I have some articles on naming specific areas of program code that people might find helpful:
Option
s andResult
sStream
sCool! You could post them here one at a time if you haven’t already
Oh, good idea … any preference on the first? :-)
Maybe the first one, the one on keywords?