Word meaning both create and update?
I'd like to know if someone has a better word than authored or produced, for both creating and updating something.
Context:
I'm a software developer and I'm trying to think of a clever way to name the function that will initially create an object, and if it's already created, update it.
single-word-requests verbs
|
show 1 more comment
I'd like to know if someone has a better word than authored or produced, for both creating and updating something.
Context:
I'm a software developer and I'm trying to think of a clever way to name the function that will initially create an object, and if it's already created, update it.
single-word-requests verbs
3
Crupdate? Someone had the same problem with you and neologized crupdate also :)
– ermanen
Feb 17 '15 at 2:42
17
The standard terminology in the RDBMS world is "upsert".
– Dan Bron
Feb 17 '15 at 2:55
1
Is it weird that I find these really funny? Thanks for the suggestions!
– undefined
Feb 17 '15 at 2:58
This question is better asked on a relevant tech Q&A or SO.
– Kris
Feb 17 '15 at 6:45
1
Exactly the question I had in mind. I went into the thesaurus after looking at the answers, and came up with these: manage, commit, save, renew, refresh, maintain, secure, store, support, install, keep, store, stash, ... I think I like save, because in the context of computers (operating systems, actually), saving a file means both creating one if it doesn't exists, and updating it if it already exists.
– ADTC
Mar 12 '16 at 12:59
|
show 1 more comment
I'd like to know if someone has a better word than authored or produced, for both creating and updating something.
Context:
I'm a software developer and I'm trying to think of a clever way to name the function that will initially create an object, and if it's already created, update it.
single-word-requests verbs
I'd like to know if someone has a better word than authored or produced, for both creating and updating something.
Context:
I'm a software developer and I'm trying to think of a clever way to name the function that will initially create an object, and if it's already created, update it.
single-word-requests verbs
single-word-requests verbs
edited Oct 8 at 14:51
choster
36.3k1483133
36.3k1483133
asked Feb 17 '15 at 2:11
undefined
305247
305247
3
Crupdate? Someone had the same problem with you and neologized crupdate also :)
– ermanen
Feb 17 '15 at 2:42
17
The standard terminology in the RDBMS world is "upsert".
– Dan Bron
Feb 17 '15 at 2:55
1
Is it weird that I find these really funny? Thanks for the suggestions!
– undefined
Feb 17 '15 at 2:58
This question is better asked on a relevant tech Q&A or SO.
– Kris
Feb 17 '15 at 6:45
1
Exactly the question I had in mind. I went into the thesaurus after looking at the answers, and came up with these: manage, commit, save, renew, refresh, maintain, secure, store, support, install, keep, store, stash, ... I think I like save, because in the context of computers (operating systems, actually), saving a file means both creating one if it doesn't exists, and updating it if it already exists.
– ADTC
Mar 12 '16 at 12:59
|
show 1 more comment
3
Crupdate? Someone had the same problem with you and neologized crupdate also :)
– ermanen
Feb 17 '15 at 2:42
17
The standard terminology in the RDBMS world is "upsert".
– Dan Bron
Feb 17 '15 at 2:55
1
Is it weird that I find these really funny? Thanks for the suggestions!
– undefined
Feb 17 '15 at 2:58
This question is better asked on a relevant tech Q&A or SO.
– Kris
Feb 17 '15 at 6:45
1
Exactly the question I had in mind. I went into the thesaurus after looking at the answers, and came up with these: manage, commit, save, renew, refresh, maintain, secure, store, support, install, keep, store, stash, ... I think I like save, because in the context of computers (operating systems, actually), saving a file means both creating one if it doesn't exists, and updating it if it already exists.
– ADTC
Mar 12 '16 at 12:59
3
3
Crupdate? Someone had the same problem with you and neologized crupdate also :)
– ermanen
Feb 17 '15 at 2:42
Crupdate? Someone had the same problem with you and neologized crupdate also :)
– ermanen
Feb 17 '15 at 2:42
17
17
The standard terminology in the RDBMS world is "upsert".
– Dan Bron
Feb 17 '15 at 2:55
The standard terminology in the RDBMS world is "upsert".
– Dan Bron
Feb 17 '15 at 2:55
1
1
Is it weird that I find these really funny? Thanks for the suggestions!
– undefined
Feb 17 '15 at 2:58
Is it weird that I find these really funny? Thanks for the suggestions!
– undefined
Feb 17 '15 at 2:58
This question is better asked on a relevant tech Q&A or SO.
– Kris
Feb 17 '15 at 6:45
This question is better asked on a relevant tech Q&A or SO.
– Kris
Feb 17 '15 at 6:45
1
1
Exactly the question I had in mind. I went into the thesaurus after looking at the answers, and came up with these: manage, commit, save, renew, refresh, maintain, secure, store, support, install, keep, store, stash, ... I think I like save, because in the context of computers (operating systems, actually), saving a file means both creating one if it doesn't exists, and updating it if it already exists.
– ADTC
Mar 12 '16 at 12:59
Exactly the question I had in mind. I went into the thesaurus after looking at the answers, and came up with these: manage, commit, save, renew, refresh, maintain, secure, store, support, install, keep, store, stash, ... I think I like save, because in the context of computers (operating systems, actually), saving a file means both creating one if it doesn't exists, and updating it if it already exists.
– ADTC
Mar 12 '16 at 12:59
|
show 1 more comment
9 Answers
9
active
oldest
votes
"Save" seems perfect for this. As a developer I'd read "SaveRecord" as either inserting or updating the record depending on its preexistence.
I like it! In the context of computers (operating systems, actually), saving a file means both creating one if it doesn't exists, and updating it if it already exists. A programmer is also a user, so it's very relatable (indeed, we save our source code, don't we?).
– ADTC
Mar 12 '16 at 13:03
add a comment |
Since you stated you're dealing with JavaScript, I'll offer 'assign' as a handy verb. In most programming languages, you need to declare an object property before assigning it, but in JavaScript the assignment operator ('=') both updates and creates properties (when they don't exist).
So if you have your generic object here, and you want to create/update properties of that object using a single function call, you're essentially assigning values to the properties of the object. Creation is implied.
myObject.prototype.assignProperties = (property, value) => this.property = value;
The only activity carried out in the function is 'assign' by the assignment operator. If the property doesn't exist, it is created.
Source: I'm a software engineer working with JavaScript regularly (FireFox OS applications).
Thanks! Another really nice solution though I still preferset
because it's much shorter, and abbreviating assign would give me, well..ass
– undefined
Feb 17 '15 at 2:55
I work in Tokyo, so 'assData', 'assProps', 'assTime', etc. would be happily unnoticed ;) A wonderful idea for when morale dips.
– Coty Johnathan Saxman
Feb 17 '15 at 3:01
add a comment |
Sometimes set is used in programming to refer to both creating and updating. It can depend on the language - some languages clearly separate the two operations, some do not.
Some languages try to be clear by not using a single verb for this. For example, SQL uses the verb CREATE OR REPLACE
to mean exactly what it says (and what you said).
My suggestion is to check with your language and its users, to see what vocabulary is typically used for this in the particular context.
1
Thanks!set
is a really good option, I'm working with JavaScript, I'll see if anyone else comes up with something different :)
– undefined
Feb 17 '15 at 2:16
1
Just make sure that you can create a JavaScript object using the same operation as you use to update it. If not, then talking about setting it is not so appropriate. Typically, with OOP languages (such as JavaScript), the creation of an instance is done one way (e.g. with a constructor), and updating is done another way (e.g. with a setter function).
– Drew
Feb 17 '15 at 2:18
@Drew JavaScript is very forgiving when it comes to things like that. You can certainly make 'classes' and instantiate objects and implement constructors, but at times when it suits you to build-as-you-go, creating and setting with the same function is actually quite natural.
– Coty Johnathan Saxman
Feb 17 '15 at 2:56
@CotyJohnathanSaxman: Yes.
– Drew
Feb 17 '15 at 2:57
add a comment |
I believe it was mentioned in a comment, but Store
is very applicable.
Moreover, Store
matches in character count to Fetch
, which, if you're insane like me, is a quality you value in naming conventions.
function store(val: *);
function fetch(key: *);
function erase(key: *); // or purge()
2
+1 for acknowledging your own insanity, which I share, to be honest.
– undefined
Oct 29 at 23:16
add a comment |
Within the context of development if you are appling some CRUD changes in one operation I usually opt for "sync" or "synchronize" as a method name.
add a comment |
Populate may be appropriate. When you create or update an object, you typically "populate" the object with new property values.
add a comment |
Key-Value stores often use put
to create/update and get
to retrieve.
I'm late to the party but mention it because save
(the accepted and popular answer) suggests that the thing being created or updated is persisted as well. That might or might not be the case. Often persisting is within transactions and done with commit
. So if you use save
to create or update the object it might still not be saved. In fact, usually isn't saved.
New contributor
add a comment |
I am using upinit
"word" for this. In DB world, there is upsert
(update or insert). Why not to have update or init?
add a comment |
In SQL terminology merge
term is used for this: https://en.wikipedia.org/wiki/Merge_(SQL)
This is a synonym of upsert
(update + insert) which, in my opinion, suits even better, because its meaning is explicit.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "97"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fenglish.stackexchange.com%2fquestions%2f227915%2fword-meaning-both-create-and-update%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
9 Answers
9
active
oldest
votes
9 Answers
9
active
oldest
votes
active
oldest
votes
active
oldest
votes
"Save" seems perfect for this. As a developer I'd read "SaveRecord" as either inserting or updating the record depending on its preexistence.
I like it! In the context of computers (operating systems, actually), saving a file means both creating one if it doesn't exists, and updating it if it already exists. A programmer is also a user, so it's very relatable (indeed, we save our source code, don't we?).
– ADTC
Mar 12 '16 at 13:03
add a comment |
"Save" seems perfect for this. As a developer I'd read "SaveRecord" as either inserting or updating the record depending on its preexistence.
I like it! In the context of computers (operating systems, actually), saving a file means both creating one if it doesn't exists, and updating it if it already exists. A programmer is also a user, so it's very relatable (indeed, we save our source code, don't we?).
– ADTC
Mar 12 '16 at 13:03
add a comment |
"Save" seems perfect for this. As a developer I'd read "SaveRecord" as either inserting or updating the record depending on its preexistence.
"Save" seems perfect for this. As a developer I'd read "SaveRecord" as either inserting or updating the record depending on its preexistence.
answered Dec 15 '15 at 18:17
nollidge
1,06378
1,06378
I like it! In the context of computers (operating systems, actually), saving a file means both creating one if it doesn't exists, and updating it if it already exists. A programmer is also a user, so it's very relatable (indeed, we save our source code, don't we?).
– ADTC
Mar 12 '16 at 13:03
add a comment |
I like it! In the context of computers (operating systems, actually), saving a file means both creating one if it doesn't exists, and updating it if it already exists. A programmer is also a user, so it's very relatable (indeed, we save our source code, don't we?).
– ADTC
Mar 12 '16 at 13:03
I like it! In the context of computers (operating systems, actually), saving a file means both creating one if it doesn't exists, and updating it if it already exists. A programmer is also a user, so it's very relatable (indeed, we save our source code, don't we?).
– ADTC
Mar 12 '16 at 13:03
I like it! In the context of computers (operating systems, actually), saving a file means both creating one if it doesn't exists, and updating it if it already exists. A programmer is also a user, so it's very relatable (indeed, we save our source code, don't we?).
– ADTC
Mar 12 '16 at 13:03
add a comment |
Since you stated you're dealing with JavaScript, I'll offer 'assign' as a handy verb. In most programming languages, you need to declare an object property before assigning it, but in JavaScript the assignment operator ('=') both updates and creates properties (when they don't exist).
So if you have your generic object here, and you want to create/update properties of that object using a single function call, you're essentially assigning values to the properties of the object. Creation is implied.
myObject.prototype.assignProperties = (property, value) => this.property = value;
The only activity carried out in the function is 'assign' by the assignment operator. If the property doesn't exist, it is created.
Source: I'm a software engineer working with JavaScript regularly (FireFox OS applications).
Thanks! Another really nice solution though I still preferset
because it's much shorter, and abbreviating assign would give me, well..ass
– undefined
Feb 17 '15 at 2:55
I work in Tokyo, so 'assData', 'assProps', 'assTime', etc. would be happily unnoticed ;) A wonderful idea for when morale dips.
– Coty Johnathan Saxman
Feb 17 '15 at 3:01
add a comment |
Since you stated you're dealing with JavaScript, I'll offer 'assign' as a handy verb. In most programming languages, you need to declare an object property before assigning it, but in JavaScript the assignment operator ('=') both updates and creates properties (when they don't exist).
So if you have your generic object here, and you want to create/update properties of that object using a single function call, you're essentially assigning values to the properties of the object. Creation is implied.
myObject.prototype.assignProperties = (property, value) => this.property = value;
The only activity carried out in the function is 'assign' by the assignment operator. If the property doesn't exist, it is created.
Source: I'm a software engineer working with JavaScript regularly (FireFox OS applications).
Thanks! Another really nice solution though I still preferset
because it's much shorter, and abbreviating assign would give me, well..ass
– undefined
Feb 17 '15 at 2:55
I work in Tokyo, so 'assData', 'assProps', 'assTime', etc. would be happily unnoticed ;) A wonderful idea for when morale dips.
– Coty Johnathan Saxman
Feb 17 '15 at 3:01
add a comment |
Since you stated you're dealing with JavaScript, I'll offer 'assign' as a handy verb. In most programming languages, you need to declare an object property before assigning it, but in JavaScript the assignment operator ('=') both updates and creates properties (when they don't exist).
So if you have your generic object here, and you want to create/update properties of that object using a single function call, you're essentially assigning values to the properties of the object. Creation is implied.
myObject.prototype.assignProperties = (property, value) => this.property = value;
The only activity carried out in the function is 'assign' by the assignment operator. If the property doesn't exist, it is created.
Source: I'm a software engineer working with JavaScript regularly (FireFox OS applications).
Since you stated you're dealing with JavaScript, I'll offer 'assign' as a handy verb. In most programming languages, you need to declare an object property before assigning it, but in JavaScript the assignment operator ('=') both updates and creates properties (when they don't exist).
So if you have your generic object here, and you want to create/update properties of that object using a single function call, you're essentially assigning values to the properties of the object. Creation is implied.
myObject.prototype.assignProperties = (property, value) => this.property = value;
The only activity carried out in the function is 'assign' by the assignment operator. If the property doesn't exist, it is created.
Source: I'm a software engineer working with JavaScript regularly (FireFox OS applications).
answered Feb 17 '15 at 2:43
Coty Johnathan Saxman
1,70659
1,70659
Thanks! Another really nice solution though I still preferset
because it's much shorter, and abbreviating assign would give me, well..ass
– undefined
Feb 17 '15 at 2:55
I work in Tokyo, so 'assData', 'assProps', 'assTime', etc. would be happily unnoticed ;) A wonderful idea for when morale dips.
– Coty Johnathan Saxman
Feb 17 '15 at 3:01
add a comment |
Thanks! Another really nice solution though I still preferset
because it's much shorter, and abbreviating assign would give me, well..ass
– undefined
Feb 17 '15 at 2:55
I work in Tokyo, so 'assData', 'assProps', 'assTime', etc. would be happily unnoticed ;) A wonderful idea for when morale dips.
– Coty Johnathan Saxman
Feb 17 '15 at 3:01
Thanks! Another really nice solution though I still prefer
set
because it's much shorter, and abbreviating assign would give me, well..ass
– undefined
Feb 17 '15 at 2:55
Thanks! Another really nice solution though I still prefer
set
because it's much shorter, and abbreviating assign would give me, well..ass
– undefined
Feb 17 '15 at 2:55
I work in Tokyo, so 'assData', 'assProps', 'assTime', etc. would be happily unnoticed ;) A wonderful idea for when morale dips.
– Coty Johnathan Saxman
Feb 17 '15 at 3:01
I work in Tokyo, so 'assData', 'assProps', 'assTime', etc. would be happily unnoticed ;) A wonderful idea for when morale dips.
– Coty Johnathan Saxman
Feb 17 '15 at 3:01
add a comment |
Sometimes set is used in programming to refer to both creating and updating. It can depend on the language - some languages clearly separate the two operations, some do not.
Some languages try to be clear by not using a single verb for this. For example, SQL uses the verb CREATE OR REPLACE
to mean exactly what it says (and what you said).
My suggestion is to check with your language and its users, to see what vocabulary is typically used for this in the particular context.
1
Thanks!set
is a really good option, I'm working with JavaScript, I'll see if anyone else comes up with something different :)
– undefined
Feb 17 '15 at 2:16
1
Just make sure that you can create a JavaScript object using the same operation as you use to update it. If not, then talking about setting it is not so appropriate. Typically, with OOP languages (such as JavaScript), the creation of an instance is done one way (e.g. with a constructor), and updating is done another way (e.g. with a setter function).
– Drew
Feb 17 '15 at 2:18
@Drew JavaScript is very forgiving when it comes to things like that. You can certainly make 'classes' and instantiate objects and implement constructors, but at times when it suits you to build-as-you-go, creating and setting with the same function is actually quite natural.
– Coty Johnathan Saxman
Feb 17 '15 at 2:56
@CotyJohnathanSaxman: Yes.
– Drew
Feb 17 '15 at 2:57
add a comment |
Sometimes set is used in programming to refer to both creating and updating. It can depend on the language - some languages clearly separate the two operations, some do not.
Some languages try to be clear by not using a single verb for this. For example, SQL uses the verb CREATE OR REPLACE
to mean exactly what it says (and what you said).
My suggestion is to check with your language and its users, to see what vocabulary is typically used for this in the particular context.
1
Thanks!set
is a really good option, I'm working with JavaScript, I'll see if anyone else comes up with something different :)
– undefined
Feb 17 '15 at 2:16
1
Just make sure that you can create a JavaScript object using the same operation as you use to update it. If not, then talking about setting it is not so appropriate. Typically, with OOP languages (such as JavaScript), the creation of an instance is done one way (e.g. with a constructor), and updating is done another way (e.g. with a setter function).
– Drew
Feb 17 '15 at 2:18
@Drew JavaScript is very forgiving when it comes to things like that. You can certainly make 'classes' and instantiate objects and implement constructors, but at times when it suits you to build-as-you-go, creating and setting with the same function is actually quite natural.
– Coty Johnathan Saxman
Feb 17 '15 at 2:56
@CotyJohnathanSaxman: Yes.
– Drew
Feb 17 '15 at 2:57
add a comment |
Sometimes set is used in programming to refer to both creating and updating. It can depend on the language - some languages clearly separate the two operations, some do not.
Some languages try to be clear by not using a single verb for this. For example, SQL uses the verb CREATE OR REPLACE
to mean exactly what it says (and what you said).
My suggestion is to check with your language and its users, to see what vocabulary is typically used for this in the particular context.
Sometimes set is used in programming to refer to both creating and updating. It can depend on the language - some languages clearly separate the two operations, some do not.
Some languages try to be clear by not using a single verb for this. For example, SQL uses the verb CREATE OR REPLACE
to mean exactly what it says (and what you said).
My suggestion is to check with your language and its users, to see what vocabulary is typically used for this in the particular context.
answered Feb 17 '15 at 2:14
Drew
13.9k93055
13.9k93055
1
Thanks!set
is a really good option, I'm working with JavaScript, I'll see if anyone else comes up with something different :)
– undefined
Feb 17 '15 at 2:16
1
Just make sure that you can create a JavaScript object using the same operation as you use to update it. If not, then talking about setting it is not so appropriate. Typically, with OOP languages (such as JavaScript), the creation of an instance is done one way (e.g. with a constructor), and updating is done another way (e.g. with a setter function).
– Drew
Feb 17 '15 at 2:18
@Drew JavaScript is very forgiving when it comes to things like that. You can certainly make 'classes' and instantiate objects and implement constructors, but at times when it suits you to build-as-you-go, creating and setting with the same function is actually quite natural.
– Coty Johnathan Saxman
Feb 17 '15 at 2:56
@CotyJohnathanSaxman: Yes.
– Drew
Feb 17 '15 at 2:57
add a comment |
1
Thanks!set
is a really good option, I'm working with JavaScript, I'll see if anyone else comes up with something different :)
– undefined
Feb 17 '15 at 2:16
1
Just make sure that you can create a JavaScript object using the same operation as you use to update it. If not, then talking about setting it is not so appropriate. Typically, with OOP languages (such as JavaScript), the creation of an instance is done one way (e.g. with a constructor), and updating is done another way (e.g. with a setter function).
– Drew
Feb 17 '15 at 2:18
@Drew JavaScript is very forgiving when it comes to things like that. You can certainly make 'classes' and instantiate objects and implement constructors, but at times when it suits you to build-as-you-go, creating and setting with the same function is actually quite natural.
– Coty Johnathan Saxman
Feb 17 '15 at 2:56
@CotyJohnathanSaxman: Yes.
– Drew
Feb 17 '15 at 2:57
1
1
Thanks!
set
is a really good option, I'm working with JavaScript, I'll see if anyone else comes up with something different :)– undefined
Feb 17 '15 at 2:16
Thanks!
set
is a really good option, I'm working with JavaScript, I'll see if anyone else comes up with something different :)– undefined
Feb 17 '15 at 2:16
1
1
Just make sure that you can create a JavaScript object using the same operation as you use to update it. If not, then talking about setting it is not so appropriate. Typically, with OOP languages (such as JavaScript), the creation of an instance is done one way (e.g. with a constructor), and updating is done another way (e.g. with a setter function).
– Drew
Feb 17 '15 at 2:18
Just make sure that you can create a JavaScript object using the same operation as you use to update it. If not, then talking about setting it is not so appropriate. Typically, with OOP languages (such as JavaScript), the creation of an instance is done one way (e.g. with a constructor), and updating is done another way (e.g. with a setter function).
– Drew
Feb 17 '15 at 2:18
@Drew JavaScript is very forgiving when it comes to things like that. You can certainly make 'classes' and instantiate objects and implement constructors, but at times when it suits you to build-as-you-go, creating and setting with the same function is actually quite natural.
– Coty Johnathan Saxman
Feb 17 '15 at 2:56
@Drew JavaScript is very forgiving when it comes to things like that. You can certainly make 'classes' and instantiate objects and implement constructors, but at times when it suits you to build-as-you-go, creating and setting with the same function is actually quite natural.
– Coty Johnathan Saxman
Feb 17 '15 at 2:56
@CotyJohnathanSaxman: Yes.
– Drew
Feb 17 '15 at 2:57
@CotyJohnathanSaxman: Yes.
– Drew
Feb 17 '15 at 2:57
add a comment |
I believe it was mentioned in a comment, but Store
is very applicable.
Moreover, Store
matches in character count to Fetch
, which, if you're insane like me, is a quality you value in naming conventions.
function store(val: *);
function fetch(key: *);
function erase(key: *); // or purge()
2
+1 for acknowledging your own insanity, which I share, to be honest.
– undefined
Oct 29 at 23:16
add a comment |
I believe it was mentioned in a comment, but Store
is very applicable.
Moreover, Store
matches in character count to Fetch
, which, if you're insane like me, is a quality you value in naming conventions.
function store(val: *);
function fetch(key: *);
function erase(key: *); // or purge()
2
+1 for acknowledging your own insanity, which I share, to be honest.
– undefined
Oct 29 at 23:16
add a comment |
I believe it was mentioned in a comment, but Store
is very applicable.
Moreover, Store
matches in character count to Fetch
, which, if you're insane like me, is a quality you value in naming conventions.
function store(val: *);
function fetch(key: *);
function erase(key: *); // or purge()
I believe it was mentioned in a comment, but Store
is very applicable.
Moreover, Store
matches in character count to Fetch
, which, if you're insane like me, is a quality you value in naming conventions.
function store(val: *);
function fetch(key: *);
function erase(key: *); // or purge()
edited Oct 28 at 3:57
answered Oct 28 at 3:46
Dan Lugg
1414
1414
2
+1 for acknowledging your own insanity, which I share, to be honest.
– undefined
Oct 29 at 23:16
add a comment |
2
+1 for acknowledging your own insanity, which I share, to be honest.
– undefined
Oct 29 at 23:16
2
2
+1 for acknowledging your own insanity, which I share, to be honest.
– undefined
Oct 29 at 23:16
+1 for acknowledging your own insanity, which I share, to be honest.
– undefined
Oct 29 at 23:16
add a comment |
Within the context of development if you are appling some CRUD changes in one operation I usually opt for "sync" or "synchronize" as a method name.
add a comment |
Within the context of development if you are appling some CRUD changes in one operation I usually opt for "sync" or "synchronize" as a method name.
add a comment |
Within the context of development if you are appling some CRUD changes in one operation I usually opt for "sync" or "synchronize" as a method name.
Within the context of development if you are appling some CRUD changes in one operation I usually opt for "sync" or "synchronize" as a method name.
edited Jun 3 '15 at 13:51
answered Jun 2 '15 at 9:31
Steve Whitfield
1392
1392
add a comment |
add a comment |
Populate may be appropriate. When you create or update an object, you typically "populate" the object with new property values.
add a comment |
Populate may be appropriate. When you create or update an object, you typically "populate" the object with new property values.
add a comment |
Populate may be appropriate. When you create or update an object, you typically "populate" the object with new property values.
Populate may be appropriate. When you create or update an object, you typically "populate" the object with new property values.
answered Dec 15 '15 at 18:09
James Lawruk
1193
1193
add a comment |
add a comment |
Key-Value stores often use put
to create/update and get
to retrieve.
I'm late to the party but mention it because save
(the accepted and popular answer) suggests that the thing being created or updated is persisted as well. That might or might not be the case. Often persisting is within transactions and done with commit
. So if you use save
to create or update the object it might still not be saved. In fact, usually isn't saved.
New contributor
add a comment |
Key-Value stores often use put
to create/update and get
to retrieve.
I'm late to the party but mention it because save
(the accepted and popular answer) suggests that the thing being created or updated is persisted as well. That might or might not be the case. Often persisting is within transactions and done with commit
. So if you use save
to create or update the object it might still not be saved. In fact, usually isn't saved.
New contributor
add a comment |
Key-Value stores often use put
to create/update and get
to retrieve.
I'm late to the party but mention it because save
(the accepted and popular answer) suggests that the thing being created or updated is persisted as well. That might or might not be the case. Often persisting is within transactions and done with commit
. So if you use save
to create or update the object it might still not be saved. In fact, usually isn't saved.
New contributor
Key-Value stores often use put
to create/update and get
to retrieve.
I'm late to the party but mention it because save
(the accepted and popular answer) suggests that the thing being created or updated is persisted as well. That might or might not be the case. Often persisting is within transactions and done with commit
. So if you use save
to create or update the object it might still not be saved. In fact, usually isn't saved.
New contributor
New contributor
answered 2 days ago
Peter
111
111
New contributor
New contributor
add a comment |
add a comment |
I am using upinit
"word" for this. In DB world, there is upsert
(update or insert). Why not to have update or init?
add a comment |
I am using upinit
"word" for this. In DB world, there is upsert
(update or insert). Why not to have update or init?
add a comment |
I am using upinit
"word" for this. In DB world, there is upsert
(update or insert). Why not to have update or init?
I am using upinit
"word" for this. In DB world, there is upsert
(update or insert). Why not to have update or init?
answered Oct 8 at 14:38
rnd
1
1
add a comment |
add a comment |
In SQL terminology merge
term is used for this: https://en.wikipedia.org/wiki/Merge_(SQL)
This is a synonym of upsert
(update + insert) which, in my opinion, suits even better, because its meaning is explicit.
add a comment |
In SQL terminology merge
term is used for this: https://en.wikipedia.org/wiki/Merge_(SQL)
This is a synonym of upsert
(update + insert) which, in my opinion, suits even better, because its meaning is explicit.
add a comment |
In SQL terminology merge
term is used for this: https://en.wikipedia.org/wiki/Merge_(SQL)
This is a synonym of upsert
(update + insert) which, in my opinion, suits even better, because its meaning is explicit.
In SQL terminology merge
term is used for this: https://en.wikipedia.org/wiki/Merge_(SQL)
This is a synonym of upsert
(update + insert) which, in my opinion, suits even better, because its meaning is explicit.
answered Nov 3 at 9:54
Yan Takushevich
1012
1012
add a comment |
add a comment |
Thanks for contributing an answer to English Language & Usage Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fenglish.stackexchange.com%2fquestions%2f227915%2fword-meaning-both-create-and-update%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
Crupdate? Someone had the same problem with you and neologized crupdate also :)
– ermanen
Feb 17 '15 at 2:42
17
The standard terminology in the RDBMS world is "upsert".
– Dan Bron
Feb 17 '15 at 2:55
1
Is it weird that I find these really funny? Thanks for the suggestions!
– undefined
Feb 17 '15 at 2:58
This question is better asked on a relevant tech Q&A or SO.
– Kris
Feb 17 '15 at 6:45
1
Exactly the question I had in mind. I went into the thesaurus after looking at the answers, and came up with these: manage, commit, save, renew, refresh, maintain, secure, store, support, install, keep, store, stash, ... I think I like save, because in the context of computers (operating systems, actually), saving a file means both creating one if it doesn't exists, and updating it if it already exists.
– ADTC
Mar 12 '16 at 12:59