joakim / iota-uri-scheme

IOTA URI Scheme (proposal) – Not set in stone, see open issues:
https://git.io/vpWy0
3 stars 0 forks source link

Naming things: value / amount? #6

Open joakim opened 6 years ago

joakim commented 6 years ago

There are only two hard things in Computer Science: cache invalidation and naming things.

What should be the name of the query parameter specifying how many iotas to transfer?

When writing this proposal, I went with IOTA's own term, value. I've since come to think that maybe amount is a more user friendly term. So, what should it be?


Value

Monetary or material worth. An amount, as of goods, services, or money, considered to be a fair and suitable equivalent for something else; a fair price or return.

Amount

A number; a sum. The total of two or more quantities; the aggregate.


My input:

So what it comes down to is whether to use a technical term or a user-friendly term. Whether to map to IOTA's internal name for it, or to map to the term users see in their wallet apps.

If IOTA users only see "Amount" and maybe never encounter the technical term value, they might expect the URI scheme to accept iota:<address>?amount=<amount>, which if it didn't would result in the value/amount being ignored by the app. There are way more end users than there are devs, so I think amount is what will cause the least trouble/side-effects.

Naming is hard. Thank goodness there's no cache invalidation to worry about :)

joakim commented 6 years ago

As no one has objected in 3 hours, I'll go ahead and change the spec from value to amount :)