B1 · Episode 3 · 5:18
Hardware and Software
Ada discovers the difference between hardware and software at the library, learns programming basics, writes her first program to make an LED blink, and later creates a practical program to automatically turn off her brother's speaker after 30 minutes.
Source:Free Software Foundation Europe / Wikimedia Commons · License:CC BY-SA 4.0
Transcript
En quelques jours, à l'école d'Ada, on oublia la frayeur du début.
Within a few days, at Ada’s school, everyone forgot the initial fear.
Les skateboards ne roulaient certes plus sur les trottoirs, mais à part ça,
Skateboards certainly no longer rolled on the sidewalks, but apart from that,
ils fonctionnaient toujours.
they still worked fine.
Les enfants tournaient en rond dans la cour et écoutaient de la musique tout
Children circled around the playground and listened to music softly,
doucement. Seule une musique militaire, pompeuse et bizarre,
only a strange, pompous military tune,
retentissait avec le même volume sonore qu'avant.
blared at the same volume as before.
Plutôt énigmatique.
That was rather puzzling.
Le jour préféré d'Ada était le mercredi.
Ada’s favorite day was Wednesday.
Tous les mercredis, sa mère venait la chercher à l'école avec Alan et ils allaient
Every Wednesday, her mother came to pick her up at school with Alan,
ensemble à la bibliothèque.
and they all went together to the library.
Ada filait dans le coin consacré aux ouvrages techniques.
Ada headed straight for the technical books section.
On y trouvait les livres avec des schémas de construction,
There were books with construction diagrams,
des consignes pour effectuer des expériences et des explications sur le
instructions for carrying out experiments,
fonctionnement de divers appareils.
and explanations of how various devices work.
Dans la bibliothèque, Ada pouvait aussi accéder à Internet sur son téléphone
At the library, Ada could also go online using her mobile phone,
portable. Elle se rendit vite compte qu'on pouvait y trouver tout un tas de choses.
and she quickly realized that one could find all kinds of things there.
Sur Internet, beaucoup de gens partageaient leurs idées et leurs astuces de
On the internet, many people shared their ideas and repair tips,
réparation pour aider les autres.
to help others.
Cet après midi là, Ada a appris deux nouveaux mots.
That afternoon, Ada learned two new words:
matériel et logiciel.
‘hardware’ and ‘software’.
Matériel désignait quelque chose qu'en fait Ada connaissait déjà,
‘Hardware’ referred to something Ada already knew about—
les appareils électroniques sur lesquels elle bricolait.
the electronic devices she tinkered with.
Ces appareils, elle pouvait les tenir dans sa main et les traficoter.
She could hold these devices in her hands and tinker with them.
Mais le mot logiciel était tout à fait nouveau pour Ada.
But the word ‘software’ was entirely new to Ada.
Elle comprit vite qu'il désignait les consignes données aux appareils ou aux
She quickly understood it meant instructions given to devices or computers.
ordinateurs. Dans certains livres,
In some books,
on appelait ces consignes des programmes ou du code.
these instructions were called ‘programs’ or ‘code’.
Avec un programme informatique,
With a computer program,
on pouvait par exemple dire aux enceintes quelle chanson elles devaient diffuser et
you could, for example, tell the speakers which song to play,
à quel niveau sonore.
and at what volume.
Le plus génial dans la nouvelle découverte d'Ada
The most amazing thing about Ada’s new discovery was
était qu'on pouvait bricoler le logiciel de la même manière que le matériel.
that you could tinker with software just like hardware.
On pouvait bricoler les objets avec un marteau, une perceuse ou des vis.
You could tinker with physical objects using hammers, drills, or screws.
On construisa des logiciels en inscrivant les ordres donnés au matériel les uns à la
People built software by writing instructions
suite des autres.
one after another for the hardware.
Il existait même une langue pour ça,
There was even a special language for this,
le langage de programmation.
called a programming language.
Avec les logiciels, Ada pourrait rendre ses inventions encore plus pratiques.
With software, Ada could make her inventions even more practical.
Il fallait absolument qu'elle apprenne le langage de programmation.
She absolutely had to learn the programming language.
Les semaines suivantes, Ada passa tout son temps libre à la bibliothèque.
Over the following weeks, Ada spent all her free time in the library.
Elle trouva des livres et des sites internet qui expliquaient comment fonctionnait
She found books and websites explaining how
le langage de programmation et le code.
programming languages and code work.
Ada avait un peu l'impression que c'était comme si elle apprenait un langage secret,
Ada felt learning it was like studying a secret language,
ou révisait du vocabulaire à l'école.
or reviewing vocabulary at school.
Ada fit des recherches.
Ada did some research.
Son premier programme devait produire quelque chose de simple.
Her first program needed to do something simple.
Fais clignoter cette lampe.
Make this lamp blink.
Bien sûr, elle voulut aussitôt essayer pour voir si cela fonctionnait vraiment.
Of course, she immediately wanted to try it out to see if it really worked.
Dans la décharge, elle connecta son téléphone à une petite lampe LED.
In the scrapyard, she connected her phone to a small LED lamp.
Ensuite, elle rentra dans son téléphone les lignes de programme qu'elle avait
Then, she typed the lines of code she’d written into her phone.
notées. il ne se passa rien
Nothing happened.
ada réfléchit à l'endroit où l'erreur pouvait se trouver elle entreprit quelques
Ada thought about where the mistake might be,
modifications tenta à nouveau et oui la petite lampe commença à clignoter
made some changes, tried again—and yes! The little lamp started blinking.
Jour, nuit, jour, nuit.
On, off, on, off.
Ada regarda avec émerveillement la LED.
Ada looked at the LED in wonder.
Elle avait créé son tout premier programme!
She had written her very first program!
Ada était totalement aux anges.
Ada was over the moon.
Elle se mit à imaginer les choses géniales qu'elle pourrait faire fonctionner avec
She began imagining amazing things she could make work with
ça. Si elle entrait le bon code de programmation,
this. If she entered the right programming code,
alors ses découvertes feraient exactement ce qu'elle voudrait.
then her inventions would do exactly what she wanted.
Ce n'était pas si facile, mais au bout de quelques semaines,
It wasn’t easy, but after a few weeks,
Ada avait créé un programme vraiment pratique.
Ada had created a truly useful program.
L'enceinte d'Alan se déconnectait désormais automatiquement au bout d'une demi heure
Alan’s speaker now automatically disconnected after half an hour
quand il s'endormait.
when he fell asleep.
Ada avait déjà une nouvelle idée de programme.
Ada already had an idea for a new program.
Quelque chose de plus important, un vrai projet.
Something more important—a real project.
Elle aurait probablement besoin de toutes les vacances d'été pour ça,
She’d probably need the whole summer vacation for it,
et elle trépignait d'impatience.
and she couldn’t wait.
Tsagagamann dormait terriblement mal depuis l'horrible promenade.
Tsagagamann had been sleeping terribly since that awful walk.
Quand il allait se coucher le soir, de gros soucis l'angoissaient.
When he went to bed each evening, big worries troubled him.
Oh non! Mes merveilleuses inventions!
Oh no! My wonderful inventions!
Ce n'est pas possible que tout le monde s'amuse avec comme ça!
It can’t be possible that everyone just plays with them like this!
On ne sait pas ce qui peut arriver, j'ai pourtant bien réfléchi à tout,
No one knows what might happen—I’ve thought carefully about everything,
jusque dans le moindre détail.
down to the tiniest detail!
Tsinga- Man cogitait, cogitait,
Tsinga-Man pondered and pondered,
se tournait et retournait toute la nuit dans son lit, sans trouver le sommeil.
tossing and turning all night in bed, unable to sleep.
Quand il se leva un matin, le front creusé par les soucis,
One morning, when he got up with worry lines etched across his forehead,
Tsangyang Gyaltsen prit une décision.
Tsangyang Gyaltsen made a decision.
Cela ne pouvait pas continuer comme ça.
This couldn’t go on like this.
Il s'assit devant son ordinateur en or et se mit à écrire un programme après
He sat down in front of his golden computer and began writing programs,
l'autre.
one after another.