Search code examples
programming-languagesnaming-conventionssoftware-design

Why is the hardest part of programming is naming things?


I have heard that the hardest part for a programmer is naming variables, classes, objects and methods etc. really? then why do we focus more on algorithms and Data Structure?


Solution

  • Well on my opinion any project should have the documentation where you will define a naming convention for the project. Beacause if you leave all programmers to name classes, variables, properties, methods etc... by itself. It might lead to difficulty in understand instantly what is purpose of the class, method etc... Think about this, the name should be as much self describing for person which never saw your code to understood what it intendeed for.