programming
Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
Ambos lados da revisão anteriorRevisão anteriorPróxima revisão | Revisão anterior | ||
programming [2025/07/18 20:37] – [Difficulty Hierarchy] admin | programming [2025/07/18 20:37] (atual) – [Difficulty Hierarchy] admin | ||
---|---|---|---|
Linha 33: | Linha 33: | ||
> **We do not intend to make converters for easier languages because the purpose of sBotics is to introduce people to robotics education, and we want users to progress in difficulty and skill.** | > **We do not intend to make converters for easier languages because the purpose of sBotics is to introduce people to robotics education, and we want users to progress in difficulty and skill.** | ||
- | In general, we always advise using **[[rEduc]]** for your programs. However, if you are not familiar with text-based programming or already know advanced programming, | + | In general, we always advise using **[[en:rEduc]]** for your programs. However, if you are not familiar with text-based programming or already know advanced programming, |
===== Understanding Synchronous Programming (Advanced) ===== | ===== Understanding Synchronous Programming (Advanced) ===== | ||
Imagine that sBotics is like a stage where the robot performs its actions. In a traditional robot, it is its own stage, where it does its things without worrying too much about what might happen to the program. If the program is inefficient and causes memory to run out, the robot will simply shut down or stop. It is important to understand that sBotics and your robot share the same stage. An inefficient function in your robot can make the entire sBotics slow, or even exhaust the program' | Imagine that sBotics is like a stage where the robot performs its actions. In a traditional robot, it is its own stage, where it does its things without worrying too much about what might happen to the program. If the program is inefficient and causes memory to run out, the robot will simply shut down or stop. It is important to understand that sBotics and your robot share the same stage. An inefficient function in your robot can make the entire sBotics slow, or even exhaust the program' | ||
Linha 39: | Linha 39: | ||
> **For those more studied in programming: | > **For those more studied in programming: | ||
- | How does this affect programming? | + | How does this affect programming? |
* "While true": Indiscriminate "while true" statements crash sBotics, as it waits for the robot to finish something that never finishes before continuing to run the simulator. | * "While true": Indiscriminate "while true" statements crash sBotics, as it waits for the robot to finish something that never finishes before continuing to run the simulator. | ||
* Waiting is important: In real robotics, commands take time to execute. Now, in sBotics, you **must** use a command called " | * Waiting is important: In real robotics, commands take time to execute. Now, in sBotics, you **must** use a command called " |
programming.1752871041.txt.gz · Última modificação: 2025/07/18 20:37 por admin