Chunklet

Chunklet

Chunklet is a programming term for the contents of code wrapped by a conditional statement.

Example of a chunklet in Perl:

if ($x == 10) {
   print "The value of x is 10.\n";
}

The above chunklet could be referred by "The x equals 10 chunklet".

Example of a chunklet in XSLT:

<xsl:if test="/node/x='10'">
   The value of node child x is 10.
</xsl:if>

Again, the above XSLT chunklet can be referred to in the same manner.

Embedded Chunklets

Sometimes you will find a chunk of logic (or chunklet) within a larger chunklet. This would be referred to as an Embeded Chunklet. Below is an example of an embedded chunklet within a for loop.

for ($x = 0; $x < $intCounter; $x++) {
   if ($x == 10) {
       print "The value of x is 10.\n";
   }
}

In the above example, the embedded chunklet would be referred by "The x equals 10 chunklet". This embedded chunklet is within the "for x to intCounter" chunklet.


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Chunklet (magazine) — is a Georgia based humor and music magazine founded by Henry H. Owings in 1993. Contents 1 History 2 Style 3 Name 4 Connection to Alternative Comedy and Indie Rock Scenes …   Wikipedia

  • Patton Oswalt — Infobox Comedian name = Patton Oswalt imagesize = caption = Patton Oswalt with Joshua H in Seattle September 6th, 2008 background = comedian caption = pseudonym = birth date = birth date and age|1969|01|27 birth place = Portsmouth, Virginia death …   Wikipedia

  • Освальт, Паттон — Паттон Освальд Patton Oswalt …   Википедия

  • Stereolab — Infobox musical artist Name=Stereolab Img capt=Lætitia Sadier of Stereolab playing a Moog synthesizer during a live performance Background=group or band Years active=1990–present Origin=London, England Associated acts=McCarthy, Monade, Snowpony,… …   Wikipedia

  • Man or Astro-man? — live at Whirly Ball, Roswell, GA 3/5/2010. Background information Origin Auburn, Alabama …   Wikipedia

  • Duophonic Records — Founder Stereolab Country of origin United Kingdom Location London, England Official Website http://www.duophonic.com …   Wikipedia

  • Merzbox — Box set by Merzbow Released June 16, 2000 (2000 06 16) Recorded 1979–1997 …   Wikipedia

  • Don Caballero — Origin Pittsburgh, Pennsylvania, United States Genres Math rock, post rock, instrumental rock Years active 1991–1996, 1997–2000, 2003–present Labels …   Wikipedia

  • Maserati (band) — This is an article about the Athens post rock band. For the 1980s R B group of a similar name, see Mazarati. For the Italian car manufacturer, see Maserati. Maserati Origin Athens, Georgia, United States Genres Post rock, Space Rock …   Wikipedia

  • Speaking Canaries — The Speaking Canaries (sometimes Thee Speaking Canaries or The(e) Speaking Canaries ) are an indie rock group from Pittsburgh, Pennsylvania. They are probably best known for being Don Caballero drummer Damon Che s other band , and for their… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”