From the course: Swift 5: Protocol-Oriented Programming

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

From unstructured code to POP

From unstructured code to POP

From the course: Swift 5: Protocol-Oriented Programming

Start my 1-month free trial

From unstructured code to POP

- [Narrator] The way we design and develop software systems was entirely different a couple of decades ago. Unstructured programming was the earliest programming paradigm. Back then, computer programs used to be massive, continuous chunks of code. The code consisted of sequentially ordered instructions. Each statement would go into a new line. Source code lines were numbered, or identified by a label. The following Sinclair BASIC program converts from feet to meters. More complex apps consisted of thousands of lines of code. To make any changes or improvements, developers had to check the statements line by line. As the programs grow, this task becomes increasingly difficult. Maintaining, or even understanding, such a code base was challenging. Unstructured programming has received much criticism for producing hardly readable, so-called spaghetti code. Structured programming languages appeared in the late '50s. They rely…

Contents