When and How to Use Each Expression?
Get a sense of when and how each expression can be used through the following examples!To enqueue (Infinitive)
Purpose or Intention: Use the infinitive "to enqueue" when you want to express a purpose, intention, desire, or potential action
Example
I want to enqueue this task to ensure it gets processed.
Enqueuing (Gerund)
Activity or Experience: Use the gerund "enqueuing" when you want to refer to the activity itself or the experience as a noun.
Example
Enqueuing is an important step in the process.
Where can infinitives/gerunds be placed in a sentence?
To enqueue (Infinitive)
- 1Subject
To enqueue is a common operation in computer programming.
To enqueue is a common operation in computer programming.
- "*To enqueue*" serves as the subject of the sentence.
- Infinitive phrase (subject) + verb (is) + noun phrase (a common operation in computer programming).
- 2Object
She wants me to enqueue these tasks into the system.
She wants me to enqueue these tasks into the system.
- "Me *to enqueue* these tasks into the system" is the object of the verb "wants."
- Noun (She) + verb (wants) + noun phrase (me *to enqueue* these tasks into the system).
- 3Adjective Modifier
I need a queue to enqueue my tasks.
I need a queue to enqueue my tasks.
- "*To enqueue* my tasks" modifies the noun "queue."
- Noun (I) + verb (need) + noun phrase (a queue *to enqueue* my tasks).
Enqueuing (Gerund)
- 1Subject
Enqueuing ensures that tasks are processed in the correct order.
Enqueuing ensures that tasks are processed in the correct order.
- "*Enqueuing*" is the subject of the sentence.
- Gerund (subject) + verb (ensures) + noun phrase (that tasks are processed in the correct order).
- 2Object
I enjoy enqueuing tasks into the system.
I enjoy enqueuing tasks into the system.
- "*Enqueuing* tasks into the system" is the object of the verb "enjoy."
- Noun (I) + verb (enjoy) + gerund (*enqueuing* tasks into the system).
- 3Object of Preposition
She has a passion for enqueuing requests.
She has a passion for enqueuing requests.
- "For *enqueuing* requests" is the object of the preposition "for."
- Noun phrase (She) + verb (has) + noun phrase (a passion for *enqueuing* requests).
Verbs Taking Infinitives/Gerunds as Objects
The following are verbs that can take only the base form of the verb (infinitive), only the -ing form (gerund), or both.Verbs Taking Infinitives as Objects
Example
She plans to enqueue the requests tomorrow.
They hope to enqueue all the items before the deadline.
He wants to enqueue the new feature into the development pipeline.
We decided to enqueue the bug fix in the next release.
They agreed to enqueue the user requests together.
Verbs Taking Gerunds as Objects
Example
They recommend automating the process of enqueuing tasks.
I am considering enqueuing the tasks in parallel.
He avoids enqueuing duplicate requests into the system.
We delayed enqueuing the job until the dependencies were resolved.
Can you understand the importance of enqueuing tasks correctly?
Verbs Taking Both Infinitives and Gerunds as Objects
Example
She likes to enqueue the tasks in batches. She likes enqueuing the tasks in batches.
We started to enqueue the incoming requests. We started enqueuing the incoming requests.
He began to enqueue the data for processing. He began enqueuing the data for processing.