Welcome to the second issue of The Trojanโs Wednesday Wisdom newsletter.ย I hope you all had an amazing last week.
Today Iโll be sharing some bits about naming in Software development ๐ป
Names are everywhere in software. Files, packages, variables functions, etc. Because naming things is one of the most common tasks that we do in software development, we have to do it well.
Also as a Software Engineer ๐ฉโ๐ป, most of our time is spent reading the existing code rather than writing new one. Therefore, the code should be as readable and clear as possible.
This can be done by selecting words that are close to the human language that we naturally use. Naming is a key part of that.
Moreover, coming up with a good name reveals the nature of an entity, which helps us divide the responsibilities of our components or classes better. This ultimately leads to maintainable and extendable code.
โPrograms are meant to be read by humans and only incidentally for computers to executeโ โ Donald Knuth
Now Grab a coffee โ, and letโs talk about one of the important points we need to consider while naming software class / functions / variables.