Reductionism is a philosophical approach which states that a complex system is nothing but the sum of its parts, and that an account of it can be reduced to accounts of individual constituents.
Any complex computer program ( in an imperative language ) can be reduced into Expression and Statements. They are composed together using Sequence,Branching,Iteration,Function and Recursion.
Some Programs have got facility to group these stuff under entities called Classes. ( If the language in
question is Object Oriented )
The story is not complete,if we do not discuss the State (of the data in the program). We can see Program as a set of instruction which transforms the state as the program gets executed.
1. Expression is what you evaluate for it's value
2. Statement is what you execute for it's effect
3. Sequence of Statement forms a Function
4. Collection of Functions form a Module | Class
5. Collection of Modules form a Program
Any complex computer program ( in an imperative language ) can be reduced into Expression and Statements. They are composed together using Sequence,Branching,Iteration,Function and Recursion.
Some Programs have got facility to group these stuff under entities called Classes. ( If the language in
question is Object Oriented )
The story is not complete,if we do not discuss the State (of the data in the program). We can see Program as a set of instruction which transforms the state as the program gets executed.
1. Expression is what you evaluate for it's value
2. Statement is what you execute for it's effect
3. Sequence of Statement forms a Function
4. Collection of Functions form a Module | Class
5. Collection of Modules form a Program
0 comments:
Post a Comment