the function never gets called, but the running code reads the source code of this function to extract important constants, and if you delete the function, everything breaks :)
we don’t use this without first writing proper unit tests for our changes, integrating them with the regression tests, and thoroughly documenting our changes for the next developer that has to work on this
And what’s beautiful is that the one right under has a comment “we don’t use thi…”
This code looks like so much fun to debug…
i like to imagine it says
I’m an optimist, and it’s technically possible
Ok cool now write some unit tests for a 13,000 line function
🙃
randomize input parameters and see if it doesnt crash. Do this 1000 times. If it never crashes, it works. 👍
/s
Load bearing code
There’s one I found today that just reads “this is a fucking abortion”
I don’t remember doing it, but it was almost certainly me.
I would legit love to refactor that bad boy and get >95% code coverage. Put me in, coach!