Tutorial Introduction

Welcome!

Welcome to the Setanta tutorial!

We hope you’re ready to learn all about programming, Irish and how they go hand in hand.

There’s just a few things to cover before you’re ready to start!

Languages

This tutorial is available in English and in Irish, use the button at the top of the page to switch between languages.

If you see a word with an underline like this, it’s a word with a translation. Hover over or click on the word to see it’s translation. Try it out!.

Setanta Editors

Throughout this tutorial you will find Setanta editors like this.

Editors are where we can write Setanta programs. We type a program into the box on the left, and we press to start it. The results of the program will be shown on the right.

Press the button to run the code. You should see “Dia duit!” on the right hand side.

The Console

On the right hand side of the editor you should see

Dia Duit!

This is the console. The console is where we can read and write messages. In the previous program we used the scríobh action to write “Dia Duit!” to the console.

We can also use the console to send messages to the program. Try running this next program. It should print “Cad is ainm duit?” on the console. Type your name into the text box and press enter.

Click on the button to clear the console.

Demo

Entering your name

The Stage

Each editor has 2 tabs you can switch between. One that shows the console, and another that shows the stage.

The stage is where we can use Setanta programs to draw pictures or animations, and even to make games!

Run the following program, then click on the “Stáitse/Stage” tab to view the stage.

You should see a red circle.

Red Circle

try-setanta.ie

The editors that we’ll use in the tutorial are small versions of the try-setanta.ie main editor. If you’d like to try out your code on a bigger screen, or save your code and share it with others, you should visit try-setanta.ie/editor.

There is more detailed documentation about some of Setanta’s features available at docs.try-setanta.ie.

Let’s get started!

Now that you’ve seen how to use the editors and translations, it’s time to get started learning Setanta. You can move onto the next section by clicking the “Next Page” link in the contents panel, or by clicking the “Next Page” button at the bottom of the page.