Build better libraries, use dev warnings

from blog Vladimir Klepov as a Coder, | ↗ original
Suppose you're making a cool library that sums numbers in an array. You add a new option, inital, that lets users specify an initial value for the summation: sum([1, 1, 1], { inital: 10 }) // 13 Oh no! You made a typo — of course you meant initial, not inital. What's done is done, and you're stuck with a million users relying on your inital...