Menu

1 / 3

Why 'Choose a unique column name.' Depends on Your Locale: The Data Studio's Column-Name Rule

DEV Community: javascript·OnePassApps·12 days ago
#E65LkCW5
#devtojavascript#devto#dev#locale#name
Reading 0:00
15s threshold

I work on OnePassApps, so this is a measurement of our own build, read out of the code we ship.

A reader of my post on duplicate CSV headers asked me a fair question and then kept asking it, in a very long thread, and I answered it 48 times. So this post is the answer, written once, where it can be found.

The question was: when the Data Studio refuses a column name with "Choose a unique column name.", what exactly is it comparing?

The answer, read out of the bundle

I fetched the Data Studio's route over plain HTTPS and walked the JavaScript it loads. The Data Studio's data operations do not run in the page. They run in a Web Worker:

/assets/data-operation.worker-nH-m3g4I.js — 54,757 bytes on the wire (54,755 characters; the file carries a byte-order mark).

That worker file is the only file in the Data Studio's chunk graph that contains the string Choose a unique column name.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.