update slides and def

This commit is contained in:
gwen 2024-10-21 15:03:34 +02:00
parent 45b9a5495e
commit c361629b63
3 changed files with 28 additions and 12 deletions

View file

@ -1,7 +1,7 @@
Tutorial with a real world sample Tutorial with a real world sample
===================================== =====================================
Here's the demo. We're gonna start with a use case that comes from the real world. Here's a quite well supplied tutorial, we're gonna start with a use case that comes from the real world.
.. demo:: Demo: configuring (the setting of) your favorite web browser .. demo:: Demo: configuring (the setting of) your favorite web browser
@ -15,14 +15,13 @@ More precisely, this tutorial aims at reproducing this Mozilla Firefox settings
We are just going to handle some of the firefox configuration settings We are just going to handle some of the firefox configuration settings
with Rougail. with Rougail.
Presentation of the firefox configuration variables Presentation of the firefox configuration variables
----------------------------------------------------------- -----------------------------------------------------------
Let's dive into the configuration validation use case, Let's dive into the configuration validation use case,
that is the values entered by the user that have to be validated. that is the values entered by the user that have to be validated.
At first glance we have a choice between five variables: At first glance we have a selection of five options configuration values that we need to fill in:
.. image:: images/firefox_01.png .. image:: images/firefox_01.png

View file

@ -1,15 +1,17 @@
Preliminaries Preliminaries
================ ================
.. prerequisites:: Prerequisistes .. objectives:: Objectives
You need to know how to: We will learn how to:
- create a Rougail :term:`dictionary` - create a Rougail :term:`dictionary` (the structure description file)
- define a Rougail format version - define a Rougail format version
- define a Rougail :term:`variable` - define a Rougail :term:`variable` and set its :term:`value`
.. type-along:: Workshop .. type-along:: Reminders
We alread learned in other workshops how to:
- define a Rougail :term:`dictionary` - define a Rougail :term:`dictionary`
@ -53,10 +55,10 @@ The operator role
operator operator
An operator ih the Rougail logic is the person who gives values to the pre-defined variables, An operator ih the Rougail logic is the person who gives :term:`value`\ s to the pre-defined variables,
his responsabilities are to set variable values correctly. his responsabilities are to set variable values correctly.
The :term:`user values`, that is the values that have been set by the operator, are validated The user :term:`value`\ s, that is the values that have been set by the operator, are validated
by the dictionary structure. by the dictionary structure.
.. image:: images/operator.png .. image:: images/operator.png
@ -76,3 +78,11 @@ But instead of coding in the end user developer way, the opterator will prefer u
The Rougail CLI can output a rather complete view of the dataset: The Rougail CLI can output a rather complete view of the dataset:
.. image:: images/UserDataOutput.png .. image:: images/UserDataOutput.png
.. keypoints:: Progress keypoints
- :term:`dictionary`: structure description file
- :term:`variable`: an option's name wich has a value
- a variable's description
- a variable's default value
- the integrator and operator role

View file

@ -9,9 +9,16 @@ Synopsis
variable variable
variables variables
A variable is an abstract black box (container) paired with an associated symbolic name, which contains some defined or undefined quantity of data referred to as a `value`. A variable is an abstract black box (container) paired with an associated symbolic name, wmost often an option configuration, hich contains some defined or undefined data setting referred to as a :term:`value`.
.. discussion:: This definition, makes a heavy use of data typing. value
A variable can have a default value, that is a option configuration setting in the :term:`dictionary` structure,
or no value at all, then the value needs to be define by the :term:`operator`.
.. discussion:: Discussion
This definition makes a heavy use of data typing.
Indeed, depending on the type system definition of the constistency handling system used, variables may only be able to store a specified data type. Indeed, depending on the type system definition of the constistency handling system used, variables may only be able to store a specified data type.
OK, variables are the containers for storing the values. It has something to do with typing. OK, variables are the containers for storing the values. It has something to do with typing.
But this is not just about typing. But this is not just about typing.