Confectionery

Confectionery is the art of making confections, which are food items that are rich in sugar and carbohydrates. Exact definitions are difficult. In general, though, confectionery is divided into two broad and somewhat overlapping categories: bakers' confections and sugar confections. A confectioner's job encompasses the categories of cooking performed by both the French "patissier" (pastry chef) and the "confiseur" (sugar worker).
Bakers' confectionery, also called flour confections, includes principally sweet pastries, cakes, and similar baked goods. Baker's confectionery excludes everyday breads, and thus is a subset of products produced by a baker.
Sugar confectionery includes candies (also called "sweets", short for "sweetmeats", in many English-speaking countries), candied nuts, chocolates, chewing gum, bubble gum, pastillage, and other confections that are made primarily of sugar. In some cases, chocolate confections (confections made of chocolate) are treated as a separate category, as are sugar-free versions of sugar confections. The words "candy" (Canada & US), "sweets" (UK, Ireland, and others), and "lollies" (Australia and New Zealand) are common words for some of the most popular varieties of sugar confectionery.
The confectionery industry also includes specialized training schools and extensive historical records. Traditional confectionery goes back to ancient times and continued to be eaten through the Middle Ages into the modern era.
History.
Before sugar was readily available in the ancient western world, confectionery was based on honey. Honey was used in Ancient China, Ancient India, Ancient Egypt, Ancient Greece and Ancient Rome to coat fruits and flowers to preserve them or to create sweetmeats. Between the 6th and 4th centuries BC, the Persians, followed by the Greeks, made contact with the Indian subcontinent and its "reeds that produce honey without bees". They adopted and then spread sugar and sugarcane agriculture. Sugarcane is indigenous to tropical Indian subcontinent and Southeast Asia.
In the early history of sugar usage in Europe, it was initially the apothecary who had the most important role in the production of sugar-based preparations. Medieval European physicians learned the medicinal uses of the material from the Arabs and Byzantine Greeks. One Middle Eastern remedy for rheums and fevers were little, twisted sticks of pulled sugar called in Arabic "al fänäd" or "al pänäd". These became known in England as alphenics, or more commonly as penidia, penids, pennet or pan sugar. They were the precursors of barley sugar and modern cough drops. In 1390, the Earl of Derby paid "two shillings for two pounds of penydes."
As the non-medicinal applications of sugar developed, the comfitmaker, or confectioner gradually came into being as a separate trade. In the late medieval period the words confyt, comfect or cumfitt were generic terms for all kinds of sweetmeats made from fruits, roots, or flowers preserved with sugar. By the 16th century, a cumfit was more specifically a seed, nut or small piece of spice enclosed in a round or ovoid mass of sugar. The production of comfits was a core skill of the early confectioner, who was known more commonly in 16th and 17th century England as a comfitmaker. Reflecting their original medicinal purpose, however, comfits were also produced by apothecaries and directions on how to make them appear in dispensatories as well as cookery texts. An early medieval Latin name for an apothecary was "confectionarius", and it was in this sort of sugar work that the activities of the two trades overlapped and that the word "confectionery" originated.
Sweetening agents.
Confections are defined by the presence of sweeteners. These are usually sugars, but it is possible to buy sugar-free candies, such as sugar-free peppermints. The most common sweetener for home cooking is table sugar, which is chemically a disaccharide containing both glucose and fructose. Hydrolysis of sucrose gives a mixture called invert sugar, which is sweeter and is also a common commercial ingredient. Finally, confections, especially commercial ones, are sweetened by a variety of syrups obtained by hydrolysis of starch. These sweeteners include all types of corn syrup.
Bakers' confectionery.
Bakers' confectionery includes sweet baked goods, especially those that are served for the dessert course. Bakers' confections are sweet foods that feature flour as a main ingredient and are baked. Major categories include cakes, sweet pastries, doughnuts, scones, and cookies. In the Middle East and Asia, flour-based confections predominate.
The definition of which foods are "confectionery" vs "bread" can vary based on cultures and laws. In Ireland, the definition of "bread" as a "staple food" for tax purposes requires that the sugar or fat content be no more than 2% of the weight of the flour, so many products sold as bread in the US would be treated as confectionery there.
Types.
Cakes have a somewhat bread-like texture, and many earlier cakes, such as the centuries-old stollen (fruit cake), or the even older king cake, were rich yeast breads. The variety of styles and presentations extends from simple to elaborate. Major categories include butter cakes, tortes, and foam cakes. Confusingly, some confections that have the word "cake" in their names, such as cheesecake, are not technically cakes, while others, such as Boston cream pie are cakes despite seeming to be named something else.
Pastry is a large and diverse category of baked goods, united by the flour-based doughs used as the base for the product. These doughs are not always sweet, and the sweetness may come from the sugar, fruit, chocolate, cream, or other fillings that are added to the finished confection. Pastries can be elaborately decorated, or they can be plain dough. 
Doughnuts may be fried or baked. 
Scones and related sweet quick breads, such as bannock, are similar to baking powder biscuits and, in sweeter, less traditional interpretations, can seem like a cupcake. 
Cookies are small, sweet baked treats. They originated as small cakes, and some traditional cookies have a soft, cake-like texture. Others are crisp or hard. 
Sugar confectionery.
Sugar confections include sweet, sugar-based foods, which are usually eaten as snack food. This includes sugar candies, chocolates, candied fruits and nuts, chewing gum, and sometimes ice cream. In some cases, chocolate confections are treated as a separate category, as are sugar-free versions of sugar confections.
Different dialects of English use regional terms for sugar confections:
In the US, a chocolate-coated candy bar (e.g. Snickers) would be called a "candy bar", in Britain more likely a "chocolate bar" than unspecifically a "sweet".
Classification.
The United Nations' International Standard Industrial Classification of All Economic Activities (ISIC) scheme (revision 4) classifies both chocolate and sugar confectionery as ISIC 1073, which includes the manufacture of chocolate and chocolate confectionery; sugar confectionery proper (caramels, cachous, nougats, fondant, white chocolate), chewing gum, preserving fruit, nuts, fruit peels, and making confectionery lozenges and pastilles. In the European Union, the Statistical Classification of Economic Activities in the European Community (NACE) scheme (revision 2) matches the UN classification, under code number 10.82.
In the United States, the North American Industry Classification System (NAICS 2012) splits sugar confectionery across three categories: National industry code 311340 for all non-chocolate confectionery manufacturing, 311351 for chocolate and confectionery manufacturing from cacao beans, and national industry 311352 for confectionery manufacturing from purchased chocolate.
Ice cream and sorbet are classified with dairy products under ISIC 1050, NACE 10.52, and NAICS 311520.
Examples.
Sugar confectionery items include candies, lollipops, candy bars, chocolate, cotton candy, and other sweet items of snack food. Some of the categories and types of sugar confectionery include the following:
Storage and shelf life.
Shelf life is largely determined by the amount of water present in the candy and the storage conditions. High-sugar candies, such as boiled candies, can have a shelf life of many years if kept covered in a dry environment. Spoilage of low-moisture candies tends to involve a loss of shape, color, texture, and flavor, rather than the growth of dangerous microbes. Impermeable packaging can reduce spoilage due to storage conditions.
Candies spoil more quickly if they have different amounts of water in different parts of the candy (for example, a candy that combines marshmallow and nougat), or if they are stored in high-moisture environments. This process is due to the effects of water activity, which results in the transfer of unwanted water from a high-moisture environment into a low-moisture candy, rendering it rubbery, or the loss of desirable water from a high-moisture candy into a dry environment, rendering the candy dry and brittle.
Another factor, affecting only non-crystalline amorphous candies, is the glass transition process. This can cause amorphous candies to lose their intended texture.
Cultural roles.
Both bakers' and sugar confections are used to offer hospitality to guests.
Confections are used to mark celebrations or events, such as a wedding cake, birthday cake or Halloween.
Tourists commonly eat confections as part of their travels. The indulgence in rich, sugary foods is seen as a special treat, and choosing local specialties is popular. For example, visitors to Vienna eat Sachertorte and visitors to seaside resorts in the UK eat Blackpool rock candy. Transportable confections like fudges and tablet may be purchased as souvenirs.
Nutrition.
Generally, confections are low in micronutrients and protein but high in calories. They may be fat-free foods, although some confections, especially fried doughs and chocolate, are high-fat foods. Many confections are considered empty calories. Specially formulated chocolate has been manufactured in the past for military use as a high-density food energy source.
Many sugar confections, especially caramel-coated popcorn and the different kinds of sugar candy, are defined in US law as foods of minimal nutritional value.
Risks.
Contaminants and coloring agents in confectionery can be particularly harmful to children. Therefore, confectionery contaminants, such as high levels of lead, have been restricted to 1 ppm in the US. There is no specific maximum in the EU.
Candy colorants, particularly yellow colorants such as E102 Tartrazine, E104 Quinoline Yellow WS and E110 Sunset Yellow FCF, have many restrictions around the world. Tartrazine, for example, can cause allergic and asthmatic reactions and was once banned in Austria, Germany, and Norway. Some countries such as the UK have asked the food industry to phase out the use of these colorants, especially for products marketed to children.