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.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsRecommended Reading
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.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Section Editor information
Rights and permissions
Copyright information
© 2018 Springer Science+Business Media, LLC, part of Springer Nature
About this entry
Cite this entry
Herzog, M. (2018). Snippet. In: Liu, L., Özsu, M.T. (eds) Encyclopedia of Database Systems. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-8265-9_1171
Download citation
DOI: https://doi.org/10.1007/978-1-4614-8265-9_1171
Published:
Publisher Name: Springer, New York, NY
Print ISBN: 978-1-4614-8266-6
Online ISBN: 978-1-4614-8265-9
eBook Packages: Computer ScienceReference Module Computer Science and Engineering