code snippet

Brief reusable example

A code snippet is a small, reusable piece of programming code—typically a few lines that accomplish a specific task.

Programmers share snippets to demonstrate techniques or solve common problems: I found a code snippet for sorting arrays.

Development tools often store frequently used snippets for quick insertion.

The term emphasizes brevity; longer sections are usually called blocks or modules.

Related

copy · block · syntax · syntax error · gist · fragment · programming · variable · debug · quick fix · editor · IDE · stack overflow · tutorial · method · algorithm · compile · execute

Categories
Opposites
completeness/scope

code snippetsoftware suite

Grouped programs sold together

codebase · production code · enterprise software · framework · software package

abstraction level

code snippetpseudocode

Informal algorithm representation

flowchart · system architecture · software architecture · documentation · system design

Family

code, snippet, codes, coded, coding, coder, coders, codify, codification

Familiarity
Top 500,000
Profile
Used worldwide · Timeless · Rated G