From 310f2d120d03e7325429cd5dc6063c2bba46e6a8 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 22 Mar 2022 12:25:47 +0000 Subject: [PATCH] Lua: Reorder programming section --- _en/basics/lua.md | 35 +++++++++++++++++++---------------- _it/basics/lua.md | 35 ++++++++++++++++++++--------------- 2 files changed, 39 insertions(+), 31 deletions(-) diff --git a/_en/basics/lua.md b/_en/basics/lua.md index e0188b6..6ae2f3f 100644 --- a/_en/basics/lua.md +++ b/_en/basics/lua.md @@ -12,6 +12,7 @@ redirect_from: /en/chapters/lua.html In this chapter we'll talk about scripting in Lua, the tools required to assist with this, and some techniques which you may find useful. +- [Programming](#programming) - [Code Editors](#code-editors) - [Coding in Lua](#coding-in-lua) - [Program Flow](#program-flow) @@ -19,11 +20,27 @@ to assist with this, and some techniques which you may find useful. - [Arithmetic Operators](#arithmetic-operators) - [Selection](#selection) - [Logical Operators](#logical-operators) -- [Programming](#programming) - [Local and Global Scope](#local-and-global-scope) - - [Locals should be used as much as possible](#locals-should-be-used-as-much-as-possible) - [Including other Lua Scripts](#including-other-lua-scripts) + +## Programming + +Programming is the action of taking a problem, such as sorting a list +of items, and turning it into steps that a computer can understand. + +Teaching you the logical process of programming is beyond the scope of this book; +however, the following websites are quite useful in developing this: + +* [Codecademy](http://www.codecademy.com/) is one of the best resources for + learning to write code. It provides an interactive tutorial experience. +* [Scratch](https://scratch.mit.edu) is a good resource for starting from + absolute basics, and learning the problem-solving techniques required to program.\\ + Scratch is *designed to teach children* how to program and isn't a serious + programming language. +* [Programming with Mosh](https://www.youtube.com/user/programmingwithmosh) is + a good YouTube series to learn programming. + ## Code Editors A code editor with code highlighting is sufficient for writing scripts in Lua. @@ -184,20 +201,6 @@ if is_equal then end ``` -## Programming - -Programming is the action of taking a problem, such as sorting a list -of items, and turning it into steps that a computer can understand. - -Teaching you the logical process of programming is beyond the scope of this book; -however, the following websites are quite useful in developing this: - -* [Codecademy](http://www.codecademy.com/) is one of the best resources for - learning to write code. It provides an interactive tutorial experience. -* [Scratch](https://scratch.mit.edu) is a good resource for starting from - absolute basics, and learning the problem-solving techniques required to program.\\ - Scratch is *designed to teach children* how to program and isn't a serious - programming language. ## Local and Global Scope diff --git a/_it/basics/lua.md b/_it/basics/lua.md index ebe3bd4..762ca75 100644 --- a/_it/basics/lua.md +++ b/_it/basics/lua.md @@ -11,17 +11,31 @@ redirect_from: /it/chapters/lua.html In questo capitolo parleremo della programmazione in Lua, degli strumenti necessari, e tratteremo alcune tecniche che troverai probabilmente utili. +- [Programmare](#programmare) - [Editor di codice](#editor-di-codice) - [Programmare in Lua](#programmare-in-lua) - - [Flusso del programma](#flusso-del-programma) - - [Tipi di variabili](#tipi-di-variabili) - - [Operatori matematici](#operatori-matematici) - - [Selezione](#selezione) - - [Operatori logici](#operatori-logici) -- [Programmare](#programmare) + - [Flusso del programma](#flusso-del-programma) + - [Tipi di variabili](#tipi-di-variabili) + - [Operatori matematici](#operatori-matematici) + - [Selezione](#selezione) + - [Operatori logici](#operatori-logici) - [Portata locale e globale](#portata-locale-e-globale) - [Inclusione di altri script Lua](#inclusione-di-altri-script-lua) + +## Programmare + +Programmare è l'azione di prendere un problema, come ordinare una lista di oggetti, e tramutarlo in dei passaggi che il computer può comprendere. + +Insegnarti i processi logici della programmazione non rientra nell'ambito di questo libro; tuttavia, i seguenti siti sono alquanto utili per approfondire l'argomento: + +* [Codecademy](http://www.codecademy.com/) è una delle migliori risorse per imparare come scrivere codice; offre un'esperienza guidata interattiva. +* [Scratch](https://scratch.mit.edu) è una buona risorsa quando si comincia dalle basi assolute, imparando le tecniche di problem solving necessarie per la programmazione.\\ + Scratch è *ideato per insegnare ai bambini* e non è un linguaggio serio di programmazione. +* [Programming with Mosh](https://www.youtube.com/user/programmingwithmosh) is + a good YouTube series to learn programming. + + ## Editor di codice Un editor di codice con evidenziamento delle parole chiave è sufficiente per scrivere script in Lua. @@ -166,15 +180,6 @@ if is_equal then end ``` -## Programmare - -Programmare è l'azione di prendere un problema, come ordinare una lista di oggetti, e tramutarlo in dei passaggi che il computer può comprendere. - -Insegnarti i processi logici della programmazione non rientra nell'ambito di questo libro; tuttavia, i seguenti siti sono alquanto utili per approfondire l'argomento: - -* [Codecademy](http://www.codecademy.com/) è una delle migliori risorse per imparare come scrivere codice; offre un'esperienza guidata interattiva. -* [Scratch](https://scratch.mit.edu) è una buona risorsa quando si comincia dalle basi assolute, imparando le tecniche di problem solving necessarie per la programmazione.\\ - Scratch è *ideato per insegnare ai bambini* e non è un linguaggio serio di programmazione. ## Portata locale e globale