Get the latest tech news

"Data" Sucks


The most consistently bad variable name.

I think the worst variable name in all of programming is the word "data". I mean, it's a dictionary, but since it's only half typed, and not something strict like a dict[str, int] or something, once again, it could technically be anything. However, np.ndarray s are actually quite spicy multi-dimensional containers, so you usually want to specify what sort of data array you're expecting unless a "z-score" is something that applies to all ndarrays regardless of size and dimensionality.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of data

data

Related news:

News photo

DNA testing company 23andMe files for bankruptcy: What does this mean for your data?

News photo

Oracle Cloud says it's not true someone broke into its login servers and stole data

News photo

EROFS Being Extended To Handle Massive Amounts Of Data For AI Model Training