All Topics  
Binding (computer science)

 

   Email Print
   Bookmark   Link






 

Binding (computer science)



 
 
In computer science
Computer science

Computer science is the study of the theoretical foundations of information and computation, and of practical techniques for their implementation and application in computer systems....
, binding is the creation of a simple reference
Reference

A reference is a relation between Object in which one object designates by linking to another object. Such relations as these may occur in a variety of domains, including logic, computer science, time, art and scholarship....
 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.

following are commonly referred to as bindings.

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 language
Programming language

A programming language is a machine-readable artificial language designed to express computations that can be performed by a machine, particularly a computer....
s, these terms mean the references of an identifier to a value.






Discussion
Ask a question about 'Binding (computer science)'
Start a new discussion about 'Binding (computer science)'
Answer questions from other users
Full Discussion Forum



Encyclopedia


In computer science
Computer science

Computer science is the study of the theoretical foundations of information and computation, and of practical techniques for their implementation and application in computer systems....
, binding is the creation of a simple reference
Reference

A reference is a relation between Object in which one object designates by linking to another object. Such relations as these may occur in a variety of domains, including logic, computer science, time, art and scholarship....
 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.

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 language
Programming language

A programming language is a machine-readable artificial language designed to express computations that can be performed by a machine, particularly a computer....
s, 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 association may occur either at compile time, in which case it is called 'static linking
Linker

In computer science, a linker or link editor is a computer program that takes one ormore object file generated by a compiler and combines them into a single executable program....
', or it may occur dynamically at runtime
Runtime

In computer science, runtime or run time describes the operation of a computer program, the duration of its execution, from beginning to termination ....
, 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
Mac OS

Mac OS is the trademarked name for a series of graphical user interface-based operating systems developed by Apple Inc. for their Macintosh line of computer systems....
 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
Emacs

Emacs is a class of feature-rich text editors, usually characterized by their extensibility. Emacs has, perhaps, more editing commands than any other editor or word processor, numbering over 1,000....
 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
Microsoft Excel

Microsoft Excel is a spreadsheet-application written and distributed by Microsoft for Microsoft Windows and Mac OS X. It features calculation, graphing tools, pivot tables and a macro programming language called VBA ....
, 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.

See also

  • Computer programming
    Computer programming

    Computer programming is the process of writing, testing, debugging/troubleshooting, and maintaining the source code of computer programs. This source code is written in a programming language....
  • Command (computing)
    Command (computing)

    In computing, a command is a directive to a computer program acting as an interpreter of some kind, in order to perform a specific task. Most commonly a command is a directive to some kind of command line interface, such as a shell ....
  • Object (computer science)
    Object (computer science)

    In its simplest embodiment, an object is an allocated region of storage. Since programming languages use variable#Computer_programmings to access objects, the terms object and variable are often used interchangeably....