[deleted]•

In economics, a consumer purchases and uses goods. This doesn't require using up those goods. Programmers use that sense.

This is kind of a showerthoughts level shitpost, but written across a thousand words on medium.

21
[deleted]•

[deleted]

11
athrowawayopinion•

Can you consume this article? Sure, but it's not very substantial.

Your article sets up the question "Why do developers use the word “consume”?". Then never answers it. Ever. It just dumps your opinion all over the reader.

You've got this page tagged as a rant but this isn't even that because a rant has a purpose. It has intent. What you've got there is a ramble more suited to 9pm at the bar than a discussion forum.

Also there are times when you are just wrong. Consider the example about "Consuming Data". You can totally "consume data" consider the close(FILE* fp) function in C. That function consumes the file pointer and it is an error to assume otherwise. Same with similar destructors like free(void*) and wrappers like BufferedReader(...) where it considered bad form to use the object you are passing in after it's been consumed.

And finally, please don't take this as a personal attack. I just needed something to do until my caffeine headache wore off. I hope you continue to write as you have a nice flow to your words.

8
star-castle•

please don't take this as a personal attack.

Let's play a game. The game is called: assume malice.

The article is more substantial when the story behind it is "I've seen other articles where someone I don't know about attacks some random programming jargon that I learned without caring what else it might mean, exposing that jargon as somehow harmful. These people get a lot of attention and drive a lot of controversy. Maybe I can do this too :)" Likewise, he's noticed that these articles have stupid annoying tumblrite .gifs in them, to make them more like amusing presentations that the kids these days watch on the youtubes--but he doesn't understand any of that, and just awkwardly adds one to the end.

Where's the malice? This person is an alien, trying to hack our culture, and when he succeeds in that he will attempt to poison our language and thereby reduce our productivity, so that we will not be able to blow up the invading space ships with code, like in the terrifying horror flick Independence Day.

-1
ParzibalOP•

Actually I wrote the article honestly, but just for fun. I was talking with a friend and the "consume" word came in and I decided to write something for the same reason I placed that gif at the end: no reason.

1
star-castle•

Shameless lies.

-1
athrowawayopinion•

Yeah, I was 50/50 on that but felt like I should assume honesty once in a while. I mean I usually lurk mostly because for that reason.

0
Paddy3118•

reduce can be described as consuming data from an iterable.

2
iconoklast•

Indeed. And for its synonym "catamorphism", the prefix "cata-" is Greek for "downwards" or "degenerative" and thus implies something "destructive" in nature; you're discarding some structure. So in that case, "consume" isn't necessarily inapt.

1
NoLemurs•

The use of the word "consume" does seem a little strange at first, but then you get used to it, and it's use is super consistent, which makes it easy to understand what people are trying to communicate.

The author's suggestion to instead use "use" is an absolutely terrible idea. "Use" is massively more overloaded, and likely to be confusing or ambiguous. "Using" data could mean a bunch of different things. "Consuming" data has a relatively clear meaning.

Also, in most the contexts where "consume" is used, the idea that the use is (at least in principle) destructive, is quite intentional. When someone tells me they're consuming data, I assume that they've been sent a copy of data that they're allowed to destroy or modify, and that no other process will notice or mind. That's important information! "Use" just doesn't make that clear at all.

2
ParzibalOP•

You're right, there are cases where "use" is simply bad, but not always. What would you say about modules? Do you consume them, or do you use them? Or is there a more appropriate word?

But I think you're right about "consume" being (super) consistent. Like you said, after getting used to read that word everywhere, you clearly understand what the author means, even if it doesn't really fit the context.

2
iconoklast•

I don't think I've ever seen anyone write "consume software" or "consume data" where they meant something more precise than to "use" it, and I'm not sure I would readily pick up on it if they did; thus I'm not sure it's really more precise. But certainly there are many more precise words than "use", such as "transform".

1
warriorlemur•

It's a good point. The one usage I can think of is one someone says that a process "consumes messages" from a message broker like ActiveMQ or RabbitMQ, because the messages really are "used up", unlike the example of reading in data from a file or a database table.

1
iconoklast•

I think this is bordering on language peeving. Certainly, there are things that (grossly, I think) are viewed as commodities that are still not widely considered "consumed" by most English speakers, such as health care. However, the author missed the fifth sense of the word provided by Merriam-Webster's, "to utilize as a customer": e.g., consume goods and services. And I have a hard time imagining any native English speaker is confused by this usage. On the other hand, I think the author's prescription isn't unreasonable, and I like the idea of not using language that could potentially treat all data as merely some commodity. "Consuming" someone's genomic data, for instance, sounds virtually cannibalistic.

EDIT: as a side-note, Oxford's free online dictionary also roughly provides the relevant sense (which the author omitted), but it says "buy" rather than "utilize". So either there is a subtle dialectical distinction, or Merriam-Webster's definition is simply more accurate in general. Perhaps a non-American could tell me what "consume" means in their dialect with respect to commerce, if such a distinction really exists.

2
ParzibalOP•

I'm a native Spanish speaker, and "consumir" ("to consume") has the same meanings that it has in English. I mean, I know that "to consume" also means something similar to "to use", but seeing it overly used just everywhere, even where "to use" would fit better, is somewhat annoying to me. It's like a fashion that everybody follows along without thinking about it.

I purposely omitted meanings of the word that clearly mean "to use without destroying". You got me there!

1
gooftroops•

I purposely omitted meanings of the word that clearly mean "to use without destroying"

Because you wanted your readers to follow along with your article without thinking about it.

5
Mr_Again•

Creating low effort medium articles and linking them to r/programming is like a fashion that everybody follows along with when a short paragraph in a text post would be better.

1
weirdoaish•

Because we're all secretly cannibalistic ghouls from hell!

1