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.
The average person types around 40 words per minute. A professional typist hits 80–100. The world record is 216 WPM, set by Stella Pajunas on an IBM electric typewriter in 1946. But what counts as a “word”? Why do we measure speed this way at all? And does typing faster actually make you more productive? The answers are rooted in over a century of mechanical engineering, cognitive science, and office culture.
Words per minute sounds simple, but “word” doesn't mean what you think. The standard WPM formula uses a standardised word length of 5 characters (including spaces). This convention dates back to typewriting competitions in the early 1900s, when judges needed a fair way to compare typists working with different texts.
Gross WPM = (Total characters typed / 5) / Minutes
Net WPM = Gross WPM - (Uncorrected errors / Minutes)
Example:
You type 300 characters in 1 minute with 2 errors.
Gross WPM = (300 / 5) / 1 = 60 WPM
Net WPM = 60 - (2 / 1) = 58 WPMThe 5-character standard means that typing “I am a cat” (10 characters including spaces) counts as 2 “words,” even though it's four actual English words. Conversely, “extraordinary” (13 characters) counts as 2.6 words. This normalisation lets you fairly compare typing in different languages and contexts.
The QWERTY layout was designed by Christopher Latham Sholes for the Remington No. 1 typewriter in 1873. The popular myth says QWERTY was designed to slow typists down to prevent jamming. The reality is more nuanced.
Early typewriters had mechanical arms (typebars) that would physically collide if adjacent keys were pressed in rapid succession. Sholes arranged the keys so that commonly paired letters were separated on the keyboard — not to slow typists, but to reduce the chance of jams. The constraint was mechanical, not about speed.
QWERTY persists because of path dependence — once billions of people learn a layout, the cost of switching exceeds the marginal speed gain. Every alternative layout faces the same chicken-and-egg problem: nobody switches because nobody else has switched.
The physical mechanism under each key affects both typing speed and comfort. Three technologies dominate:
| Switch type | Actuation | Force | Best for |
|---|---|---|---|
| Membrane | ~4mm | ~55g | Budget, quiet offices |
| Mechanical | 1.5-2mm | 45-80g | Typing feel, gaming |
| Optical | 1.0-1.5mm | 40-50g | Speed, durability |
Mechanical switches register a keypress at the actuation point — typically halfway through the key travel — so you don't need to bottom out. This is why mechanical keyboard users often report faster typing: the keys register before they reach the bottom, reducing the total finger travel distance by up to 50%.
Optical switches go further by replacing the physical metal contact with a light beam. When the stem drops far enough to break the beam, the keypress registers. No metal contact means no debounce delay (the 5–10ms pause mechanical switches need to avoid registering one press as two).
Touch typing means typing without looking at the keyboard, using all ten fingers with each assigned to specific keys. The home row position (fingers resting on ASDF and JKL;) was formalised by Frank Edward McGurrin in 1888, who famously won a typing contest against a four-finger “hunt and peck” typist.
Research consistently shows that touch typists average 50–80 WPM, while hunt-and-peck typists average 20–40 WPM. But the speed gap narrows with experience — a study at Aalto University (2018) found that some self-taught typists who used only 6 fingers reached speeds comparable to trained touch typists. The key variable wasn't the number of fingers but consistent finger-to-key mapping — using the same finger for the same key every time, regardless of which finger it is.
The intuitive answer is yes — type faster, produce more. But research paints a more nuanced picture:
Typing speed is like running speed for a football player — it helps, but the game is won by reading the field, making decisions, and being in the right position. The fastest typist isn't the most productive developer any more than the fastest runner is the best quarterback.
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.
Why eggs bind, how fats create tenderness, what leaveners do, and why some ingredient swaps work while others fail.