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

Show parent comments

0

u/[deleted] Aug 24 '19

[deleted]

58

u/2lazy4forgotpassword Aug 24 '19

80 million of those downloads are them downloading each other in a recursive dependency spiral! Yay!

198

u/TrixieMisa Aug 24 '19

left-pad, only now with advertising.

105

u/largos Aug 24 '19

He put the 'ad' in left-pad.

10

u/ijustwantanfingname Aug 25 '19

What was it before? A Lisp predicate function for determining if anything is left?

0

u/ironhaven Aug 26 '19

If you did not know it was a npm package that made a string a minimum length by adding spaces. This was used because there was not a built in function To pad strings. Nothing more

→ More replies (2)

58

u/quentech Aug 24 '19

"maintain"

Such blatant bullshit. No one with half a brain is going to take that at face value and then it just makes it clear you're a truth-bender, at best.

29

u/Fatal510 Aug 25 '19

A hiring manager is gonna eat that shit up.

23

u/lordorwell7 Aug 25 '19

"This guy made Standard JS."

3

u/Reelix Aug 27 '19

Reminds me of the amazingly superior Vanilla JS :D

38

u/movzx Aug 24 '19

Oh is this the guy with the projects that wrap simple logic and reference one another to pump usage numbers?

56

u/iphone6sthrowaway Aug 24 '19

Actually this isn't that guy.

Yet from a cursory look at his packages, it looks like half are things so trivial that I would not even consider using a package for, a quarter are basically a single class with some logic though I would really hesitate to use a package for, and the other quarter contain more complex logic which I can understand having a package for.

13

u/brand_x Aug 25 '19

DRY taken to the extreme it has been in the JS is a fundamentally pathological philosophy. This sort of problem is an inevitable consequence.

Prove me wrong.

9

u/iphone6sthrowaway Aug 25 '19

My view is that they don't understand what DRY is about but rather take it as a dogma. DRY is ultimately about saving effort, in terms of engineering time and by reducing the possibility of errors. If the code you are deduplicating is simple enough, the cost of managing the third party dependency (licensing, upgrades, less flexibility, extra indirection) is going to make it futile.

2

u/brand_x Aug 25 '19

Yeah, pretty much this. And add in the security overhead of reviewing and monitoring all of these dependencies from third parties, and...

I've been around a long time, and open source wasn't a thing when I started... portable source wasn't really a thing either... so I can appreciate the problem this was designed to address. I think the Rust community approach (crates.io has a rich ecosystem of libraries, but almost none of them are trivial) is a healthy medium, especially if that trust/reputation based review system ever gets off the ground. The C++ communities, where most open source components are entire frameworks, is a bit too far in the other direction.

7

u/throwaway13412331 Aug 25 '19

It's cargo-cult programming. They hear about a pattern and have to apply it EVERYWHERE, going out of their way to make it happen.

4

u/brand_x Aug 25 '19

That's one of my favorite terms. "cargo-cult programming" is, after complete incompetence, one of the most significant traits my phone screens and interview problems are designed to weed out.

1

u/BowserKoopa Aug 25 '19

It's one of my favorites too. I actually haven't seen anyone else talk about it until now - I wonder where it was first mentioned.

1

u/brand_x Aug 25 '19

I'm not sure. I thought I had coined it myself, about fifteen years ago, but a few years ago I ran into someone using the term in a book, and claiming they had gotten it from a coworker in the 80s, so I might well have seen it in passing somewhere and done an imadethis.jpg on the idea.

16

u/cartechguy Aug 24 '19

Is this the CS equivalent to researchers boasting about how heavily cited their work is now.

45

u/iphone6sthrowaway Aug 24 '19

If my packages were downloaded 100 million times a month, I would pause for a minute and see what I could do to help my users have a cache so they could avoid downloading the same package over and over and over again, wasting gazillions of compute time, bandwidth, money and energy.

Then there's this guy boasting about it.

1

u/meneldal2 Aug 26 '19

If the packages are as simple as "is-odd", maintaining 100 of them is not a hard job.

-9

u/foxh8er Aug 24 '19

Stanford grad. What do you expect?

Their only mode of operation is fucking everyone else over.

0

u/[deleted] Aug 24 '19

[deleted]

→ More replies (12)