• bisby@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    5 hours ago

    https://en.wikipedia.org/wiki/Fast_inverse_square_root

    even if you can figure out specifically WHAT a function does, it’s not always clear WHY a function does, and honestly, if this function wasnt labeled in the code, no way in hell would I know what it does.

    It has an entire wiki page dedicated to explaining it, and it involves enough math that most people wouldn’t be able to follow along.

    Nothing this atrocious lives in any current codebases I work on… but if you work at an old enough company, some of the load-bearing code will be tricky to figure out what is calling it, but also it was written in a time where little hacks were needed to eke out performance.

    You only have to experience it once for it to be a memorable enough thing that you will cite it for the rest of your days.

    Or more realistically, it IS comprehensible, but the level of effort necessary to comprehend it is not worth it. So you leave it as “undecipherable” and move on.