Reusability of Code

Submitted by: Submitted by

Views: 215

Words: 747

Pages: 3

Category: Science and Technology

Date Submitted: 12/04/2013 01:21 PM

Report This Essay

Reusability of Code

Programming is the method in which a person, or programmer, inputs orders and instructions to a computer system in order to achieve results. These results can vary from mathematical calculations like mortgage loan interest, to complex data arrays. Programming has helped process loads of information otherwise

There are many different ways he or she could write code for a computer. Programming is a strict guideline that adheres to communication methods sure to be understood by the computer. Most computer programs are written in a language and that language falls into a category. These categories then have deciding factors on how efficient a computer runs and who has access to the information used to run the programs within the hardware.

Computers are a very simple structure on the outside and become more complicated as they are broken down into components and sub structures. Each substructure is used to complete a general principle and work together to create the overall structure, much like parts on the human body work together to create the human body as a whole. The brain has the code that is programmed through experience to tell the body how to move. The code in the brain that gives humans involuntary actions such as blinking, heartbeats, and food breakdown is much more complex. This can be considered to be Object Orientated code.

Object Orientated encapsulation is the act of separating or compartmentalizing sections of code within code. This makes it easier to add or remove other segments without damaging the rest of the program. This is best explained like building a computer. If one million computers are made and each one has different components (soundboard, processor, graphic card, etc.) then the computer code that runs each computer would remain the same, but the drivers for each component would then change. This is done by encapsulating the drivers in their own compartment and taking them out and replacing them...