ST versus LL
As has been implied before, ST is often viewed as either unnecessary, complex, downright complicated, or unimportant to many inexperienced or non-formally trained programmers. This is a very misleading perception that has been encouraged by many years of programmers becoming a little too comfortable with old-school LL programming. In all, a lot of the fear of ST stems from many companies and engineers being unwilling to step out of their comfort zones and try ST on a new project. This section is going to try to dispel that myth with examples.
To really understand ST and how it relates to LL in terms of complexity and usage, we need to compare it to LL. To do this, we’re going to look at a few examples. The first example is the area of a circle program we wrote in ST previously to see how the code bases compare.
Example 1 – The area of a circle program – LL
To keep things organized for the LL version of the program, you will need the following...