CSC148H5 Lecture Notes - Lecture 2: Init, Priority Queue
Document Summary
Lecture 2:1 and 2:2 stacks and queues http://openbookproject. net/thinkcs/python/english3e/stacks. html. One role of an os is to provide services to programs. Playing sounds drawing images network communication opening les. Interface: is what you can do withs one program. Interface: name of this function and what it does. What services can windows provide me with such as keyboard, sounds, joysticks. Whats the program accomplishing and what features are available. As users of software we don"t care how its implemented. The distinction between the two is important because people are allowed to change the implementation but not the interface. Changing the name of the function could cause other programs to crash because the function that was being used doesn"t exist anymore. A lot of programmers ignore this advice and use implementation emails when they"re not supposed to do that. Program to an interface and not an implementation. Abstraction: ignoring certain details to make problems easier to solve.