• sp3ctr4l@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    1
    ·
    edit-2
    11 hours ago

    I have definitely gone into a rageful fugue state and woken up a week later after reworking an entire code base from being an inconsistent mess of slop…

    …into actually having a common library of functions instead of just rewriting slightly different versions of them 8 times, having those functions only actually instantiated for necesarry classes…

    …rewriting every variable name and function name to an actually consistent and intelligible naming scheme…

    … and finally, moving a whole bunch of shit out of some kind of global ‘think’ type loop that doesn’t actually need to be called or checked every goddamned micro second.

    Done that more than once actually.

    Never look inside ‘baby’s first video game mod’ code, unless you have healthy blood pressure.

    But uh yeah, spite, hatred, and anger are indeed powerful motivators for making good code, lol.

    … so many idiots just jam everything into a global, called every tick loop, and then claim that it just can’t be optimized, because “the game engine just can’t handle it”…