r/programming • u/Magnaboy • 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/13811.9k
u/pubcrawlerdtes Aug 24 '19
If ads started showing up in my build logs, I would be extremely concerned. I can't possibly see how the author expects this to go well.
536
u/AngularBeginner Aug 24 '19 edited Aug 24 '19
Don't you want advertisements in the build logs for your production environment?
657
u/lenswipe Aug 24 '19
You know what I REALLY want? Advertising EVERYWHERE!
Imagine trying to debug a kernel driver issue whilst having to stop every 30 seconds and watch a 10 minute charmin commercial. Wouldn't that be the fucking best?!
227
u/kethinov Aug 24 '19
I built an ad blocker for such ads in the hopes of preventing this dystopia from taking hold.
→ More replies (115)→ More replies (14)49
u/droomph Aug 24 '19
Every 100 clock cycles, the CPU switches over to an advertisement for nordvpn
→ More replies (1)67
u/AngularBeginner Aug 24 '19
Adding to this:
I'm pretty sure I'm not even allowed to provide my customer with build artifacts that advertise other companies, and build logs are part of the build artifacts. That would mean I either couldn't use this package, or I need to add extra tooling to remove the advertisement again, which would be very fragile and error prone.
→ More replies (9)67
u/Theemuts Aug 24 '19
"This build was sponsored by squarespace, please hit the like button and enter your email address below to continue the process"
0
147
u/whitfin Aug 24 '19
The author already claimed to have gained $2,000 for 5 days work because of this model, so that’s pretty much why it went well for them
108
u/AngularBeginner Aug 24 '19
RyanCavanaugh said it nicely:
The first step to the Tragedy of the Commons has thus started. Every other popular package will copy this bright idea; npm and yarn will realize that spamming dozens of pages of sponsorship or donation request banners is a bad user experience, and eventually block all install script output from the CLI.
You at least got in on the ground floor before it was ruined for everyone.
→ More replies (2)22
122
u/HittingSmoke Aug 24 '19
The first banner ad had a click-through rate of over 44%. That level of success is unsustainable because if it's that effective, everyone is going to do it and every build log is just going to be a fucking unreadable mess of ads and unethical practices to make sure they're seen. Then we end up with ad-blocking scripts to wrap our builds around to clean up the output.
This idea is completely ignorant of history as anything more than a short-term money making scheme.
→ More replies (1)→ More replies (6)37
u/2lazy4forgotpassword Aug 24 '19
Did he donate any of that $2000 to the hundreds of packages his own library uses? It's a rabbit-hole, doesn't make sense.
→ More replies (2)44
u/Great_Chairman_Mao Aug 24 '19
The author expects to get paid. That will go well.
69
u/indyK1ng Aug 24 '19
Until people stop using it because they don't want ads in their build logs.
There are other style and linting tools.
17
Aug 24 '19
I actually just use VSCode's built-in formatter, since that seems to produce the least ugly results.
→ More replies (2)39
u/Caffeine_Monster Aug 24 '19
It's open source. Set up a fork that automatically pulls the latest version and strips out the ad code.
→ More replies (3)35
u/mispeeled Aug 24 '19
Something along those lines happened to me two weeks ago. I ran `npm install`, and the last line of the build log was "If you like what [...] is doing, please consider donating [...]"
I was absolutely horrified.
51
u/acwaters Aug 24 '19
To be honest, I have a lot less of an issue with a tasteful single-line message and donation link than with a banner ad in my terminal. But many of the concerns raised in the linked discussion still apply: If everybody does that, then install output becomes unreadable, most valuable placement results in perverse incentives (race-to-the-bottom), etc. So I would still much rather most projects didn't.
73
Aug 24 '19
Everything about npm is horrifying. The development model where including one dependency automatically pulls in 500 other random dependencies from random places needs to go away.
I'd love to see a more curated model, where libraries and dependencies undergo reviews and audits for security, quality, etc.
It's insane that you could add one line of code to a project that ends up pulling in 20 other dependencies that you never heard of and have questionable quality.
→ More replies (4)→ More replies (2)13
u/cartechguy Aug 24 '19
I don't see the problem with asking for a donation. That's not the same as an ad.
→ More replies (3)→ More replies (83)18
u/carbolymer Aug 24 '19
You should be already concerned if you have npm in your build logs.
→ More replies (2)
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).
→ More replies (1)102
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.
→ More replies (4)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?
→ More replies (9)25
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.
→ More replies (1)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
→ More replies (8)23
u/arstechnophile Aug 24 '19
Couldn't one simply fork the library and remove the advertising?
→ More replies (1)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 (3)19
5
2
2
2
Aug 25 '19
I suppose we're finally witnessing the death of dynamic content. I'm more and more tempted to just ditch it outright and return to the good old "everything is a reload" model.
→ More replies (3)2
2.0k
u/BadMoonRosin Aug 24 '19
If I'm following this correctly, this is hardly even a software project.
This is some random person's ESLint config file, and thin wrapper script for launching ESLint.
He gave it a name and website, clearly designed to give people the misleading impression that it is part of JavaScript. "Official", "authoritative", "endorsed", etc... instead of just some random person's config file for a 3rd-part lint tool.
He's now pumping advertisements to developers' shell terminals. Making thousands of dollars off this ESLint config file, without sharing a dime of that revenue with the upstream ESLint developers who actually deserve it.
This is skeezy as hell... fuck everything ABOUT this guy. I'm really disappointed in all the supportive comments, here and in that GitHub issue thread. I know that being contrarian often makes us feel smart, but sometimes a spade simply is a spade.
192
u/civildisobedient Aug 24 '19
He gave it a name and website, clearly designed to give people the misleading impression that it is part of JavaScript. "Official", "authoritative", "endorsed", etc... instead of just some random person's config file for a 3rd-part lint tool.
I think this touches on the root of the problem. Devs need to tighten up their dependency chains. And it needs to be easier to spot the "good" common libraries from the idiots and resume-padders. Something like what Java has with the Apache Commons libraries.
→ More replies (5)94
u/ericonr Aug 24 '19
Have you heard of crev? https://wiki.alopex.li/ActuallyUsingCrev
It's a signature based method for reviewing libraries and leaving your opinion there. You would add people whose signatures you trust, and then you'd have a "score" for each of your dependencies. It's currently being implemented in Rust, but there's a JS version on the works.
11
u/acwaters Aug 24 '19
That's an interesting idea. I'll be really interested in how its community develops.
→ More replies (2)9
u/spacejack2114 Aug 24 '19
It would need to be kept up to date as well. A library may start off trustworthy but later degrade all of a sudden.
→ More replies (1)100
u/Ativerc Aug 24 '19 edited Aug 24 '19
Not into javascript. Can someone explain what this library does?
From my understanding of /u/BadMoonRosin 's comment above, this repo is someone's configuration file for a linter and this person has gone above and beyond to make it look legit/official/required and now is asking money for
179 lines of JavaScript (+ 13.5k lines of Markdown, according to this, but remember they store the docs in nearly 20 languages), 129 contributors, 1577 commits, 164 releases.
Hmmm, if I'm correct, that sounds deceitful. Extremely deceitful.
Here are my questions:
Is using ESLint that useful and required?
Why do you need to configure the linter so much?
Is configuring it so hard or convoluted that to get it just right it's easier to copy someone's linter config?
18
Aug 24 '19
The value of Eslint is subjective, but I find that it promotes a culture of caring for code by enforcing cleanliness standards.
18
u/DrexanRailex Aug 24 '19
It really is useful. I wouldn't be surprised if a company required me to use it, and I probably wouldn't complain.
Everything about JS that isn't supported in IE11 (which is a lot of stuff) needs configuration, sadly. Pretty much everything the transpilers do is opt-in, so the linters need to be configured to accept these.
Not exactly hard, but it's some amount of work. I personally have my own config written and use it (or an adaptation) for all my projects, but it's taken a few hours for me to set it up the way I wanted.
→ More replies (8)4
Aug 25 '19
Not into javascript.
Why is it that all of "these" issues seem to be limited to one language. left-pad, now this.
→ More replies (2)13
u/fooey Aug 25 '19
Hows this for upping the skeeze factor
Both Linode and Logrocket have pulled out and as of now the project has no sponsors. From Linodes messaging, they didn't know about this to start with and didn't approve it.
https://github.com/feross/funding/commit/03937d3f1178a7908d71a271e629583723e0f70d
https://github.com/feross/funding/commit/427bb8ffb6a1b6839285fc1bb18dfadefaf6209e
The author isn't saying peep, but this whole thing sounds pretty shady.
55
u/Nexuist Aug 24 '19
I know that being contrarian often makes us feel smart, but sometimes a spade simply is a spade.
This is an incredible quote that applies to more than just software politics. Do you mind if I steal it?
66
u/b7gCeIyS Aug 24 '19
It definitely applies to subs like /r/science. The first person who spends 30 seconds reviewing a study that took 15 years and 20 PhDs can gain tons of karma by "refuting" it with some pithy statement like "correlation is not causation" or "I didn't read this study but clearly they didn't consider [some extremely obvious confounding factor]." This will be followed by dozens of comments saying "Nice, the real science is in the comments!"
→ More replies (6)12
u/BadMoonRosin Aug 24 '19
Well, I didn't personally invent "calling a spade a spade". Just forking something in the public domain. Consider it open source. :)
38
u/marian1 Aug 24 '19
Have you ever thought about monetizing your quote-sharing business? With advertisements maybe?
→ More replies (3)61
Aug 24 '19
yeah. standard sucks compared to the airbnb config anyways.
→ More replies (1)54
Aug 24 '19
Even airbnb config is bloated. The eslint recommended plus a few use case specific plugins is my favorite.
→ More replies (2)68
u/DevilSauron Aug 24 '19 edited Aug 24 '19
179 lines of JavaScript (+ 13.5k lines of Markdown, according to this, but remember they store the docs in nearly 20 languages), 129 contributors, 1577 commits, 164 releases. Publicity-driven developement at its finest. And they demand payment - for that? The audacity!
→ More replies (3)71
u/thfuran Aug 24 '19
129 contributors, 1577 commits, 164 releases. Publicity-driven developement at it's finest. And they demand payment - for that? The audacity!
Audacious indeed if not all the contributors wanted this and are getting their cut.
→ More replies (5)10
3
u/Mr-Yellow Aug 25 '19
I'm really disappointed in all the supportive comments, here and in that GitHub issue thread.
Selection bias. They're censored.
3
Aug 25 '19
It's actually really nice. I've used it a lot in the past. It completely takes the waste of time debates about linting and trying to get all the dang rules configured across projects and maintaining them as the tools change is kind of a pain in the ass.
But that being said, ads in the install are garbage. Please don't do this anyone.
→ More replies (75)3
u/TravellingPencil Aug 25 '19
Here’s a few things we as users can do to help sort this out:
Make noise on social media to draw attention to this behaviour. It may encourage him and the companies involved to reconsider what is happening.
Linode already publicly pulled their ad & sponsorship due to the social backlash.
2. Report the organisation/project on GitHub for being misleading with the intention to make users believe this is something official when it is not. Further, that he is financially gaining from this misleading naming.
3. Report the user himself to GitHub and explain that you don’t think he should be in a position to have sponsoring enabled on his account due to this situation.
257
u/jswipe Aug 24 '19
The companies paying for ads will want metrics on how many people are seeing them/conversion rate. If this opens an avenue for collecting info from my terminal by executing post-install scripts then it should be shut down.
100
u/KryptosFR Aug 24 '19
That's a very good point. Also shame on the two companies sponsoring it that way.
It opens a Pandora box that nobody needed.
→ More replies (1)60
Aug 24 '19
For real.
I have a sales call scheduled with Log Rocket and am not excited to see them involved in this.
56
u/sclarke27 Aug 24 '19
be sure to tell them how you feel about this. If there is backlash from devs, then companies will not sponsor this kind of BS project.
→ More replies (3)31
→ More replies (4)32
u/ortonas Aug 24 '19
Yeah, there will definitely be device data being collected, and who knows what else. There are plenty of ad providers with blanket data collections clauses.
I don't imagine this would fly at any enterprise or sensitive environment, "Oh yeah, it's just some free library that just collects info on all relevant development devices, possibly enough to uncover our business practises, it also may download and upload any data it feels like and we do not have any control or knowledge of it. Also the same applies in production code. So it's all cool, don't worry"
It's only a matter of time when these ad providers will start pushing to increase profit margins and become more and more aggressive in data collections and sales of it
→ More replies (1)8
Aug 24 '19
"It also uses system admin privileges because how else will the code execute on your machine?"
Nope, this won't be abused at all. /s
278
u/spaghettiCodeArtisan Aug 24 '19
I don't know what this standardjs thing is, but it's going straight for the blacklist.
→ More replies (38)70
370
u/Kwinten Aug 24 '19 edited Aug 24 '19
Can't wait till my CI's build log is spammed full of banner ads.
What a sad state of affairs. I have no doubt other popular npm package devs will take note of this and follow suit. Have fun trying to figure out which dependency is injecting ads into your terminal very soon.
203
u/FINDarkside Aug 24 '19
They're already spammed full of stupid shit like someone looking for a job etc.
149
u/Tharanor Aug 24 '19
I hear the author of core.js is looking for a good job!
28
u/SustainedDissonance Aug 24 '19
Yeah, for like 6 months now; clearly the ad is working out well for him.
→ More replies (4)→ More replies (2)68
41
Aug 24 '19
did you know, "the developer of core-js is looking for a good job :-)"?
→ More replies (1)27
u/empty_other Aug 24 '19
I'm surprised npmjs.com doesn't have any policies on advertising (except not allowed to use their email services for ads). How did npm packages stay ad-free for so long?
9
20
u/Kwinten Aug 24 '19
Oh yuck. Glad I personally haven't come across any of that so far.
→ More replies (1)96
u/16kHz Aug 24 '19
Wait until your compiler/interpreter requires a microtransaction to show you the full error message.
51
u/schplat Aug 24 '19
Thanks, I hate it.
15
u/Entropy Aug 24 '19
That's the actual compiler error message you get when you open the error crate. Stack trace drop rate is only like 5%.
→ More replies (2)7
9
u/argv_minus_one Aug 24 '19
I'm not half as worried about that as I am about them including spyware in their packages. Unlike websites, npm packages are not run in sandboxes.
→ More replies (1)9
u/Voidsheep Aug 25 '19
Would be good if npm (the company) made a policy where advertisements and solicitation could result as a ban for the package, user and organisation. Obviously it's impossible to enforce across the board and would require a grace period, but it should at least prevent any widely used packages from doing this nonsense.
Effectively this would mean they freeze the package and change the install script to include a disclaimer about "<package name> was abusing npm and can't no longer be updated. Consider removing it immediately.", while blocking any other terminal output.
It's a shame it's even a discussion that needs to be had. Hiding the output by default isn't a good solution, because packages can use it for plenty of important information, like a signal for deprecation (e.g. "uuid now provides official type declarations, you can remove @types/uuid from your dependencies").
0
Aug 24 '19
[deleted]
56
u/truh Aug 24 '19
Why stop there? Why not just start a process that mine crypto currencies in the background?
Oh wait, people are already doing that.
88
u/Woodenwindows Aug 24 '19
What's the story behind misleading newbies?
202
u/InvisibleEar Aug 24 '19
They call themselves "standard" but the program's suggestions are actually not how most people do things. Or so I'm told, I'm not personally involved in JavaScript
22
u/lovestheasianladies Aug 24 '19
Also, I just hate their way of doing things.
There are way better lining configs out there.
→ More replies (5)74
Aug 24 '19 edited Aug 24 '19
bingo.
most people use a style guide already set in place by their company, or they take something like standardjs and modify the crap out of it.
personally, i use a modified airbnb config and it works well.
→ More replies (6)26
Aug 24 '19 edited Aug 24 '19
There was never such standard for eslint config in the the js environment but he was the first to typo squat standard keyword.
When people started pointing out that he was misleading people, feross refused to change anything while he's obviously benefited from it
Also his config contains many opinionated rules such as the line ending with comma which is perfectly fine but prevent it from being a standard.
Relevant discussion : https://github.com/standard/standard/issues/78
7
Aug 24 '19 edited Aug 24 '19
Tldr it's not a standard at all, just one opinionated eslint config that people coming from languages other than C#/Java/PHP often prefer. It mostly helps prevent issues with low semi style. It used to be used by express, mongoose and many other popular projects (and is still a dominant starting point for company/project wide low semi configs) so he probably figured "low semi is going to be how we do things" but then he figured out the name has benefited his career.
But to be correct to the guy, apart from the shady name and shader monetization tactics, the high semi styles are usually equally non-standard, equally opinionated and ASI in JS has so many edge cases that it's equally difficult not to run into gotchas regardless of which side of the semi fence you're on..
But it should be noted that the semi side is louder just because there are many more C#, PHP and Java devs whose UI/web jobs are moving to front-end or Node.js than there are, say, Python devs.
→ More replies (2)
170
Aug 24 '19
This guy has proven delusional in the past, I'm not surprised he's putting ads on his do-nothing, horribly misleading "library". He somehow got Twitter famous so now people look to him as some sort of leader in the field. I hate being a frontend dev sometimes.
39
u/quentech Aug 24 '19
got Twitter famous so now people look to him as some sort of leader in the field
I've known a few of these people IRL and I think there's something fundamentally incompatible about the personality type it takes to want and become Twitter famous, or generally internet-known (or Microsoft MVP for those of us a little further along in age), and the personality type it takes to be a good developer.
The last person I replaced went on to be a "developer evangelist". They had an OSS project that got a bit popular, and I occasionally run into questions about it, to which I can only comfortably reply, "Please use something better than this hot steaming pile instead."
He also decided to use a Twitter-famous developer's pet ORM project and 10 years later we're still working on fully extricating that abandonware.
→ More replies (9)3
u/anonveggy Aug 25 '19
I know right. Nat (Github CEO) was congratulating him on getting fat stacks through Github sponsors (a couple of 10k a month sponsors) and now this. I applaud open source devs getting their cut, but that's not wild card for being ridiculous.
37
u/undercover-racist Aug 25 '19
Feedback welcome!
EDIT: This thread is now locked
hehehehehe
9
u/Mr-Yellow Aug 25 '19
"Please post here instead"
Comments removed. "Post this other thread instead."
Comments removed.
61
u/ganymedes01 Aug 24 '19
Looking at the src, this looks like just a wrapper for ESLint with preset configs. Is that really it, or am I missing something that actually justifies using this thing?
→ More replies (3)57
u/vytah Aug 24 '19
Is that really it
Yes.
Except that it now has ads.
28
u/ganymedes01 Aug 24 '19
the fact that such a library manages to amass 3mil monthly downloads and gets used by pretty big corporations is really worrying
110
u/georgeASDA Aug 24 '19
Would an ad-free fork not just spin up the next day?
→ More replies (2)83
u/crabbytag Aug 24 '19
It would, but this is inferior to the airbnb config anyway.
→ More replies (1)7
u/nicentra Aug 24 '19
airbnb config? Do they have a public code style/eslint config as well? Do you have a link to share?
191
Aug 24 '19
I think that the current model of sustaining open source is not working
wtf are you talking about?
If we learn that the experiment works, perhaps we can help make all open source healthier, too.
Delusions of grandeur.
58
u/the_gnarts Aug 24 '19
wtf are you talking about?
It’s the Redis move:
“I greased the adoption of my project by giving it away for free under a license that asks for next to nothing in return.
Now that this caused my project to be adopted over alternatives with commercial, non-free, or copyleft licensing, how can I start monetizing the damn thing?”
→ More replies (4)8
→ More replies (3)2
u/arthurloin Aug 25 '19
Holy shit. Open source has never been stronger! What planet does this guy live on?
→ More replies (1)
48
45
64
u/Farsyte Aug 24 '19
and the gall to call it "standard" -- who is he? ANSI or ISO?
36
60
u/GhostMan240 Aug 24 '19
Never been happier to be an embedded developer
→ More replies (10)22
u/ericonr Aug 24 '19
Right? I code mostly in C, and sometimes Python. I fear that pipy could support this kind of thing, but most libraries that I make use of are, like, moral. Compared to pipy, npm just seems like the wild west.
89
u/its_never_lupus Aug 24 '19
It's always Node that attracts shit-tier drama.
→ More replies (2)54
u/IceSentry Aug 24 '19
More like, the js ecosystem is the biggest out there, with mostly young devs. It's not that it attracts it. It's just statistically more likely for the js ecosystem to contain bullshit. It's mostly a number game.
→ More replies (2)
36
u/josephblade Aug 24 '19
What is with the list of people in the github project stating they think this is a good thing?
I mean if you want the project to die it may be a good thing
4
u/ChemicalRascal Aug 25 '19
It's a cult of personality thing. This guy is moderately famous on Twitter (because he turned down an invite to work at YouTube), and as a result he's built his persona up as if he's God's gift to OSS. Lot of folks just take that at face value.
17
u/alabianc Aug 24 '19
Wmhilton perfectly foresees what will happen with this: "I think it's OK... I do worry that npm install will just become a long trail of banner ads though eventually and it won't scale. Because if every npm package adds ads, the noticeability of each ad will diminish. (Interestingly, the most valuable "realestate" will be packages whose banner is displayed last, so if it becomes a literal "race-to-the-bottom" people might add sleep statements to their post-install scripts so they are displayed nearest the bottom. What a dystopian installation experience!)
Fun fact: yarn does not display the output of post-install scripts. One might say yarn has built-in ad-blocking."
61
u/BitzLeon Aug 24 '19
I used Linode for hosting for years. The fact that they are taking part in this experiment is worrying.
They clearly lack basic ethics to even consider supporting something like this.
I'm switching to another host.
22
u/Pandalism Aug 24 '19 edited Aug 24 '19
According to the comments on the issue, they might not even know.
I just recieved this response.
Hello,
We definitely understand your objection to an advertisement of this nature. This ad was not paid for or solicited by Linode. There is an open issue/thread regarding this advertisement on the package's Github repository.
We appreciate you voicing your concerns about this ad, and I've passed along your feedback to our team who will be investigating this matter. If you have any other questions or concerns please let us know.
Best Regards,Tim H.Linode Senior Support
12
u/BitzLeon Aug 25 '19
They replied to me on Twitter saying they pulled the referral url. Good on them.
14
u/Walter_Bishop_PhD Aug 25 '19
LogRocket also had their url removed from
messages.jsonhttps://github.com/feross/funding/commit/03937d3f1178a7908d71a271e629583723e0f70d
0
0
Aug 24 '19
[deleted]
14
Aug 24 '19 edited Aug 24 '19
They have a landing page for StandardJS users: https://welcome.linode.com/standardjs/
So it really must have gone through them. I'm also likely to move off of Linode because of this.
Edit: Maybe it's possible this is a URL generated through some system by Feross and not Linode. But when I try to generate a referral URL it looks like https://www.linode.com/?r=hexkeyhexkey .
4
108
u/BurningTheAltar Aug 24 '19 edited Aug 24 '19
Whining about how "almost no one pays for" an open source project is the most tone deaf bullshit I ever heard.
If you expect or demand compensation, you never should have open sourced it. If you can't personally afford to maintain a project, stop working on it and hand it over to the community. Let's not pretend this is a new, unique, and unsolvable problem and gaslight people into thinking foss/oss projects are untenable, experimental concepts (despite, you know, virtually all software we use benefiting from foss/oss, including software feross has undoubtedly used in maintaining this project).
4
u/Im_not_depressed_AMA Aug 24 '19
What does "handing over to the community mean"? In my mind, licensing something under an open source license is already handing it over to the community: anyone can fork it and make an ad-less version, and maintain that.
→ More replies (5)16
u/searchingfortao Aug 24 '19
Management of a project is still a lot of work, so handing it over usually involves nominating one or more developers as maintainers.
→ More replies (1)
16
u/reacher Aug 25 '19
This is kind of ridiculous. I mean what's next? Ads in the middle of our red-
Get your credit report now at freecreditreport.com!!
-dit comments?!?
13
u/EternityForest Aug 24 '19
Just when I thought I couldn't hate the idea of server side JS any more....
33
u/niceworkbuddy Aug 24 '19
Ridiculous... Ads for this?
{
"extends": ["standard", "standard-jsx"]
}7
u/nakamin Aug 25 '19
To be fair the actual config is in another repo. Still fairly trivial, and only works because of ESLint which the author has nothing to do with.
103
u/postmodest Aug 24 '19 edited Aug 24 '19
Ok, having looked at this project and it’s deps, this has to be Performance Art: this guy is making some kind of deeply biting social commentary on the toxic libertarian brogrammer culture of the node ecosystem. Appropriating someone else’s code and giving it an official sounding name and logo, then “modularizing” it for “reuse” across five repos where half the code is annotations and the code itself is 3% of the total lines of text in the repo, then putting ads in it and positioning the change as cutting edge FOSS funding?
I mean, taken as a whole, this can only be satire, right?
Right?
Like how some day Lennart Poettering will admit that systemd was a Social Experiment, Brah!
25
30
Aug 24 '19
Like how some day Lennart Poettering will admit that systemd was a Social Experiment, Brah!
I'm gonna get murdered for this but I actually like systemd
→ More replies (1)→ More replies (5)4
u/vVGacxACBh Aug 25 '19
No, he was genuinely doing it for the money. Linode paid $1,000 for the ad. https://news.ycombinator.com/item?id=20791454
91
Aug 24 '19
So it is essentially malware now?
49
→ More replies (37)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.
10
u/zuev_egor Aug 24 '19
From my point of view, it would be much better to form the community from maintainers and earn money on consulting. For instance, as PM I would pay some money for consulting about architecture of the certain project, or hire a certain guy as a trainer for the team (in case we’ve had mostly junior / middle devs)
→ More replies (6)
10
Aug 24 '19
It’s open source, just fork it and remove the advertisement code
→ More replies (1)11
u/guepier Aug 24 '19
This project has literally nothing of value except its squatted name, and a fork would lose that.
→ More replies (1)
19
u/-_-adam-_- Aug 24 '19
I won't even watch most YouTube videos cause of the adverts, I'm certainly not gonna be using any libraries that put ads in my terminal, fuck man!
33
u/L43 Aug 24 '19
Can't wait to fork every oss library and strip out the ads
→ More replies (2)2
u/SustainedDissonance Aug 24 '19
I too was thinking of forking this and stripping the ads but it's not worth my time to maintain.
4
u/HeR9TBmmc8Tx6CFXbaQb Aug 25 '19
It's not worth anyones time to fork this glorified JSON file, because that's all it really is. A glorified JSON file with a clever name and some misleading marketing.
9
u/gaoshan Aug 24 '19
Now companies will be jockeying for control of popular libraries so they can insert various ads, perhaps some tracking (gotta have metrics, right?), eventually full on spam (discrete ads, to start). Horrible trend for open source, hope it fails. I have used standard in the past and will definitely not be using it going forward.
24
u/khalilgr Aug 24 '19
My goal with this experiment is to make standard healthier. If we learn that the experiment works, perhaps we can help make all open source healthier, too.
Translation: "My goal is to set an incredibly dangerous precedent while stripping away at the spirit of open source, because fuck having passion for the craft and the community, nah, just give me thousands of dollars to maintain a subpar style guide".
The balls on this douche...
8
u/nullvoxpopuli Aug 24 '19
Standard is trash anyway. Such huge egos for a set of things that aren't idiomatic
6
Aug 24 '19
The fuck? The only things that should be in my install logs is install status, and the only thing in my build logs should be build status. Don't spam my shit, dude!
6
Aug 25 '19 edited Aug 25 '19
core-js, 80M downloads a month, has been doing this for a few weeks now
See issue which dev has closed as they have no intention of removing the ad.
Update: links to more issues of people complaining about the ad
→ More replies (3)
51
31
u/covale Aug 24 '19
This move highlights an important aspect of all development:
Developers need food to survive and food costs money. There's no way around it and few things are truly free.
That said, I really, truly don't think that ads are the way to go. Partly because they have diminishing value per ad served and thus scale very poorly, and partly because I simply hate to see ads in my workspace.
But have they explored other avenues?
I see there's a Patreon as well as a Github sponsorship program. Neither of them seem to relate much to the development of the library.
Asking for money means making concessions. Before asking the users to make those concessions ("Sorry, I need money. Go look at some ads."), I'd have liked to see some sort of attempt to solve this in another way.
Could they perhaps instead look at cooperating with larger orgs to gain developer time?
Put time evaluations and a cost/hour on features?
or find other ways of converting other peoples money into development time directly rather than via second hand values?
To me, it looks like this is a way to convert a large install-base into money, rather than a way to fund specific development. At least to me, that makes a difference for how well I accept it. Time will tell if it makes a difference for the majority.
58
u/KryptosFR Aug 24 '19
It's not even a good library. It only gets so many downloads because of it's name.
→ More replies (1)41
u/ChemicalRascal Aug 24 '19
Devs need food, sure. But this isn't anything more than a wrapper around eslint. Just sets up a config and further infects the JS community with the idea that two-spacing is a reasonable indenting style for anything other than bash and ruby.
That this is called
standardis disgusting, to be honest. It's not much more than a project designed to look good and permit technically true statements on the author's CV.→ More replies (1)7
u/Tormund_HARsBane Aug 24 '19
further infects the JS community with the idea that two-spacing is a reasonable indenting style for anything other than bash and ruby.
I'm curious, what do you JavaScript folks usually use? 4 spaces? Tabs?
Most C projects I've been involved in use 8 character wide tabs as standard, but I have a feeling the JS community will find it horrible.
→ More replies (4)→ More replies (6)22
u/Dougw6 Aug 24 '19
You raise some good points. But this guy (team?) is misleading novices and the uninformed. This "library" is nothing more than a thin layer around a lint config. It's 200 lines of config and 200 lines of pointless wrapper code. This is a project you do on a Saturday afternoon and never use again. Not some large venture that needs tons of resources and time to support.
Given the sketchy nature of the project itself, it's really not shocking that it would be exploited in this way too.
4
u/SustainedDissonance Aug 24 '19
I mean, that one CLI ad when you npm install certain packages worked really well for that one guy who is searching for a job and has been for about half a year now... right?
4
4
u/nsomnac Aug 24 '19
Given this is currently MIT / ISC Licensed... how long will it take for someone to create the fork called the new-standard that removes the ads?
If you’re releasing open source software and publishing it on GitHub for free, you gotta think before doing something like this.
4
u/orangecodeLol Aug 25 '19
On the bright side, this raises awareness that the AirBnB JS Style Guide is a thing, and it's actually something you might consider a "standard".
1
Aug 25 '19
How is it misleading newbies?
2
u/Magnaboy Aug 25 '19
https://github.com/standard/standard/issues/78
TLDR: its called "standard/standard" but the style it uses is literally the opposite of of the standard. Misleading part is that some newbies assume its the standard because of the name.
17
u/neopointer Aug 24 '19
I don't know why I'm not surprised. Nodejs community ¯_(ツ)_/¯
7
Aug 24 '19
you dropped your arm. ¯_(ツ)_/¯
two backslashes for the arm, then another backslash to escape the underscore.
→ More replies (1)
3
u/graingert Aug 24 '19
Checkout https://www.npmjs.com/package/eslint-config-airbnb-base for a style guide that's actually how you should write JS
3
3
Aug 25 '19
The first time I see an ad in my terminal will be the last time I use a library.
If you need money; really need it, then just say so and I’ll donate.
DO NOT trespass on the ONE PLACE where I am safe from the evil world of corporate bullshit.
This is bigger than Pandora’s box. Because once this is opened up to ads, there will be no hope left.
3
u/tjdavenport Aug 25 '19
If I start seeing ads frequently in my dependencies I will honestly become an iOS developer.
3
5
u/Billy737MAX Aug 24 '19
Give it a try by running npx standard --fix right now!
(from their website, emphasis mine buy now !)
5
u/_tiddlywinks_ Aug 24 '19
This whole thing is deeply worrying to me. I'm not opposed to people making money from their foss projects through donations, or consulting - in fact, I think it's wonderful - but this is glib. Building advertisement directly into the codebase? Gross. If there were a standard ethical charter for open-source I feel like this would be a violation of it.
If this action gains popularity, are we going to be seeing more and more developers creating - or taking ownership of projects - in an attempt to directly monetize them? Are we going to be dealing with people changing licenses once popular that disallows others from creating non-monetized versions?
Part of this feels like a symptom of the deluge of developers that have come into the industry because they see it as a goldmine, not because they really had any interest in the craft. Javascript and the universe that has been created around it seems to have become a breeding ground for unscrupulous behaviour and poor practices. (n.b. I am a self-taught developer that does half of my work in JS, so I'm not ragging on JS devs, or those without an academic background).
Anyway, I hope this is not the omen for open-source that I think it might be.
3
u/lutusp Aug 24 '19
Are we going to be dealing with people changing licenses once popular that disallows others from creating non-monetized versions?
In the GPL, you can't change from a less restrictive to a more restrictive license on an existing code base that's been published. BTW IANAL.
→ More replies (1)
9
u/mwhter Aug 24 '19
Yet another reason not to use NPM.
9
u/AngularBeginner Aug 24 '19
NuGet had something like this in the past as well. When you installed the quite known
Newtonsoft.Jsonpackage it opened a website with adverts on it.Luckily newer NuGet versions don't provide the functionality to do this anymore.
11
u/hagenbuch Aug 24 '19
That means that server requests are being done and at least privacy of the surfers is being violated because they did not consent to any data collection of those guys?
40
u/curiousdannii Aug 24 '19
I don't think there's any network access (other than to npm itself) or data collection - it serves ads hard coded into the funding package: https://github.com/feross/funding
→ More replies (1)35
u/Breadinator Aug 24 '19
It's all fun and games until someone automates population of the ads from sponsors. Did someone just inject an executable shell script? Whoopsie. Tracking curl? Uh oh. Nasty payload that executes malicious code by exploiting certain log readers' treatment of, say, unicode?
Give the world an automated ad solution, and at some point it will be exploited. https://www.intego.com/mac-security-blog/ads-huge-source-of-malicious-content-java-vulnerabilities-behind-80-percent-of-exploits/
3
2
3
3
3
u/camerontbelt Aug 25 '19
This misses the whole point of open source development. If you’re doing this full time then that’s your problem. Open source projects are meant to be side projects not full time jobs that require a paycheck.
2
2
2
u/Indie_Dev Aug 25 '19
I fucking hate how he uses the word "healthier" to sugar coat obvious shady behavior.
→ More replies (1)
12
u/Magnaboy Aug 24 '19
The thing that annoys me most, ignoring the fact it's putting ADS in your terminal, is
(1) the library already has a bad reputation because they are called "standard" style guide, but the style is literally not the standard, and the name is purely to trick people into using it because they think it's the standard. They refuse to address this issue, and go far as to call the real standard a semi-standard Read this issue: https://github.com/standard/standard/issues/78
(2) I mean no offense, and I am a supporter of OSS, but.. it's a style guide, do you really NEED thousands and thousands of dollars to maintain a style guide? If it were a very complex/useful project then it would be more understandable.
With that said, I think it's a bad precedent to be starting and I'm not sure if npm should forcefully remove the ad, perhaps the better thing for people to do is just uninstall it and switch to the real standard.