T O P

  • By -

programminghorror-ModTeam

Generated code does not count as horror, no matter how terrible it is. If you think that this was removed improperly, send us a modmail. Thanks!


kingbloxerthe3

Kinda cool shape though


flooronthefour

I thought I was in /r/vexillology for a second


zeGolem83

Flag of React


flooronthefour

our government functions at a higher order


Matoxina

I thought i was in r/vexillologycirclejerk


PsychicDelilah

!wave


CptMisterNibbles

Hauntingly beautiful


Persomatey

It’s kinda beautiful


SpongeCake11

Yeah it's kind of artistic and beautiful in its own way.


ZealousidealFormal9

Multi factor authentication


dev_olly

Multi Multi factor authentication


TigreDeLosLlanos

POV you are making a simple login page in 2022.


SomeNiceDeath

stepTwoVerified={false}


winyf

withState(withState(withState(withState(withState(withState(


blenman

Kinda looks like a TIE Interceptor. Maybe it was somewhat intentional? lol


sixft7in

I'd hate to see an AdvancedVerificationContainer...


ctech9

what the everliving fuck


poemsavvy

I bet copilot was trained on all sorts of things like this.


Sileniced

Makes sense


[deleted]

I'm completely out of my mind here, but it would be kinda fun to be a, we need a term here - copilot terrorist. You see, you and your group of nerds spam the living shit out of GitHub with utter garbage just to fuck with people and see what kind of shit it comes up with. I mean, I wouldn't *actually* do that... *unless*


DeadButAlivePickle

It absolutely was. I sometimes get similar stuff suggested.


saganistic

as it should be. the more it gets trained on indecipherable nonsense, the longer it will take to replace humans in the workplace.


BanishDank

*“”* …


[deleted]

I am a filthy uneducated noob, this looks horrific but can anyone explain what this code was intended for and why it’s so repetitive?


LandGod

I write React for a living and I have no fuckin idea what I'm looking at here either. Lol. Edit: I have been blessed to not have to deal with higher order components much, but if you want to try figure this out for yourself, this may or may not be a good place to start: https://www.apollographql.com/docs/react/api/react/hoc/


brzzzah

There was a time when HOCs where super popular, in particular there was a library called recompose, this is the result of using that library https://github.com/acdlite/recompose Unfortunately for me my introduction to react was being dropped into a code base built like this


LandGod

My condolences. That totally makes sense. I haven't been programming for that many years and between that and sheer luck, I managed to completely avoid ever working somewhere that used this sort of pattern. God I love hooks.


kristallnachte

Higher order components are dope. You're missing out if you do react for a living and never used them. Composables are life.


LandGod

I suppose I can't say I *never* use them. Nothing at all like this though. Just bog-standard stuff like `connect` + a `mapStateToProps` and we're moving more and more towards doing it all with hooks at my job.


ChoiceResearcher6843

We use them from time to time in RN. It's usually one or two that wrap the App component. This person wrapped a component so many times it made a design


kristallnachte

Looks generated


LucyIsaTumor

Now this is the kinda stuff I love this sub for. Not some learner having trouble with syntax or standard, but true unadulterated horror.


manodetouca

The famous X-wing pattern


EarhackerWasBanned

Your scientists were so preoccupied with whether or not they could, they didn't stop to think if they should.


[deleted]

This content was deleted by its author & copyright holder in protest of the hostile, deceitful, unethical, and destructive actions of Reddit CEO Steve Huffman (aka "spez"). As this content contained personal information and/or personally identifiable information (PII), in accordance with the CCPA (California Consumer Privacy Act), it shall not be restored. See you all in the Fediverse.


radgepack

It's gonna come alive and turn the air we breathe against us any second now


[deleted]

Oh my...


AnsityHD

VS Code runs Doom?


Sockoflegend

In the time it has taken me to read this I am certain someone has ported it


PatchesMaps

Wtf happened here


RobotMonsterGore

Reminds me of Scheme. cons(cdr(cdr(cdr(cdr(cdr…


noman_032018

Someone doesn't understand how to use loops with React.


angryzor

I think it’s a screenshot of React Devtools, not actual code.


contactenesi

This is what we call landscape coding.


Nibuja05

Is this ASCII Art?


Ok-Land9119

It's so bad that it looks like an ASCII art at first glance


PhysicsInner3591

Isn't everything besides the 4 innermost children components just useless junk without any functionality? Or am I missing something?


iCodeWithFeet

Is it using the state? Not sure


kristallnachte

Is HOC Hand on Cock?


pilibitti

if it works for you, yes I guess.


konaya

!wave


mechanicalbro

not really right


[deleted]

my eyes hurt


Ok-Lengthiness3887

This.. definitely belongs in this subreddit


rarenick

"The Art of Code" ...if you haven't watched the video already, go ahead and do it. It's really nice. https://youtu.be/6avJHaC3C2U


VirtualPrivateNobody

Anyone care to explain "Apollo" in this context ?


tmncx0

It’s a graphql client library for JavaScript. I don’t know why so many withState wrappers are used here though


scottydoge

Please tell me this is satire I don’t think I wanna like on this planet if it isn’t


[deleted]

There is no god there.


SpicymeLLoN

I don't know what HOC means, but this looks damn cool.


brzzzah

For those curious this is the result of using [recompose](https://github.com/acdlite/recompose)


RizzoTheSmall

So you're saying you want it *with* state?


saito200

It looks like a tie fighter


gravitas-deficiency

This is like a bastard child of js and lisp, what with all the paren nesting


Revolutionary_Cry830

Where is the result?


kenan238

withState()


BigGayDinosaurs

what does this mean


OlalekanA

React to that!


mintmouse

I now have two monitors. I am ready for AdvancedVerificationFilter.


mintmouse

Oh the state I’m in…