TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Simplest word to describe key/value store?

1 点作者 pandatigox将近 3 年前
I am currently developing an app that uses customised key-value stores, but am struggling to come up with a simple way to describe this concept.<p>In the app, users can add custom meta data to objects. For example, a &#x27;restaurant&#x27; object can contain metadata with &lt;Rating, Int&gt;, &lt;Website, URL&gt;, &lt;Menu, Photo&gt; and so on. Other another example would be a &#x27;walking goal&#x27; object with custom meta data of &lt;Time Taken, Date&gt; and &lt;Steps, Int&gt;<p>I&#x27;m thinking of words like &#x27;properties&#x27; or &#x27;attributes&#x27;, but I think the word&#x2F;concept can be simplified further.<p>Thanks in advance!

8 条评论

davismwfl将近 3 年前
Building is easy, naming is hard. In this case though, you&#x27;re overthinking it. Pick one and move forward. Attributes is super common to use in these scenarios. Properties is also common and wouldn&#x27;t be out of place.<p>I like to always build a project dictionary early on, as it just is helpful for everyone coming along later, and also if concepts change over time the original intent is clear. So like in this case, I&#x27;d just pick &quot;attributes&quot; and then have a markdown file or wiki etc that has common terms, and attributes would be described with examples. A quick 1-2 sentence write up is way easier then trying to spend a lot of time picking the perfect word&#x2F;phrase.
mtmail将近 3 年前
In the OpenStreetMap data schema that&#x27;s called &#x27;tags&#x27;. Postgresql calls it &#x27;hstore&#x27;. I&#x27;ve seen &#x27;tuple&#x27; and &#x27;set&#x27; used but overall it&#x27;s easier for the reader to stick to key-value or name-value I think.
raxxorraxor将近 3 年前
Some languages use &quot;dictionary&quot;.
thesuperbigfrog将近 3 年前
Details
bob1029将近 3 年前
Dictionary
cyanydeez将近 3 年前
Tags.
alpaca128将近 3 年前
Named value?
orbz将近 3 年前
Details?