Real-Time Collaboration: How P2P Sync Works Without a Server
What peer-to-peer means, how CRDTs guarantee conflict-free merging, WebRTC for direct browser connections, and IndexedDB for offline persistence.
Baking is often called "edible chemistry," and for good reason. Every ingredient in a recipe plays a structural or chemical role — binding, leavening, tenderizing, browning, or emulsifying. When you swap one ingredient for another, you're not just changing a flavour. You're changing the physics of the batter. Understanding why each ingredient works is the key to making substitutions that actually succeed.
Strip away brand names and recipe lore, and every baking ingredient falls into one or more of five functional roles. A successful substitution replaces the function, not the ingredient itself.
Wheat flour contains two proteins — glutenin and gliadin — that are inert when dry. Add water, and they uncoil and cross-link into an elastic mesh called gluten. This mesh traps gas bubbles from leaveners and sets during baking, giving bread its chew and cake its structure.
Rice flour, almond flour, and oat flour lack glutenin and gliadin entirely. Without the elastic mesh, batters can't trap gas, and the result is dense and crumbly. That's why gluten-free recipes often add xanthan gum or psyllium husk — polymers that mimic the stretchy, gas-trapping behaviour of gluten without the wheat proteins.
The typical ratio is 1 tsp xanthan gum per 150g flour for cakes, and roughly double that for bread where more elasticity is needed.
Eggs are the Swiss Army knife of baking. A single egg contributes binding (proteins coagulate when heated), leavening (whipped whites trap air), and emulsification (the yolk's lecithin holds oil and water together). Replacing an egg means deciding which of these three roles matters most in your recipe.
Oil and water don't mix — unless an emulsifier intervenes. Egg yolks contain lecithin, a phospholipid with a water-loving head and a fat-loving tail. It sits at the oil-water boundary and prevents separation. In mayonnaise, this is the only thing keeping the sauce from splitting. In cake batter, it ensures fat distributes evenly, producing a uniform crumb.
Common egg substitutes and the functions they cover:
Substitute | Binding | Leavening | Emulsifying
─────────────────────┼─────────┼───────────┼────────────
Flax egg (1T + 3T H₂O) | ✓ | |
Aquafaba (3T whipped) | | ✓ | ✓
Mashed banana (¼ cup) | ✓ | |
Commercial egg replacer | ✓ | ✓ |
Silken tofu (¼ cup) | ✓ | | ✓"You can replace an egg in a muffin with a flax egg and barely notice. Try the same swap in a choux pastry — which depends on egg proteins puffing into a hollow shell — and you'll get a flat, greasy puck."
Fat coats flour particles and physically interferes with gluten formation. More fat means shorter gluten strands, which means a more tender, crumbly texture. This is why shortbread (60% butter) crumbles, while baguettes (0% added fat) are chewy.
The physical state of a fat at room temperature changes the texture dramatically. Solid fats like butter and shortening create flaky layers in pastry because they form discrete pockets that melt during baking, leaving air gaps. Liquid oils coat flour more uniformly, producing a moist, dense crumb (think olive oil cake vs. a croissant).
Swapping butter for oil in a 1:1 ratio by volume will make cookies spread more (oil can't be creamed with sugar to trap air) and lose flakiness. A safer ratio is 1 cup butter → ¾ cup oil, since butter is only about 80% fat and 20% water.
Leavening agents produce gas — usually carbon dioxide — that inflates the batter. The three main mechanisms are chemical (baking soda and powder), biological (yeast fermentation), and mechanical (whipped egg whites or creamed butter).
Baking soda (sodium bicarbonate) is a base. It reacts with any acid in the batter — buttermilk, lemon juice, brown sugar, cocoa — to produce CO₂ immediately. If your recipe has no acid, baking soda does nothing except leave a soapy, metallic aftertaste.
Baking powder is baking soda pre-mixed with a dry acid (usually cream of tartar or sodium aluminum sulfate). "Double-acting" powder reacts once when wet and again when heated, giving you two rises. This is why you can let baking-powder batter sit for a few minutes without disaster, but baking-soda batter should go straight into the oven.
3× the amount of baking powder (it's roughly one-third as potent). Going the other direction, use ⅓ the amount of soda + add an acid to compensate for the missing dry acid.The golden-brown crust on bread, the toasty flavour of cookies, the dark exterior of a seared steak — all come from the Maillard reaction, a cascade of chemical reactions between amino acids (from proteins) and reducing sugars (like glucose and fructose) at temperatures above roughly 140°C (280°F).
This matters for substitutions because different sugars brown differently. Honey contains more fructose than table sugar and browns faster — swap sugar for honey and your cookies may burn before the centre sets. Conversely, erythritol and many sugar alcohols don't undergo Maillard at all, producing pale, bland crusts even when the interior is fully baked.
Caramelisation is the thermal decomposition of sugar alone (no protein needed), starting around 160°C. The Maillard reaction needs both a sugar and an amino acid but starts at a lower temperature and produces far more complex flavour compounds — over 600 identified so far. When you substitute a protein-free sweetener (like agave syrup) for one that contains trace proteins (like brown sugar with molasses), you lose some of those Maillard flavour pathways.
Every substitution is a trade-off. The question is never "will this work?" but "which properties am I keeping, and which am I willing to sacrifice?"
What peer-to-peer means, how CRDTs guarantee conflict-free merging, WebRTC for direct browser connections, and IndexedDB for offline persistence.
India is 30 minutes off. Nepal is 45. Some countries skip daylight saving. Here's why the world can't agree on what time it is.
How attention works neurologically, why 25-minute intervals match attention spans, and what research says about time-boxing.