996
edits
mNo edit summary |
m (Added some introductory text to Learning to code) |
||
Line 8:
== Tutorial ==
=== Foreword ===
[[Microcontroller|Microcontrollers]] are perhaps one of the most powerful tools waste of space provides you with. Knowing how to use them is paramount if you want to implement any kind of advanced automation or autonomy into your builds. This is not to say they are only for drones and factories, however. Programming expands your already large range of possibilities to a nearly boundless one.
Line 50 ⟶ 20:
=== Learning to code ===
While you may be tempted to start writing code right away you'll need to set up an environment for this first. This is what's called a '''development environment'''.
As you'll just be writing some basic lua throughout this tutorial, this will consist of just a '''text editor''' (and something to run your code with). A text editor can be as simple as just a notepad program so you have somewhere to jot down your code, or can be more complex and specialized for writing code. These types of text editors (code editors) often offer useful features such as automatic code completion and syntax highlighting (it colour-codes smaller bits of code with a particular colour, which conveys their meaning or data type). A few suggestions for a code editor are listed below, complete pros, cons, images, and links.
* (the list)
Once you've set up a code editor, there's one more thing to do before you can start coding: setting up a '''runtime environment'''. As lua is a '''scripting''' language - a programming language in which the instructions to the computer are stored as '''source code''' (the code as you wrote it, in textual format) - it must be translated to the computer in real time because computers can only understand binary (0s and 1s). This is what a runtime environment is for (in this case); it allows for the execution of '''scripts''' (source code) by translating to '''machine code''' (instructions understandable to the computer) on the go.
(Runtime env. instructions - roblox studio)
(Testing bla bla bla)
aaaa
=== Computational thinking ===
|