Naming variables: "removeSmth" vs "deleteSmth"?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
9 views
I want the name of an object most accurately correspond to fact. Recently I noticed that I don't see the difference between words remove and delete any and use. Is there any semantic difference between these two words? Are there any situations in which it is better suited for some one word rather than another? Is there analogy, for example, with the words "find" and "search"?
by | 9 views

6 Answers

0 like 0 dislike
— that's what interests me "to Remove the Smith" or "erase Smith"?
— does it matter, Mr. Anderson?
by
0 like 0 dislike
Global there is no difference, both words mean "remove". But "remove" is an alternative translation to "remove", "remove", and in fact has a milder meaning than "delete" — "erase", "delete", "delete".
\r
Well remove the more formal word.
by
0 like 0 dislike
Find well see as I search with a known positive result and search it there the search process, which may not lead to the result. As for the remove and delete, then I see in the first case, the elimination of the object despite the fact that this object, you can retrieve and delete — delete object without the possibility to re-invoke it.
\r
I from the point of view of linguistics and experience are suitable, coders may not agree with me.
by
0 like 0 dislike
Most likely you mean the names of methods.
\rremove — remove from a list, deleta — removal of solid objects. On this occasion, I would also like to say that in some cases it is convenient to call SmthRemove || SmthDelete(though never accepted).
by
0 like 0 dislike
delete – to destroy
find – search for
by
0 like 0 dislike
IMHO, in General, if we look at binding English words to English, Russian to Russian, you will see the difference. Delete — this is not to destroy, not to liberate, not to destroy. In Russian delete is to remove, to push far. Remove, in principle, little to the word delete. Because there are terms such removable media, or something else. But there is no shade: the destroyed media. It is removed, take out everything.
\r
So remove and delete is something like 'remove from sight'. Therefore, like the rm command in UNIX is not a file is erased, and the Erasure of links to it from the directory, like — I don't want to see you.
\r
Delete is another. It's kind of the opposite of let. And just carries the meaning: to destroy what had occurred, or to erase, to delete from the text. Everything.
\r
Again, find and search they are also not translated, as if to look for semantic binding in English. search is something to do with the study because the research, or is there a scientific search, or the search for a solution. It's something ongoing, not necessarily with the desired result. And find (the second value to base) it's something associated with getting a result, finding something.
\r
Here. Can popionate is to programs. My experience: don't use remove and delete. Use this kind of language: form and drop. From the first to form that more corresponds in meaning to the creation of an object in memory, a drop — is to throw, also quite clear, without any subtleties, and meaning is more consistent. When we get rid of the object in the program, we do not erase it, does not destroy the memory in which it is located, we would just forget about it, throw the link. And to write shorter and straighter: )
\r
formSmth
dropSmth
\r
Well. In the programs and their data structures I always do find in the data structures and search is more like a noun and an adjective, when it is necessary to call something search: searchbot or there linesearch (with pattern recognition).
by

Related questions

0 like 0 dislike
7 answers
0 like 0 dislike
4 answers
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
28,049 users