r/badcode • • May 15 '21

js Found in a JS library

Post image
1.3k Upvotes

27 comments sorted by

193

u/ds39 May 15 '21

Not necessarily bad, just the joys of "legacy" code — https://www.reddit.com/r/javascript/comments/3m6wyu/_/cvcyo4a

52

u/Syscrush May 15 '21

But they don't want to remove the DOM methods from the core React library during this release. Instead, they want to deprecate them — so, if a developer upgrades React without knowing about this change, their applications won't crash; instead, they'll just emit tons of warnings to the console, which the developer will see and hopefully fix before the next version of React.

Have the members of the React team ever actually met a developer or dev team manager? :D

-75

u/samurai_ka May 15 '21

It shouldn't be in your release branch. So let's call it bad workflow.

62

u/GoogleFeudIsTaken May 15 '21

Did you read the linked comment?

5

u/dfirecmv May 16 '21

Looks like OP didn’t.

28

u/Earhacker May 15 '21

Why are you using that old version of React? What’s wrong with your workflow?

6

u/[deleted] May 16 '21

Is this SharePoint?

408

u/Willinton06 May 15 '21

uses it

233

u/HALF_PAST_HOLE May 15 '21

gets fired

157

u/Willinton06 May 15 '21

Worth it

26

u/AlGoreBestGore May 15 '21

Do I get severance?

14

u/DragonFireCK May 15 '21

They mean you get literally fired, so no.

14

u/bphase May 15 '21

Maybe he's a freelancer or just contributing as a hobby. Can't get fired if you don't have a job

38

u/[deleted] May 15 '21

We do a little trolling

30

u/TimeToBecomeEgg May 15 '21

We do a substantial amount of trolling

21

u/BakuhatsuK May 16 '21

Isn't this just the hidden export that's used by the react devtools? Also, this is minified webpack output isn't it? In the JS world this is basically compiled output, it's not supposed to be good code

91

u/[deleted] May 15 '21

Exports and finds 13 Terabyte of midget porn.

16

u/[deleted] May 15 '21

All of it saved as base64 pngs of video frames

1

u/inxaneninja May 17 '21

Please I just wanna see my family again

3

u/Dr_Insano_MD May 16 '21

Those are rookie numbers

0

u/[deleted] May 15 '21

[deleted]

44

u/[deleted] May 15 '21

So it's a joke.

1

u/Broken_hopes evil May 16 '21

You must be fun at parties.

13

u/The_Squeak2539 May 15 '21

i just checked. the github is for facebook react

5

u/Somedude914 May 16 '21 edited May 16 '21

This is not new? And the js library is react. This explains it.

1

u/narval- May 26 '21

Someone got balls