Menu

A price list that has to say "from": modelling a quote you cannot compute, then printing it once
πŸ“°

A price list that has to say "from": modelling a quote you cannot compute, then printing it once

DEV Community: javascriptΒ·MapToSiteΒ·1 day ago
#46vsNL5F
#devtojavascript#devto#dev#price#number
Reading 0:00
15s threshold

A tailor cannot price a hem from the word "hem". The number depends on the fabric, the lining, whether the original stitch has to be kept, and whether the trousers were already shortened once. So the price list has to do something a price list usually does not: publish an answer that is honest only while it stays a range.

That constraint turns out to be a decent little data-modelling exercise, and it is a case where the front-end decision (what to render) and the paper decision (what to print) are the same decision.

The model: an operation with a floor and a list of movers

The naive model is a row with a number.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.