• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 22. Using Scripts in Your Web Pages > Object-Oriented Technology

Object-Oriented Technology

Computers improved with the advent of operating systems that use a graphical user interface such as those found on the Macintosh and Windows machines; with that improvement there developed a need for a better programming model. In the past, developers could simply write a series of computer program statements that would be executed sequentially. Even with functions and subroutines defined, the program executed from a beginning and ended at some point.

These starting and ending points became less obvious in the world of Windows-based operating systems because the user interface opened the possibility for programs to react based on user input. For example, in the past you could run a DOS-based application that performed one function based on a series of parameters provided to it, such as copying a file from one drive to another. This copy program had a start and a finish—and no user interaction between those two points. However, even a somewhat simple application (such as Notepad in Windows) suddenly opens a large amount of user interactivity. The user can click menus to open files, close files, exit the program, search within documents, and perform other tasks. She can type on the keyboard, and those actions must be translated to characters that appear within the text editor. Even though an application such as Notepad had a definite start and eventual end point, the user controlled when that end point occurred (exiting the application), as well as all actions between those points.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint