Re: "name-value pair" vs "key-value pair"

Subject: Re: "name-value pair" vs "key-value pair"
From: Ben Kovitz <ben-kovitz -at- vertel -dot- com>
To: "TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Tue, 19 Jun 2001 13:38:30 -0700

Guy Haas wrote:

>I document a product that deals in a lot of what I would call "name-value
pairs"
>(or "name/value pairs"). Recently, some of our engineers added some new
>features and discussed the same entities in terms of "key-value pairs".
>
>A web search turned up over 9000 instances of "name-value pair" to over 8700
>"key-value pair" citations.
>
>I have seen "name/value" used in the W3 standards.

To a programmer, saying "key/value" pair suggests some sort of database
lookup, typically a hash table. The key is the input to the database, the
value is what the database returns. For example, in a database of zip
codes, the key might be a zip code, and the value might be the name of the
city.

"Name/value" means almost exactly the same thing, but doesn't have as
strong a connotation of a database lookup. So it's better to say
"name/value pair" if you're talking about, say, a text file with a format
like the .INI files in old versions of Windows. Also, a "key" isn't
necessarily a text string, though in most cases it is.

>--Guy K. Haas ghaas -at- selectica -dot- com or gkhaas -at- usa -dot- net
> Software Exegete in Silicon Valley

I love your title!

--
Ben Kovitz
Author, _Practical Software Requirements: A Manual of Content & Style_
http://www.amazon.com/exec/obidos/ASIN/1884777597
http://www.manning.com/Kovitz/


^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

*** Deva(tm) Tools for Dreamweaver and Deva(tm) Search ***
Build Contents, Indexes, and Search for Web Sites and Help Systems
Available now at http://www.devahelp.com or info -at- devahelp -dot- com

Sponsored by Cub Lea, specialist in low-cost outsourced development
and documentation. Overload and time-sensitive jobs at exceptional
rates. Unique free gifts for all visitors to http://www.cublea.com

---
You are currently subscribed to techwr-l as: archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit
http://www.raycomm.com/techwhirl/ for more resources and info.


Follow-Ups:

References:
"name-value pair" vs "key-value pair": From: Haas, Guy

Previous by Author: Re: Looking for a title
Next by Author: Re: advice for newbie?
Previous by Thread: "name-value pair" vs "key-value pair"
Next by Thread: Re: "name-value pair" vs "key-value pair"


What this post helpful? Share it with friends and colleagues:


Sponsored Ads