PHP again! I solved it within the first half hour but was too embarrassed by my code to post it here, so spent most of my evening figuring out how to make it look less bad, oops. And I overwrote my Part 1 code, so this is just Part 2:
These are fine instincts that will serve you well in future pull requests.
No shame in making sure all the corners are sharp and you replaced all the variables named x, fart, someKindaFunc, etc. (I must admit to editing my posted code after an elegant refactor reveals itself to me)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
PHP again! I solved it within the first half hour but was too embarrassed by my code to post it here, so spent most of my evening figuring out how to make it look less bad, oops. And I overwrote my Part 1 code, so this is just Part 2:
I did take some inspiration from other solutions to make this improved version :)
These are fine instincts that will serve you well in future pull requests.
No shame in making sure all the corners are sharp and you replaced all the variables named
x
,fart
,someKindaFunc
, etc. (I must admit to editing my posted code after an elegant refactor reveals itself to me)