Briefle words · Code & architecture
Abbreviation
A shortened word, like 'amt' for amount, that saves typing but forces readers to guess the full meaning.
Say it to an AI
JavaScript calculateOrderTotal(order, taxRate) for checkout: subtotal from lineItems, minus coupon.amountOff, plus tax on the discounted amount, plus shipping unless it clears the free-shipping minimum. Full-word, intention-revealing names everywhere, no abbreviations like amt or txbl, and named constants for the shipping rules.
How an expert would brief the stronger version of “Order total”.
See it
Try it as a puzzle →Checkout helper in an online shop that adds up the cart, coupon, tax and shipping.
Why: B uses subTot, disc, txbl, tx and shp; A spells out subtotal, discount, taxableAmount, tax and shipping.
Related words
Room 2 · Naming
Learn “Abbreviation” in a five-minute lesson