- 1片段、一小段(消息、對話、程式碼)。程式設計裡的 code snippet 就直接說「程式碼片段」。重點在「從一個更大的東西上剪下來的一小塊」,所以常帶有「不完整、聽到一半」的感覺。
A snippet is a small piece cut out of something bigger. Most often it is a piece of language: a snippet of news, a snippet of information, a snippet of conversation you heard while walking past. Two feelings come with it. It is short — a line or two, a few seconds, not a whole story. And it is incomplete — you got a corner of something, and the rest is missing, which is why snippets are often interesting but not enough. That is why the word sits so well with : snippets of conversation drifting from the next table. It also works for a short piece of music, film, or writing quoted from a longer work, and in the computer world a snippet is a small block of code you copy and — a use your students will meet online very often. The pattern is almost always a snippet of X, or snippets in the plural when little pieces arrive one at a time. It is a friendly, everyday word, neither formal nor slang.
組成snip (to cut with a quick small movement of scissors) + -et (an old ending that makes things small). So: a little cut-off bit.
原始詞典資料4 筆記錄
以下是外部詞典記錄的用法,摘錄並精簡格式,我們還沒有寫成教學內容。上面的說明才是我們自己寫的;有些用法可能上面已經講過了。
snippetnoun/ˈsnɪpɪt/
- 1
A small part of something, such as a song or fabric; sample.
- From the snippet I heard of their rehearsal, they sound pretty good.
- He cut his coats without waste; according to his embroidered cloth, they were very small ends and snippets that lay about upon the table […]
- 2
computingengineeringmathematicsA text file containing a relatively small amount of code, useless by itself, along with instructions for inserting that code into a larger codebase.
snippetverb/ˈsnɪpɪt/
- 1
computingengineeringmathematicsTo produce a snippet (small part) of; to excerpt.
- We snippeted the blog posts for display on the home page.
- 2
To make small cuts, to snip, particularly with scissors.
- All day long while the light lasted he sewed and snippetted […]
摘錄自 英文維基詞典 English Wiktionary,已精簡格式;依 CC BY-SA 4.0 授權使用,改動後的內容同樣以此授權提供。