Skip to main content

Snippet

  • Living reference work entry
  • First Online:
Encyclopedia of Database Systems
  • 61 Accesses

Synonyms

Capsule; Flake; Macro; Mini; Module; Web widget

Definition

A snippet is a chunk of reusable source code. In the context of Web programming, a snippet refers to a chunk of reusable HTML source code, along with all relevant resources such as style sheets and scripts applied within the context of the snippet. In the context of Web information extraction, a snippet is a subset of the available information items that can be extracted from the Web page.

Key Points

The term snippet originates from the domain of text editors, where snippets refer to chunks of source code which can be organized for copy-and-paste usage. Snippet management allows for viewing, editing, sorting, and storing snippets in a repository of reusable source code fragments. The overall goal of snippets is to ease the process of writing code by reducing the manual effort to type in source code and to reuse existing lines of code.

Snippets can be classified according to the complexity of the interaction process:...

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Recommended Reading

  1. Baumgartner R, Flesca S, Gottlob G. Visual web information extraction with lixto. In: Proceedings of the 27th International Conference on Very Large Data Bases; 2001. p. 119–28.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Marcus Herzog .

Editor information

Editors and Affiliations

Section Editor information

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer Science+Business Media New York

About this entry

Cite this entry

Herzog, M. (2016). Snippet. In: Liu, L., Özsu, M. (eds) Encyclopedia of Database Systems. Springer, New York, NY. https://doi.org/10.1007/978-1-4899-7993-3_1171-2

Download citation

  • DOI: https://doi.org/10.1007/978-1-4899-7993-3_1171-2

  • Received:

  • Accepted:

  • Published:

  • Publisher Name: Springer, New York, NY

  • Online ISBN: 978-1-4899-7993-3

  • eBook Packages: Springer Reference Computer SciencesReference Module Computer Science and Engineering

Publish with us

Policies and ethics