11
ars1
3y

5 years ago in Texas. There is shit code and then there's SHIT code. I know I can produce bad code and often do, but that codebase was an eldritch abomination.

Just to give you a tiny taste, variables in JS would usually be called "that" because "when calling them, I send the 'this' value right? So in the other function it is 'that'". I wish I was making this up. And this is nothing compared to everything else.

Comments
  • 3
    Jesus fucking christ. Even I feel mad rn.

    Can someone drop some "the Shit" code so we can relax by knowing there are also good code?
  • 4
    lmao I have been there, reminded me of this code base in which the javascript variables, functions and objects were for whatever reason pre-fixed with hotDog

    hotDogCustomerNumber

    hotDogXMLRequest

    hotDogUserName

    I never understood why and never had the chance to ask the developer WHY
  • 0
    @AleCx04 maybe ask @git-push-dev
  • 3
    @melezorus34 I mean
    Depending on what you enjoy, quake's Fast InvSqRt() is pretty sick

    float Q_rsqrt( float number )
    {
    long i;
    float x2, y;
    const float threehalfs = 1.5F;

    x2 = number * 0.5F;
    y = number;
    i = * ( long * ) &y; // evil floating point bit level hacking
    i = 0x5f3759df - ( i >> 1 ); // what the fuck?
    y = * ( float * ) &i;
    y = y * ( threehalfs - ( x2 * y * y ) ); // 1st iteration
    // y = y * ( threehalfs - ( x2 * y * y ) ); // 2nd iteration, this can be removed

    return y;
    }
  • 0
    @TheMatter13 I do enjoy it after learning about how the second part works, so let's patch the youtube link here. https://youtu.be/p8u_k2LIZyo?t=886
  • 1
    @AleCx04 what the fuck man
  • 3
    @ars1 what's hotDogWrong, dude?
  • 3
    @ars1 Are you hotDogOK? You look like you are going to throw a hotDogTantrum.
  • 3
    @ars1 i have seen some weird shit, to add more to it, this was a gig writing VBScript and Delphi code. Shit was so bizarre but it paid WELL.

    10/10 would do it again. I am in this mostly for the money. I have no neckbeardness concerning the tools I use, it could be the most hated platform in the world, I don't give a fuck, I will work with it.

    mmmmmmmmmmm money
  • 1
    @AleCx04 hey look, we don't go to work so we can spend the other half of our waking hours cold and hungry. Get that money, spend it on good times and happy living
  • 1
  • 0
    I can totally relate
Add Comment