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

711

u/crabbytag Aug 24 '19

This reminds me of the early years of the web when websites were looking for funding. At that time, adding a banner or two brought in revenue. People were clicking out of sheer novelty effect. But as it became more widespread, people started ignoring it. Then websites had to resort to more aggressive ads - animated banners, pop-ups, pop-unders. When those started getting blocked, they moved to advanced tracking.

The maintainer is getting $2000 for these banners because no one else is displaying ads there. Once other library authors notice this opportunity, they'll start adding ads too. Then the average payout comes down. But since we've already accepted ads here, some authors will include more annoying ads for slightly more money. For example, 2x the payout if the developer is required to take some action ('press enter to unpause the build) and 3x if the action is more annoying ('type out "Linode rocks" to unpause the build).

390

u/rich97 Aug 24 '19

NPM should crack down on this, hard.

95

u/timdorr Aug 24 '19

They can just do what Yarn already does and not display the output of postinstall scripts (unless they fail).

102

u/[deleted] Aug 24 '19

scripts now fail 50% of the time

136

u/Metallkiller Aug 24 '19

Oh shit it actually improves my builds?

→ More replies (4)

0

u/[deleted] Aug 24 '19

[deleted]

16

u/BobFloss Aug 24 '19

Lol playing a 20 second ASCII animation is actually genius

→ More replies (1)
→ More replies (1)

46

u/tojona1290840612 Aug 24 '19

NPM Terms of Use has a section on Acceptable Content, where they specify what kind of content is considered unacceptable. Most importantly, this is listed as an example of unacceptable content:

Content containing malicious computer code, such as computer viruses, computer worms, rootkits, back doors, adware, or spyware. This includes content submitted for research purposes unless agreed to in advance by npm. Tools designed and documented explicitly to assist in security research are acceptable, but proof-of-concept exploits are not.

Packages that violate the Acceptable Content guidelines should be reported to [email protected].

→ More replies (5)

145

u/shevy-ruby Aug 24 '19

NPM is the ultimate ghetto-gangster.

It will more likely send thugs to beat people refusing to see ads into submission.

45

u/kethinov Aug 24 '19

In the absence of that, I made an ad blocker for it.

70

u/duckvimes_ Aug 24 '19

Yeah but what about when this becomes really popular so you start adding ads?

40

u/rhiever Aug 24 '19

I'll create an ad blocker-ad blocker, of course.

9

u/scared_shitless__ Aug 24 '19

Isn't that basically what ublock origin was made for? To make up for adblock's shortcomings?

→ More replies (2)
→ More replies (3)
→ More replies (2)
→ More replies (4)

25

u/denemdenem Aug 24 '19

Ugh. I don't even want to imagine this distopia.

→ More replies (2)

22

u/balefrost Aug 24 '19

There's a difference. It's easy enough to fork these libraries. If these ads become frustrating, anybody can create a "standard-adless" fork and submit a separate NPM package. It doesn't seem like it would be particularly hard.

19

u/DarkTechnocrat Aug 25 '19

I mean, it's easy enough to fork a new package, true. Then what? How do you ensure that the Nth dependency in your chain uses your new library instead of the janky one it's currently using?

I'm not a JS dev so I genuinely don't know how hard this would be. It would be absolute cancer trying to do it in Python. You would, for example, have to fork the janky package, then make a fork of everything that uses the janky package, and then make a fork of every package you just forked and....oh my head. Not to mention, now you have to maintain every package you just forked - even the good ones.

It's really not that feasible, at least in Python. But like I said, idk if JS has some cool "globally substitute this package for that one" command.

8

u/dutch_gecko Aug 25 '19

You can do it with pip by saying "don't use version of [package] in PyPi, use the version I have at [URL]". Far from ideal however.

119

u/Lafreakshow Aug 24 '19 edited Aug 24 '19

2x the payout if the developer is required to take some action ('press enter to unpause the build) and 3x if the action is more annoying ('type out "Linode rocks" to unpause the build).

I'll give them precisely two days until all major build tools include automation for this.

It should also kick off a discussion about how far one can go before it stops being FOSS. One could consider having to manually unpause the build a kind of payment for using the library which, at least in my book, would make it no longer truly free software but more akin to ye olden days shareware that would install a couple dozen toolbars for IE.

158

u/tinara Aug 24 '19

As much as I despise those practices, a friendly remainder that the Free in FOSS stands for free as in freedom not as in free beer. I don't mind paying for FOSS software if needed. I do mind being targeted by ads that break my workflow and/or pollut my logs.

103

u/LicensedProfessional Aug 24 '19 edited Aug 24 '19

What I'm most pissed about is that I need those logs to do my damn job. This isn't like a billboard on a highway -- this is like if a surgeon had to close a pop-up every time she wanted to pick up her scalpel. I don't want to waste time filtering ads when I'm trying to debug

0

u/[deleted] Aug 24 '19

[deleted]

→ More replies (2)

11

u/tinara Aug 24 '19

Right on spot analogy!

→ More replies (4)

23

u/arstechnophile Aug 24 '19

Couldn't one simply fork the library and remove the advertising?

25

u/zellfaze_new Aug 24 '19

Yeah. That is in fact the whole point of FOSS. By having the freedom to modify code however you want you can remove anti-features. FOSS is about freedom.

→ More replies (4)
→ More replies (2)

19

u/MaxCHEATER64 Aug 24 '19

FOSS doesn't have to cost nothing to be FOSS.

→ More replies (4)
→ More replies (10)