When naming classes, methods, and variables, I don't understand the difference in word delimiters
Use upper camel case for classes and snake case for methods and variables.
(ex) Take as an example when you want to name "user tweet creator"
・ When naming a class UserTweetCreator Name it like this
-When naming methods and variables user_tweet_creator Name it like this
In other words Upper camel case Capitalize the first letter and capitalize word breaks
Snake case Word breaks are represented by _
It will be. Methods and variables use the snake case and are all lowercase.
By observing the naming convention, I think it will be easier to communicate the meaning of the code with the team members. I would appreciate it if you could refer to it.
Recommended Posts