Now that we have seen what object oriented programming is,how they are created and similarly the data structures now let me try to interconnect them for you.The three topics we speak about here are all what constitute a perfect programming language.I still cant call it perfect,cos there will still be some other defintion for its improvement.
Initially the computer age started with abacus and other small computing machines which made work easier.Then it moved on through many stages and reached the era where we could type in and store a series of instructions and then execute it.This is what is followed in procedural languages.But incase of reuse of the instructions or code again and again ,this Procedural languages werent too easy.It created so many copies of the same code at times.To avoid this they moved onto functional and then object oriented languages. In oops you try to model all the entities into a real world model,its how you imagine and set up the attributes,the state and behaviour of the class.This enabled higher degree of modularity and anyone could easily understand the code.And now how is this related to the data structures.When a code is executed where is the compiled code,variables and data stored,all this is decided by the efficient selection of data structures.Each data structure is efficient in its own special way,some in retrieval,in storage and it mainly depends on the application you deal with and the function you want to perform.The right way the objects should be stored and accessed is done right by selecting the best data structure and implementing it the effective way.The combination of modularized code in oops and the efficient implementation and storage in data structure increased overall efficiency effectively.But still there were loop holes in oops,in the way the design was made and the small errors in the mapping to the real world concepts contributed to the imperfection.So the design patterns were introduces which specified more clearly the do'es and do nots of the object oriented structure.Thus one thing evolved to the other and this journey to the perfection will go on for ever and there is no PERFECT code in any progmming language.
- Sourcebits University
Cloud Computing
www.sourcebits.com
Initially the computer age started with abacus and other small computing machines which made work easier.Then it moved on through many stages and reached the era where we could type in and store a series of instructions and then execute it.This is what is followed in procedural languages.But incase of reuse of the instructions or code again and again ,this Procedural languages werent too easy.It created so many copies of the same code at times.To avoid this they moved onto functional and then object oriented languages. In oops you try to model all the entities into a real world model,its how you imagine and set up the attributes,the state and behaviour of the class.This enabled higher degree of modularity and anyone could easily understand the code.And now how is this related to the data structures.When a code is executed where is the compiled code,variables and data stored,all this is decided by the efficient selection of data structures.Each data structure is efficient in its own special way,some in retrieval,in storage and it mainly depends on the application you deal with and the function you want to perform.The right way the objects should be stored and accessed is done right by selecting the best data structure and implementing it the effective way.The combination of modularized code in oops and the efficient implementation and storage in data structure increased overall efficiency effectively.But still there were loop holes in oops,in the way the design was made and the small errors in the mapping to the real world concepts contributed to the imperfection.So the design patterns were introduces which specified more clearly the do'es and do nots of the object oriented structure.Thus one thing evolved to the other and this journey to the perfection will go on for ever and there is no PERFECT code in any progmming language.
- Sourcebits University
Cloud Computing
www.sourcebits.com
No comments:
Post a Comment