CSC/ECE 517 Fall 2010/ch4 4g km: Difference between revisions
m (→Introduction) |
m (→Introduction) |
||
Line 4: | Line 4: | ||
=Introduction= | =Introduction= | ||
In the [http://pg-server.csc.ncsu.edu/mediawiki/index.php/CSC/ECE_517_Fall_2010/ch4_4f previous article for which the link does not exist yet], we learn that command patterns in static and dynamic languages allow for separation of objects that request actions from the objects that ultimately perform actions. This is performed by encapsulating the request to do something on a specific object. | In the [http://pg-server.csc.ncsu.edu/mediawiki/index.php/CSC/ECE_517_Fall_2010/ch4_4f previous article for which the link does not exist yet], we learn that [http://en.wikipedia.org/wiki/Command_pattern command patterns] in static and dynamic languages allow for separation of objects that request actions from the objects that ultimately perform actions. This is performed by encapsulating the request to do something on a specific object. | ||
Metaprogramming is the ability for a computer program to manipulate itself or other programs at the time of compilation as opposed to performing this manipulations at runtime. This tends to allow for greater flexibility for a program to handle new situations. | Metaprogramming is the ability for a computer program to manipulate itself or other programs at the time of compilation as opposed to performing this manipulations at runtime. This tends to allow for greater flexibility for a program to handle new situations. |
Revision as of 12:28, 17 October 2010
Metaprogramming in dynamically typed languages
Introduction
In the previous article for which the link does not exist yet, we learn that command patterns in static and dynamic languages allow for separation of objects that request actions from the objects that ultimately perform actions. This is performed by encapsulating the request to do something on a specific object.
Metaprogramming is the ability for a computer program to manipulate itself or other programs at the time of compilation as opposed to performing this manipulations at runtime. This tends to allow for greater flexibility for a program to handle new situations.
Example of Metaprogramming
Dynamic Programming Languages
http://en.wikipedia.org/wiki/Dynamic_programming_language
Conclusion
What’s Next?
In the next article for which the link does not exist yet, we will look at static-analysis tools for Ruby.