Top Topics
-
Sleep
852 recent check-ins -
LAK at NJD 05/30/2012
468 recent check-ins -
NBA Playoffs
365 recent check-ins -
Boston Celtics
346 recent check-ins -
Coffee
255 recent check-ins
-
Your Review
Loading - Loading
0 people checked-in to Generic programming on GetGlue
Check-in to entertainment with GetGlue. Connect with friends, discover new favorites, and unlock FREE stickers and discounts.
Generic programming is a style of computer programming in which algorithms are written in terms of to-be-specified-later types that are then instantiated when needed for specific types provided as parameters. This approach, pioneered by Ada in 1983, permits writing common functions or types that differ only in the set of types on which they operate when used, thus reducing duplication. Software entities created using generic programming are known as generics in Ada, Eiffel, Java, C#, Visual Basic .NET and Haskell; templates in C++; and parameterized types in the influential 1994 book Design Patterns.
The authors of Design Patterns note that this technique, especially when combined with delegation, is very powerful but that "Dynamic, highly parameterized software is harder to understand than more static software." (Gang of Four 1995:21) Generic programming refers to features of certain statically typed programming languages that allow some code to effectively circumvent the static typing requirements. For instance in C++, a template is a routine in which some parameters are qualified by a type variable. Since code generation in C++ depends on concrete types, the template is specialized for each combination of argument types that occur in practice.
Generic programming is commonly used to implement containers such as lists and hash tables and functions such as a particular sorting algorithm for objects specified in terms more general than a concrete type. Generic programming facilities first appeared in the 1970s in languages like CLU and Ada, and were subsequently adopted by many object-based and object-oriented languages, including BETA, C++, D, Eiffel, Java, and DEC's now defunct Trellis-Owl language. Implementations of generics in languages such as Java and C# are formally based on the notion of parametricity, due to John C.
Reynolds.
Similar to 0 things you like:
Sleep
LAK at NJD 05/30/2012
NBA Playoffs
Boston Celtics
Coffee
Check-in to entertainment with GetGlue. Connect with friends, discover new favorites, and unlock FREE stickers and discounts.
You can edit this page because you have earned special privileges on Glue.
Only make changes if you are certain that they are correct.
Made in New York City | Copyright 2009-2012, AdaptiveBlue, Inc