What are the benefits of OOP 1

Content - Theory of OOP

3.2 Advantages of object-oriented programming

 

3.2.1 Flexibility

Breaking the program down into objects makes it easier to make changes to the programming. It is often enough to change just one object to affect the entire program. Object-oriented programming supports an evolutionary way of working, i.e. the gradual expansion of a program is simplified compared to conventional programming.

3.2.2 Less susceptibility to errors

Object-oriented programming is usually less error-prone. Many errors are recognized when the script is compiled. Troubleshooting is simplified because the error area can be narrowed down more easily by the required structure.

3.2.3 Efficiency

Since Macromedia Director works internally with objects anyway, object-oriented lingo doesn't necessarily mean slowing down the program; some object-oriented techniques have even been specifically optimized. In addition, an object-oriented program usually has fewer redundancies than a conventional one, which has a positive effect on memory requirements.

3.2.4 Modularity

Transferring scripts from one director film to another is usually very time-consuming. The standardization Lingo is experiencing through object scripts makes it easier to put a script into a new context. Behaviors, which are special objects, also support the possibility of programming scripts with simple basic functions and combining them with one another in order to realize complex tasks.

3.2.5 Structure

Director programs in particular tend to lose clarity in a myriad of scripts due to the variety of script types and the many ways to accommodate scripts at different points in the program. Object-oriented Lingo does not force the programmer to adhere to a structure, but it simplifies a uniform and clear programming style. This makes the program flow more quickly comprehensible for other authors and editors and program additions can be made with less effort. The division into independent functional units makes it much easier to divide various programming tasks among several programmers.