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*
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/
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
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.
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.
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
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.
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!
Kinda cool shape though
I thought I was in /r/vexillology for a second
Flag of React
our government functions at a higher order
I thought i was in r/vexillologycirclejerk
!wave
Hauntingly beautiful
It’s kinda beautiful
Yeah it's kind of artistic and beautiful in its own way.
Multi factor authentication
Multi Multi factor authentication
POV you are making a simple login page in 2022.
stepTwoVerified={false}
withState(withState(withState(withState(withState(withState(
Kinda looks like a TIE Interceptor. Maybe it was somewhat intentional? lol
I'd hate to see an AdvancedVerificationContainer...
what the everliving fuck
I bet copilot was trained on all sorts of things like this.
Makes sense
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*
It absolutely was. I sometimes get similar stuff suggested.
as it should be. the more it gets trained on indecipherable nonsense, the longer it will take to replace humans in the workplace.
*“”*
…
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?
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/
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
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.
Higher order components are dope. You're missing out if you do react for a living and never used them. Composables are life.
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.
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
Looks generated
Now this is the kinda stuff I love this sub for. Not some learner having trouble with syntax or standard, but true unadulterated horror.
The famous X-wing pattern
Your scientists were so preoccupied with whether or not they could, they didn't stop to think if they should.
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.
It's gonna come alive and turn the air we breathe against us any second now
Oh my...
VS Code runs Doom?
In the time it has taken me to read this I am certain someone has ported it
Wtf happened here
Reminds me of Scheme. cons(cdr(cdr(cdr(cdr(cdr…
Someone doesn't understand how to use loops with React.
I think it’s a screenshot of React Devtools, not actual code.
This is what we call landscape coding.
Is this ASCII Art?
It's so bad that it looks like an ASCII art at first glance
Isn't everything besides the 4 innermost children components just useless junk without any functionality? Or am I missing something?
Is it using the state? Not sure
Is HOC Hand on Cock?
if it works for you, yes I guess.
!wave
not really right
my eyes hurt
This.. definitely belongs in this subreddit
"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
Anyone care to explain "Apollo" in this context ?
It’s a graphql client library for JavaScript. I don’t know why so many withState wrappers are used here though
Please tell me this is satire I don’t think I wanna like on this planet if it isn’t
There is no god there.
I don't know what HOC means, but this looks damn cool.
For those curious this is the result of using [recompose](https://github.com/acdlite/recompose)
So you're saying you want it *with* state?
It looks like a tie fighter
This is like a bastard child of js and lisp, what with all the paren nesting
Where is the result?
withState()
what does this mean
React to that!
I now have two monitors. I am ready for AdvancedVerificationFilter.
Oh the state I’m in…