Some of you experienced software engineers may be familiar with self-modifying code. It is when a number of program lines of code modifies itself, and then the resultant new code executes differently from the original (unmodified) program code. This is rarely done by professional programmers because of the potential problems that it can create, and it can be a nightmare to maintain, especially by other people besides the original programmer.
In this scene, the code doesn't actually modify itself, but it does "spawn" new code in different areas of the script menu of a box.
I display text on the box to show each stage of programs and their status. Unfortunatley, the program code that's written to the variables in the script menu do not automatically update when the script menu is being displayed. So the only way that you can see the code that's been created is to left-click your mouse cursor in code sections of the airfrictionMult and the controllerAcc variables after starting and then stopping Algodoo.
An example of truely self-modifying code would be:
In the airFrictionMult variable, place the following code:
{airFrictionMult = 1.0}. As soon as you enter that line of code and either click outside the box, or you hit the Enter key, the code will disappear, and the value 1.0 will be written to the airFrictionMult variable! Of course that type of code has no useful purpose, but there sometimes has been very clever code written for very specific processes that cannot otherwise be done using conventional coding techniques. Although the practice of writing self-modifying code is very much frowned upon by professional engineers, people still do it.