Saturday, January 11, 2014

Few points on Structured programming and Object oriented programming?

Designer of Pascal language Niklaus Wirth once said
     "Algorithms+Datastructures=Programs". 

                   Here algorithm comes first and data structures comes second.This is how programmers  were  thinking at that time .First they decided the procedures for manipulations  of data, then they decided what structure to impose on data to make manipulations easier.OOP  reverses the order and puts data first, then looks at the algorithm that operate on the data. For small programs procedures works well, but objects are better for larger programs. Debugging also easier  with  OOP.

No comments:

Post a Comment