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.