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

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.

#programming

threaded - newest

HelloRoot@lemy.lol on 08 Jul 07:43 next collapse

What is naming in programming?

[long ass chapter]

When I see articles like this, I just leave.

AnAverageSnoot@lemmy.ca on 08 Jul 08:23 next collapse

I also have ADHD

otter@lemmy.ca on 08 Jul 08:41 next collapse

It makes it more accessible, but part of it might also be SEO bait

I skipped to the second section

XM34@feddit.org on 08 Jul 11:59 collapse

Same. It’s a clear sign of either a badly written article or an AI written article (or both). Not worth my time!

SCmSTR@lemmy.blahaj.zone on 08 Jul 08:39 next collapse

I hear that x, y, z, a, aa, ab, foo, and bar all make great names.

thenextguy@lemmy.world on 08 Jul 23:19 collapse

loop, innerloop, innerinnerloop, …

soc@programming.dev on 08 Jul 09:17 collapse

I have some articles on naming specific areas of program code that people might find helpful:

otter@lemmy.ca on 08 Jul 10:27 collapse

Cool! You could post them here one at a time if you haven’t already

soc@programming.dev on 08 Jul 11:46 collapse

Oh, good idea … any preference on the first? :-)

otter@lemmy.ca on 09 Jul 01:17 collapse

Maybe the first one, the one on keywords?