Binding (computer science)

From Wikipedia, the free encyclopedia

Jump to: navigation, search

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.[citation needed]

Contents

The following are commonly referred to as bindings.

Main articles: Name binding and Language 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 association may 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.

Main article: XML data 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 can not 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.

Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.