The Threading Code tutorial is misleading.
waitdo not allow code to run at the same time.
- Calling this threading is not technically incorrect but has caused confusion.
- It would be better to use the term routine or co-operative threading (not just threading), as this is harder to confuse with multi-threading or parallel computing.
- Another option to create a “thread” is to use
coroutine.create, although a more advanced topic, I feel it is worth mentioning for developers that want to go a step further.
- In Threading Considerations, a recommendation is made to combine functions because they can be mixed. This is not a good programming practice (see Curly’s Law).