TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A Tale of 4 Strings

1 pointsby shiryelalmost 4 years ago

1 comment

cratermoonalmost 4 years ago
&gt; &quot;north&quot; is definitely a piece of text in JSON, however we don’t necessarily think about it as arbitrary text. Indeed, the common case is that direction will contain one of many pre-defined values, and the use of text here just makes it easier to communicate<p>We call that &quot;stringly-typed code&quot;, and it&#x27;s an anti-pattern. <a href="https:&#x2F;&#x2F;wiki.c2.com&#x2F;?StringlyTyped" rel="nofollow">https:&#x2F;&#x2F;wiki.c2.com&#x2F;?StringlyTyped</a>