Need words for C++ classes that deal with replacing and handling requests [on hold]












0















How understandable a program is often stands or falls with the correct choice of class and variable names; so this is really important to me.



I am designing a system where different threads do "requests" for an update of the "state" of a (sub)system. The requests are actually done in two steps: first a thread calls a method on a common object that then writes to a wrapped atomic int (aka, the "request" is really just some integer value). Then that same thread will continue with trying to synchronize the (sub)system with the requested state that it just wrote - this takes considerably more time of course. It is possible that before the thread gets to the synchronizing part another thread already replaced the request with a different one. In that case the first thread doesn't have to do anything (so the request was replaced, or superseded and became obsolete). The normal flow will be where almost every requests is handled, but it might happen that one is skipped because it was replaced before it could be handled thus.



I need names for three classes:



1) A class for objects that describe the (sub)system state (these will both, wrap the atomic int as well as keep track of what the last requester was).
2) A class for objects that describe a state that is being transported; this is a copy of the above atomic (it is therefore fuzzy; immediately after copying the atomic, the value might already be invalidated).
3) A class for objects that mark the begin and end area in which the above copy is made (acquired is the right word here), and transported to a critical area inside another function where it will be either handled or discarded.



Possible words would be 1) StateTracker, 2) StateTransport, 3) TransportLock. However, this doesn't capture the superseding nature, I find the word 'state' too general (I'm using it already so much) and the 'Tracker' side is really something internal, nothing to bother the user with (I'd rather just call it 'State').



I think a good way to proceed is to think of something physical and then name the classes after that model. The system kinda looks like a queue with a size of one (immediate replacement / discarding all predecessors). Ie, normally something would be placed in the "queue" (or on a small table) and then taken from there; but sometimes it would still be in the queue / on the table while a new object is placed there and just be lost.










share|improve this question







New contributor




Carlo Wood is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as off-topic by Jason Bassford, Robusto, tchrist yesterday



  • This question does not appear to be about English language and usage within the scope defined in the help center.

If this question can be reworded to fit the rules in the help center, please edit the question.

















  • This looks suspiciously too much like something related to programming than to the English language. But even if the question could be rephrased to apply to English in general, it's too broad as it's currently posed. You haven't given enough information to clearly point to one word as opposed to any others. Also, none of your examples are wholly real words in the first place. You can't say that you think state is too general a word—but that, at the same time, you prefer it to StateTracker (which is made up of two real words).

    – Jason Bassford
    yesterday






  • 1





    I'm voting to close this question because the naming of programming artifacts is specifically off-topic for this site.

    – Robusto
    yesterday











  • Then why is there a predefined tag 'programming'? I'm not asking a programming question, I'm asking for suggestions of English words that describe the things that I described :/.

    – Carlo Wood
    yesterday











  • See Jeff Atwood’s comment under this question from many years ago.

    – Robusto
    yesterday











  • It sounds like 1. Before coming up with names you need to come up with a better decomposition. 2. Your system is going to be plagued with race conditions.

    – Jim
    yesterday
















0















How understandable a program is often stands or falls with the correct choice of class and variable names; so this is really important to me.



I am designing a system where different threads do "requests" for an update of the "state" of a (sub)system. The requests are actually done in two steps: first a thread calls a method on a common object that then writes to a wrapped atomic int (aka, the "request" is really just some integer value). Then that same thread will continue with trying to synchronize the (sub)system with the requested state that it just wrote - this takes considerably more time of course. It is possible that before the thread gets to the synchronizing part another thread already replaced the request with a different one. In that case the first thread doesn't have to do anything (so the request was replaced, or superseded and became obsolete). The normal flow will be where almost every requests is handled, but it might happen that one is skipped because it was replaced before it could be handled thus.



I need names for three classes:



1) A class for objects that describe the (sub)system state (these will both, wrap the atomic int as well as keep track of what the last requester was).
2) A class for objects that describe a state that is being transported; this is a copy of the above atomic (it is therefore fuzzy; immediately after copying the atomic, the value might already be invalidated).
3) A class for objects that mark the begin and end area in which the above copy is made (acquired is the right word here), and transported to a critical area inside another function where it will be either handled or discarded.



Possible words would be 1) StateTracker, 2) StateTransport, 3) TransportLock. However, this doesn't capture the superseding nature, I find the word 'state' too general (I'm using it already so much) and the 'Tracker' side is really something internal, nothing to bother the user with (I'd rather just call it 'State').



I think a good way to proceed is to think of something physical and then name the classes after that model. The system kinda looks like a queue with a size of one (immediate replacement / discarding all predecessors). Ie, normally something would be placed in the "queue" (or on a small table) and then taken from there; but sometimes it would still be in the queue / on the table while a new object is placed there and just be lost.










share|improve this question







New contributor




Carlo Wood is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as off-topic by Jason Bassford, Robusto, tchrist yesterday



  • This question does not appear to be about English language and usage within the scope defined in the help center.

If this question can be reworded to fit the rules in the help center, please edit the question.

















  • This looks suspiciously too much like something related to programming than to the English language. But even if the question could be rephrased to apply to English in general, it's too broad as it's currently posed. You haven't given enough information to clearly point to one word as opposed to any others. Also, none of your examples are wholly real words in the first place. You can't say that you think state is too general a word—but that, at the same time, you prefer it to StateTracker (which is made up of two real words).

    – Jason Bassford
    yesterday






  • 1





    I'm voting to close this question because the naming of programming artifacts is specifically off-topic for this site.

    – Robusto
    yesterday











  • Then why is there a predefined tag 'programming'? I'm not asking a programming question, I'm asking for suggestions of English words that describe the things that I described :/.

    – Carlo Wood
    yesterday











  • See Jeff Atwood’s comment under this question from many years ago.

    – Robusto
    yesterday











  • It sounds like 1. Before coming up with names you need to come up with a better decomposition. 2. Your system is going to be plagued with race conditions.

    – Jim
    yesterday














0












0








0








How understandable a program is often stands or falls with the correct choice of class and variable names; so this is really important to me.



I am designing a system where different threads do "requests" for an update of the "state" of a (sub)system. The requests are actually done in two steps: first a thread calls a method on a common object that then writes to a wrapped atomic int (aka, the "request" is really just some integer value). Then that same thread will continue with trying to synchronize the (sub)system with the requested state that it just wrote - this takes considerably more time of course. It is possible that before the thread gets to the synchronizing part another thread already replaced the request with a different one. In that case the first thread doesn't have to do anything (so the request was replaced, or superseded and became obsolete). The normal flow will be where almost every requests is handled, but it might happen that one is skipped because it was replaced before it could be handled thus.



I need names for three classes:



1) A class for objects that describe the (sub)system state (these will both, wrap the atomic int as well as keep track of what the last requester was).
2) A class for objects that describe a state that is being transported; this is a copy of the above atomic (it is therefore fuzzy; immediately after copying the atomic, the value might already be invalidated).
3) A class for objects that mark the begin and end area in which the above copy is made (acquired is the right word here), and transported to a critical area inside another function where it will be either handled or discarded.



Possible words would be 1) StateTracker, 2) StateTransport, 3) TransportLock. However, this doesn't capture the superseding nature, I find the word 'state' too general (I'm using it already so much) and the 'Tracker' side is really something internal, nothing to bother the user with (I'd rather just call it 'State').



I think a good way to proceed is to think of something physical and then name the classes after that model. The system kinda looks like a queue with a size of one (immediate replacement / discarding all predecessors). Ie, normally something would be placed in the "queue" (or on a small table) and then taken from there; but sometimes it would still be in the queue / on the table while a new object is placed there and just be lost.










share|improve this question







New contributor




Carlo Wood is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












How understandable a program is often stands or falls with the correct choice of class and variable names; so this is really important to me.



I am designing a system where different threads do "requests" for an update of the "state" of a (sub)system. The requests are actually done in two steps: first a thread calls a method on a common object that then writes to a wrapped atomic int (aka, the "request" is really just some integer value). Then that same thread will continue with trying to synchronize the (sub)system with the requested state that it just wrote - this takes considerably more time of course. It is possible that before the thread gets to the synchronizing part another thread already replaced the request with a different one. In that case the first thread doesn't have to do anything (so the request was replaced, or superseded and became obsolete). The normal flow will be where almost every requests is handled, but it might happen that one is skipped because it was replaced before it could be handled thus.



I need names for three classes:



1) A class for objects that describe the (sub)system state (these will both, wrap the atomic int as well as keep track of what the last requester was).
2) A class for objects that describe a state that is being transported; this is a copy of the above atomic (it is therefore fuzzy; immediately after copying the atomic, the value might already be invalidated).
3) A class for objects that mark the begin and end area in which the above copy is made (acquired is the right word here), and transported to a critical area inside another function where it will be either handled or discarded.



Possible words would be 1) StateTracker, 2) StateTransport, 3) TransportLock. However, this doesn't capture the superseding nature, I find the word 'state' too general (I'm using it already so much) and the 'Tracker' side is really something internal, nothing to bother the user with (I'd rather just call it 'State').



I think a good way to proceed is to think of something physical and then name the classes after that model. The system kinda looks like a queue with a size of one (immediate replacement / discarding all predecessors). Ie, normally something would be placed in the "queue" (or on a small table) and then taken from there; but sometimes it would still be in the queue / on the table while a new object is placed there and just be lost.







programming






share|improve this question







New contributor




Carlo Wood is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Carlo Wood is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Carlo Wood is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









Carlo WoodCarlo Wood

1041




1041




New contributor




Carlo Wood is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Carlo Wood is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Carlo Wood is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




put on hold as off-topic by Jason Bassford, Robusto, tchrist yesterday



  • This question does not appear to be about English language and usage within the scope defined in the help center.

If this question can be reworded to fit the rules in the help center, please edit the question.







put on hold as off-topic by Jason Bassford, Robusto, tchrist yesterday



  • This question does not appear to be about English language and usage within the scope defined in the help center.

If this question can be reworded to fit the rules in the help center, please edit the question.













  • This looks suspiciously too much like something related to programming than to the English language. But even if the question could be rephrased to apply to English in general, it's too broad as it's currently posed. You haven't given enough information to clearly point to one word as opposed to any others. Also, none of your examples are wholly real words in the first place. You can't say that you think state is too general a word—but that, at the same time, you prefer it to StateTracker (which is made up of two real words).

    – Jason Bassford
    yesterday






  • 1





    I'm voting to close this question because the naming of programming artifacts is specifically off-topic for this site.

    – Robusto
    yesterday











  • Then why is there a predefined tag 'programming'? I'm not asking a programming question, I'm asking for suggestions of English words that describe the things that I described :/.

    – Carlo Wood
    yesterday











  • See Jeff Atwood’s comment under this question from many years ago.

    – Robusto
    yesterday











  • It sounds like 1. Before coming up with names you need to come up with a better decomposition. 2. Your system is going to be plagued with race conditions.

    – Jim
    yesterday



















  • This looks suspiciously too much like something related to programming than to the English language. But even if the question could be rephrased to apply to English in general, it's too broad as it's currently posed. You haven't given enough information to clearly point to one word as opposed to any others. Also, none of your examples are wholly real words in the first place. You can't say that you think state is too general a word—but that, at the same time, you prefer it to StateTracker (which is made up of two real words).

    – Jason Bassford
    yesterday






  • 1





    I'm voting to close this question because the naming of programming artifacts is specifically off-topic for this site.

    – Robusto
    yesterday











  • Then why is there a predefined tag 'programming'? I'm not asking a programming question, I'm asking for suggestions of English words that describe the things that I described :/.

    – Carlo Wood
    yesterday











  • See Jeff Atwood’s comment under this question from many years ago.

    – Robusto
    yesterday











  • It sounds like 1. Before coming up with names you need to come up with a better decomposition. 2. Your system is going to be plagued with race conditions.

    – Jim
    yesterday

















This looks suspiciously too much like something related to programming than to the English language. But even if the question could be rephrased to apply to English in general, it's too broad as it's currently posed. You haven't given enough information to clearly point to one word as opposed to any others. Also, none of your examples are wholly real words in the first place. You can't say that you think state is too general a word—but that, at the same time, you prefer it to StateTracker (which is made up of two real words).

– Jason Bassford
yesterday





This looks suspiciously too much like something related to programming than to the English language. But even if the question could be rephrased to apply to English in general, it's too broad as it's currently posed. You haven't given enough information to clearly point to one word as opposed to any others. Also, none of your examples are wholly real words in the first place. You can't say that you think state is too general a word—but that, at the same time, you prefer it to StateTracker (which is made up of two real words).

– Jason Bassford
yesterday




1




1





I'm voting to close this question because the naming of programming artifacts is specifically off-topic for this site.

– Robusto
yesterday





I'm voting to close this question because the naming of programming artifacts is specifically off-topic for this site.

– Robusto
yesterday













Then why is there a predefined tag 'programming'? I'm not asking a programming question, I'm asking for suggestions of English words that describe the things that I described :/.

– Carlo Wood
yesterday





Then why is there a predefined tag 'programming'? I'm not asking a programming question, I'm asking for suggestions of English words that describe the things that I described :/.

– Carlo Wood
yesterday













See Jeff Atwood’s comment under this question from many years ago.

– Robusto
yesterday





See Jeff Atwood’s comment under this question from many years ago.

– Robusto
yesterday













It sounds like 1. Before coming up with names you need to come up with a better decomposition. 2. Your system is going to be plagued with race conditions.

– Jim
yesterday





It sounds like 1. Before coming up with names you need to come up with a better decomposition. 2. Your system is going to be plagued with race conditions.

– Jim
yesterday










0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

"Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

Alcedinidae

RAC Tourist Trophy