The names of classes and functions?

0 like 0 dislike
5 views
Sooner or later faced with the problem of what to call a particular method, function, class. Of course, it is clear that the title should reflect the action for which is responsible the functionality, but there are situations when it is very difficult to choose the desired option, for example: load, fetch, get, or pull. The terms are different, but very similar to each other.

I for these purposes largely helps the synonym dictionary of the English language, the names of the patterns and experience in learning other people's libraries, but sometimes this is not enough and you have time to mull over the name, although this time could be spent more usefully. For example to write code.


Maybe there's a dictionary of commonly used terms/names in order to ease the task of search? Such solid, broken down by categories dictionary?
by | 5 views

4 Answers

0 like 0 dislike
GetMessages()
GetUsers()
GetPosts()
GetCategories()
\r
LoadUserData()
LoadUserMessages()
and so I just added to Load something related to action.
\r
LoadData is a FAIL. Not poyantno) but also happens when the action is invoked once wrote and forgot
by
0 like 0 dislike
IMHO,
get — the most neutral option of receiving anything, any IDE can salonit class filling it with getters/setters based on fields;
\r
load — looks like a full download of the data from some store into RAM, for example the images/fonts for the program does not represent anything interesting, except as a lesson in the heap memory space, the monolithic array of data like this;
\r
fetch — fetch some parts from a vast array;
\r
pull literally pull from a combination of push-pull, not met, but I see it as a hue hacking Terminologie "somewhere to steal something and to use in my prog", such as the IPS of proxies;
often used in the sense of up from combination sink-float (push/pop), anything to drown out of sight, and then return to it when it POPs up
by
0 like 0 dislike
In Code Complete was the section about the names, just synonyms.
\r
And Yes — thesaurus, the benefit in the Mac OS X built-in.
by
0 like 0 dislike
who cares — good thesaurus here: http://thesaurus.com/
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
28,701 users