Binding (computer science)

Binding (computer science)

In computer science, binding is the creation of a simple reference to something that is larger and more complicated and used frequently. The simple reference can be used instead of having to repeat the larger thing. A binding is such a reference.Fact|date=November 2007

Types of binding

The following are commonly referred to as bindings.

Language or Name binding

The terms "language binding" and "name binding" refer to both the linking of libraries to application programs, and to the way symbols (variable names) are handled by compilers.

In programming languages, these terms mean the references of an identifier to a value. In this context, binding is the act of associating a name or symbol with a machine address, and this associationmay occur either at compile time, in which case it is called 'static linking', or it may occur dynamically at runtime, which is called 'dynamic linking'. The terms binding and linking are used interchangeably in some contexts.

Static binding has an additional characteristic: it prevents libraries from being updated (recompiled) independently of applications.

XML data binding

Command binding

Command bindings, commonly referred to as keyboard macros, or simply macros, are frequently built into professional quality computer applications. In many of these, bindings can be modified or added, but usually cannot be removed (i.e., the keystroke combination cannot be unassociated from the function with which it is associated).

As an example of a command binding, most applications on Mac OS bind the "Save" menu item to the Command-S keyboard shortcut, so that Command-S can be used to save a document instead of having to navigate to that menu item each time. The Emacs text editor binds the "save-buffers-kill-emacs" command to the Control-X Control-C keystrokes in sequence, so that the user does not have to type "save-buffers-kill-emacs" whenever he/she wants to save and quit. Some computer applications, such as Microsoft Excel, allow the user to create a macro to do several common operations in sequence, and then bind a simple command to that macro to activate it.

Control bindings also exist in video games. A game might have a "shoot" control, which can be bound to any available key. A game like Tribes with complicated in-game menus can bind specific sequences of keys as shortcuts to menu items.

ee also

* Computer programming
* Command (computing)
* Object (computer science)


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Scope (computer science) — In computer programming, scope is an enclosing context where values and expressions are associated. Various programming languages have various types of scopes. The type of scope determines what kind of entities it can contain and how it affects… …   Wikipedia

  • Closure (computer science) — In computer science, a closure (also lexical closure, function closure, function value or functional value) is a function together with a referencing environment for the non local variables of that function.[1] A closure allows a function to… …   Wikipedia

  • Assignment (computer science) — In computer programming, an assignment statement sets or re sets the value stored in the storage location(s) denoted by a variable name. In most imperative computer programming languages, assignment statements are one of the basic statements.… …   Wikipedia

  • Kernel (computer science) — In computer science, the kernel is the central component of most computer operating systems (OS). Its responsibilities include managing the system s resources (the communication between hardware and software components). As a basic component of… …   Wikipedia

  • Polymorphism (computer science) — This article is about the programming language theory concepts with direct application to functional programming languages. For a gentler introduction of these notions as commonly implemented in object oriented programming, see Polymorphism in… …   Wikipedia

  • Unification (computer science) — Unification, in computer science and logic, is an algorithmic process by which one attempts to solve the satisfiability problem. The goal of unification is to find a substitution which demonstrates that two seemingly different terms are in fact… …   Wikipedia

  • Nominal terms (computer science) — Nominal terms are a metalanguage for embedding object languages with binding constructs into. Intuitively, they may be seen as an extension of first order terms with support for name binding. Consequently, the native notion of equality between… …   Wikipedia

  • Binding — may refer to: * Ski binding, a device for connecting a foot to a ski * Snowboard binding, a device for connecting a foot to a snowboard * Bookbinding, the protective cover of a book and the art of constructing this * Binding (computer science), a …   Wikipedia

  • Callback (computer science) — In computer programming, a callback is executable code that is passed as an argument to other code. It allows a lower level software layer to call a subroutine (or function) defined in a higher level layer. Usually, the higher level code starts… …   Wikipedia

  • Library science — is an interdisciplinary science incorporating the humanities, law and applied science to study topics related to libraries, the collection, organization, and dissemination of information resources, and the political economy of information.… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”