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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Why people use CSV instead of DSV?

4 点作者 james_smith_007大约 5 年前
It seems that most of the people use CSV instead of DSV. Why?<p>At least at the first glance, DSV seems to be a much better format. It is equally powerful, but much more cleaner and reliable.<p>About DSV and DSV-versus-CSV:<p>* http:&#x2F;&#x2F;www.catb.org&#x2F;~esr&#x2F;writings&#x2F;taoup&#x2F;html&#x2F;ch05s02.html#id2901882<p>* https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Delimiter-separated_values<p>Consider the following table (column - text):<p>1 - aaa<p>2 - bbb bbb<p>3 - ccc, ccc<p>4 - ddd &quot;ddd&quot;<p>In CSV: aaa,bbb bbb,&quot;ccc, ccc&quot;,&quot;ddd &quot;&quot;ddd&quot;&quot;&quot;<p>In DSV: aaa,bbb bbb,ccc\, ccc,ddd &quot;ddd&quot;<p>A quote from https:&#x2F;&#x2F;wiki.c2.com&#x2F;?DelimiterSeparatedValues:<p>&gt; DelimiterSeparatedValues files and CommaSeparatedValues are equally powerful, but the reading and writing algorithms for CSV have to maintain more state than the ones for DSVs, and so different CSV implementations end up implementing slightly different rules. Therefore using DelimiterSeparatedValues is closer to DoTheSimplestThingThatCouldPossiblyWork.<p>I don&#x27;t understand what the author mean. I don&#x27;t see how _&quot;the reading and writing algorithms for CSV have to maintain more state than the ones for DSVs&quot;_ leads to _&quot;and so different CSV implementations end up implementing slightly different rules&quot;_.<p>Also, are there any DSV editors on the market?

3 条评论

kevinherron大约 5 年前
CSV has reached a critical mass that will not soon be displaced. Decades and decades of legacy software that consumes and produces CSV files and will never be updated.<p>I didn&#x27;t even know the &quot;DSV&quot; acronym until I read enough of your post.
longtermd大约 5 年前
Because it&#x27;s not 10X better than CSV. It&#x27;s merely &quot;slightly&quot; better than CSV, and there&#x27;s really no pain or need for DSV at all. It has literally zero performance benefits but introduces a ton of compatibility issues.
zelphirkalt大约 5 年前
Afaik CSV is only a subset of DSV as indicated by the name: Comma VS Delimiter separated values. A delimiter can be all kinds of things, while comma is just a comma. However, the name is misused in popular tools, which actually do use other delimiters than comma, but still call it CSV. Any DSV reader in theory should be able to read any CSV file, unless the people implementing something and calling it CSV did not think about the meaning of the words.
评论 #22594337 未加载