# Consistent Naming

The same things should be always use the same name in the code. Coding is not an writing exercise where we are asked to use as many synonym as possible to create high quality literature.

Look at that method variables. `offset` is renamed to `startsWith` and then renamed to `startFrom`. Then `limit` parameter is renamed to `numItems` and then `howMany` parameter.

```
class Controller {
  private Service service;

  Response listJobs(@RequestParam("offset") final int startsWith, @RequestParam("limit") int numItems) {
    return Response.from(service.find(startsWith, numItems)).build();
  }
}

class Service {
  List<User> find(int startFrom, int howMany) {
     return null; // return something...
  }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ondrej-kvasnovsky-2.gitbook.io/design-patterns-handbook/clean-code-patterns/consistent-naming.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
