# Introduction to Code Lessons

**Note**: You can write code using Trillo Workbench UI. It works for a simple program. If you need to use a source line debugger then writing code using local IDE makes more sense. The first lesson will show both ways.&#x20;

The following lessons cover important concepts of Trillo Workbench and how to program it using serverless functions (referred as Trillo functions). Trillo functions are different from GCP/Azure functions or AWS lambda in the following way.

1. They don’t deal with the database connection management, and complexities of the cloud. They use Trillo Workbench SDK API, which hides complexities. This means that the Trillo Workbench is required to run them.
2. Trillo Workbench acts as a restful API gateway with OAuth2 security layer therefore API gateway configuration is not required.
3. Trillo Workbench deploys them..
4. Trillo Workbench abstraction makes them cloud agnostic.

The following sections describe a few concepts that would be used in the lesson. They are simple and obvious therefore not repeated with each lesson.

<br>


---

# 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://trillo.gitbook.io/trillo-workbench-lessons/introduction-to-code-lessons.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.
