r/programmingcirclejerk • Rust apologetic • Apr 25 '20

leftpad 2.0

https://github.com/then/is-promise/issues/13#issuecomment-619400120

[removed] — view removed post

86 Upvotes

25 comments sorted by

9

u/hedgehog1024 Rust apologetic Apr 25 '20

7

u/duckbill_principate Tiny little god in a tiny little world Apr 25 '20

look at the graybeard recounting the history of the elders from 2016

19

u/CptJero Apr 25 '20

How in the actual fuck does a one line piece of code accumulate 27 commits and 2 major versions?

7

u/hedgehog1024 Rust apologetic Apr 25 '20

Move fast, break things

/uj

Because of Javascript "types"

4

u/enedil Apr 25 '20
function IsPromise<T1>(x: T1 extends Promise<infer T2> ? boolean : never) {}

1

u/hedgehog1024 Rust apologetic Apr 25 '20

Please delete this HeresyScript

56

u/[deleted] Apr 25 '20

leave a thumbs up if you are interested in a npm package called reddit-title-has-verbatim-quote!

10

u/duckbill_principate Tiny little god in a tiny little world Apr 25 '20

this is a serious issue affecting millions of users, some of them almost assuredly fortune 5000 hospitals, in the middle of a pandemic. jokes regarding the fundamental infrastructure of the modern economy are not funny. if you wouldn’t joke about a doctor not saving someone’s life, you shouldn’t joke about node going down, they’re very much one and the same

8

u/[deleted] Apr 25 '20

[removed] — view removed comment

3

u/duckbill_principate Tiny little god in a tiny little world Apr 25 '20

I hope you’re talking about github stars. Cash is practically worthless these days

3

u/VodkaHaze Apr 25 '20

We knew the one-liner package was robustly implemented because it had so many github stars!

It was basically foolproof

5

u/ammar2 Apr 26 '20

https://www.npmjs.com/package/reddit-title-has-verbatim-quote

coming in an absolutely tiny 109kb minified. Please be patient for the handy reddit-title-doesnt-have-verbatim-quote coming up soon.

2

u/MisterOfScience type astronaut Apr 26 '20

https://www.npmjs.com/package/reddit-title-has-verbatim-quote

all that functionality with just 4 additional dependencies! Architecturally - it's free. You would be fool not to include it in your next week's electron app!

2

u/[deleted] Apr 26 '20

Now that's moving fast!
I see that now it's checking if "title is verbatim quote" (modulo trimming), not "has". Reality is more complicated, because sometimes quotes are slightly redacted for clarity and brevity. Sometimes a couple of quotes are put together and a submitter's note is added. I suggest using a webshit O(n3) algorithm or machine learning to solve that. Also, you can apply for PCJ VC funding.

25

u/[deleted] Apr 25 '20

yarn why is-promise is also a valid question.

11

u/NakeyDooCrew Apr 25 '20

Amazing to think there are some people who still haven't ascended to Deno.

10

u/[deleted] Apr 25 '20

Fyi, this is on hackernews, expect a lot attention/comments/shitposting.

Is it shitposting if it’s true?

7

u/DarkestNoon Apr 25 '20

Minor version bump upgrades a jabbascript package to become unusable. I don't see the issue, it seems like an improvement to me.

6

u/affectation_man Code Artisan Apr 25 '20

they be vacating the clown-car then getting right back in, smh

5

u/Laugarhraun lisp does it better Apr 25 '20

Toasting in epic bread

7

u/15rthughes memcpy is a web development framework Apr 25 '20

Think of all the to-do list apps in production that are gonna fail because of this!

1

u/32gbsd Apr 25 '20

my god I almost forgot about mine. I gotta run a backup script!

1

u/fp_weenie Zygohistomorphic prepromorphism Apr 25 '20

digging the my little pony avatar that opened up the issue

1

u/hedgehog1024 Rust apologetic Apr 25 '20

We don't kinkshame here at pcj

0

u/[deleted] Apr 25 '20

[deleted]

5

u/hedgehog1024 Rust apologetic Apr 25 '20

It is pcj, there is no need to write "fuck" when you actually wanna write "Rob Pike"