Introduction
You already know the logic behind your code. But when it comes time to describe it in English, do you feel like you could sound more professional and technically accurately?
If you’ve ever struggled to explain what your code does, in an interview, a stand-up, or during a code review – this is for you.
This article gives you 20 powerful, precise verbs to describe code. Each verb comes with a short explanation and code snippet, so you can immediately apply it to your own work.
run – Start the execution
$ python app.py
“You can run the script locally or deploy it to the server.”
Use this to describe starting code or scripts.
execute – Carry out an operation
SELECT * FROM users;
“This query executes once the form is submitted.”
Slightly more formal than “run.” Common in SQL and backend scripts.
iterate – Go through items one by one
for item in items:
print(item)
“This loop iterates over each item in the list.”
Use it for loops or any repeated operation.
check – Test a condition
if (!user) {
throw new Error("User not found");
}
“The function checks if the user exists before continuing.”
Common when explainingifstatements or validation logic.
compare – Examine two values
if (score > highScore) {
highScore = score;
}
“We compare the current score to the high score.”
Used in sorting, conditionals, and data analysis.
return – Output a value from a function
def get_total(prices):
return sum(prices)
“This function returns the total price.”
Used when talking about the output of a function.
define – Create a function or variable
def greet(name):
print("Hello", name)
“We define a greeting function at the top of the script.”
Use this when you introduce or create something new in code.
initialize – Set a starting value
let count = 0;
“We initialize the count variable to zero.”
Often used in setup logic, state management, and loops.
import – Bring in external code
import React from 'react';
“The component imports React and other libraries.”
Use when pulling in dependencies or packages.
call or invoke – Trigger a function
sendEmail(user.email);
“We call the
sendEmailfunction with the user’s email.”
Describes the act of running a function or method.
calculate – Perform a formula
average = total / count
“The function calculates the average response time.”
Use when code is doing math or applying logic.
build – Assemble components
const Dashboard = () => (
<Layout>
<Header />
<Main />
</Layout>
);
“We build the dashboard layout using reusable components.”
Great for front-end and architecture explanations.
remove – Delete code or data
arr.splice(index, 1);
“We remove the selected item from the array.”
Use for deletions, cleanup, or optimization.
refactor – Rewrite for clarity or structure
Before:
def do_stuff(): ...
After:
def generate_user_report(): ...
“We refactored the function name to make it more descriptive.”
Used when improving code without changing functionality.
optimize – Improve speed or performance
Before: O(n²)
for (let i = 0; i < arr.length; i++) {After:
for (let j = 0; j < arr.length; j++) { ... }
}O(n log n)
arr.sort();
“The algorithm was optimized to reduce time complexity.”
Use this to describe performance improvements.
handle – Manage edge cases or exceptions
try:
connect_to_db()
except ConnectionError:
print("Failed to connect.")
“This block handles any database connection errors.”
Often used with error-handling or special scenarios.
fix – Correct a bug or issue
Bug: Incorrect condition
if (isLoggedIn = true) // ❌
“We fixed the bug by changing the assignment to a comparison.”
Use for bug reports, PRs, and retrospectives.
update – Modify something in the code
UPDATE users SET email = 'new@email.com' WHERE id = 1;
“We updated the email field in the database.”
Common for changing configurations, fields, or values.
validate – Ensure correctness
if (!email.includes('@')) {
throw new Error('Invalid email');
}
“The function validates the email format.”
Great when talking about user input or security.
track – Monitor something over time
useEffect(() => {
analytics.track("page_view");
}, []);
“We track page views using the analytics tool.”
Use when describing analytics, logs, or monitoring tools.
Practice: Describe Code
Now it’s time to practice the verbs and solidify them in your active vocabulary.
- Ask ChatGPT (or your favorite LLM) to generate a short code snippet in the programming language of your choice. For example:
“Write a short Python function that filters a list of numbers.” - Look at the code and try to describe it using the verbs from this article. Use full sentences as if you’re explaining it to a colleague or interviewer.
- Write or speak your explanation. Example:
“This function iterates through the list and returns only the even numbers.” - Ask ChatGPT to review your explanation. Try:
“Does this explanation clearly describe what the code does?”
Or:
“Can you improve this explanation using more technical or fluent language?” - Repeat the process with different kinds of functions or logic. Try loops, conditionals, API calls, database queries, or error-handling logic.




