r/programming • • Aug 24 '19

A 3mil downloads per month JavaScript library, which is already known for misleading newbies, is now adding paid advertisements to users' terminals

https://github.com/standard/standard/issues/1381
6.7k Upvotes

914 comments sorted by

View all comments

91

u/[deleted] Aug 24 '19

So it is essentially malware now?

49

u/neopointer Aug 24 '19

As nearly any JavaScript library is

2

u/qsdf321 Aug 25 '19

I recently had to install an extension in VS Code that when activated spawned a malware dropper. From the built-in extension manager.

-8

u/jasonlotito Aug 24 '19 edited Mar 11 '24

AI training data change.

6

u/[deleted] Aug 24 '19

Except if this is a dependency, many people won't realize this free and open source software (and I'd contest it still fits as FOSS) contains ads, and they'll get ads without knowing why in their console.

And there'll be a lot more if this practice takes off. It's as bad as any type of malware that starts causing ad pop-ups where you don't want them.

-14

u/jasonlotito Aug 24 '19 edited Mar 11 '24

AI training data change.

-45

u/gwillicoder Aug 24 '19

Did you even read the article?

They have a hardcoded section that says “sponsors”

They call console.log() and day thank you to the sponsors.

This is way too dramatic

40

u/[deleted] Aug 24 '19

It's injecting ads into the console. I consider that malware, regardless of context. It's crowding up installation logs.

7

u/DarkTechnocrat Aug 24 '19

Imagine being the poor schmuck who supports code that uses this. One day your boss calls you into the office and asks you what the hell is this sponsor thing that is popping up on user terminals. Now you look like an idiot.

This is not a benign change, it could have moderate to significant repercussions for a lot of people who are inadvertently using it. Everyone likes to pretend that we've thoroughly vetted all fifty thousand packages in node_modules, and events like this just upset the applecart for no reason.

-39

u/gwillicoder Aug 24 '19

Then don’t use their free software?

The programming community is so ridiculously entitled. They want free software that is constantly maintained and patched for security issues but get upset when someone experiments with having a “thank you” message that prints during installation?

0

u/[deleted] Aug 24 '19

[deleted]

→ More replies (3)

31

u/[deleted] Aug 24 '19

Then don’t use their free software?

Don't worry, I won't.

0

u/[deleted] Aug 24 '19

[deleted]

2

u/gwillicoder Aug 24 '19

If people were paying for the software or donating to the developers they wouldnt be putting print statements in.

0

u/[deleted] Aug 24 '19

[deleted]

2

u/gwillicoder Aug 24 '19

So why it’s immoral for any FOSS developer to get paid sponsorships because others do it for free?

If you don’t like people getting a sponsorship for their free software then write the code yourself.

Honestly who cares

→ More replies (3)

9

u/DarkTechnocrat Aug 24 '19

Surely you understand that the problem is being tricked into paying for things?

If someone offers you a free pizza, then sends you a bill, you would not be “entitled” for being upset.

You are not begging for free pizza. They told you it was free, you accepted it in that context, then they changed the rules.

I see several people in this thread making the entitlement argument as if the context change is irrelevant. Someone sneaking a Bitcoin miner into your code isn’t simply “experimenting with new funding models “.

4

u/chrisyfrisky Aug 24 '19

Don't worry, any sufficiently motivated apologist (and I totally don't mean they're paid or anything, oh no I would never imply that) would find an argument for injecting Bitcoin miners into people's computers. All you have to do is to reduce it to "They're just experimenting with different funding models", the same way a hacker reduces hacking a bank to "just rearranging ones and zeroes" or "just rearranging pixels on a screen", ignore all actual consequences and ethics, and you'll have successfully argued for terrible things.

4

u/DarkTechnocrat Aug 24 '19

Don't forget "If you don't like people injecting Bitcoin miners, build your own package!".

5

u/chrisyfrisky Aug 24 '19

"Y-you're not entitled to free things! Stop being so entitled! How entitled are you to think that software should be free of Bitcoin miners?!"

2

u/gwillicoder Aug 24 '19

It’s a print statement that says thank you to their sponsors. That’s it. If you don’t like people doing that then start your own project and develop it.

3

u/DarkTechnocrat Aug 24 '19

If you don’t like people doing that then start your own project and develop it

If I don't like people doing what? Surreptitiously changing packages after I include them? *That's* the problem here.

The non-asshole way to do it would be for him to fork a version of his project that includes ads, and ask the community to support him and use that one. Then you're giving people a choice, and I don't doubt that some significant number of people would have **willingly** supported him.

But no, he had to abuse the trust of every downstream user, trust the entire ecosystem is built on by the way, so he could make a temporary cash boost. He deserves every iota of backlash he gets, and I refuse to believe you can't see why.

3

u/HorribleJhin Aug 24 '19

Yes, I am so entitled for expecting software to be useful to me and not whoever made it while abusing me.

2

u/gwillicoder Aug 24 '19

It’s literally free to use.

All it does is print a thank you.

If you don’t like it you can either write your own code and share it for free with the world, or you can fork the project and take out the console.log

→ More replies (9)

3

u/freakhill Aug 24 '19

I agree with you real hard