What is some of the worst spaghetti code in vidya?

What is some of the worst spaghetti code in vidya?

Unattended Children Pitbull Club Shirt $21.68

Black Rifle Cuck Company, Conservative Humor Shirt $21.68

Unattended Children Pitbull Club Shirt $21.68

  1. 11 months ago
    Anonymous

    Dwarf Fortress

    • 11 months ago
      Anonymous

      Nothing else even comes close

  2. 11 months ago
    Anonymous

    Pokemon RBY
    Donkey Kong 64

  3. 11 months ago
    Anonymous

    The LISA trilogy’s code is horribly structured and tedious to navigate which sucks for a series which is heavily known for fan games

  4. 11 months ago
    Anonymous

    Whatever I wrote in CS classes before I dropped out of college

    • 11 months ago
      Anonymous

      I know nothing about CSS (assuming this is CSS) but wouldn't it be easier to divide the given number by 2 and filter out any result that gives a decimal point?

      • 11 months ago
        Anonymous

        CS, like Computer Science. Yes, that's how one does it. They use the modulo operation which divides and returns the remainder. So they would go something like

        isEven = userNumber % 2 == 0

        If the remainder is 0, then yes, it is an even number

    • 11 months ago
      Anonymous

      I know nothing about CSS (assuming this is CSS) but wouldn't it be easier to divide the given number by 2 and filter out any result that gives a decimal point?

      num%2 == 0 ? true : false

      • 11 months ago
        Anonymous

        CS, like Computer Science. Yes, that's how one does it. They use the modulo operation which divides and returns the remainder. So they would go something like

        isEven = userNumber % 2 == 0

        If the remainder is 0, then yes, it is an even number

        Your code wouldn't work because 0 is even but 0 % 2 = 2.

        • 11 months ago
          Anonymous

          >0 is even
          Except it isn't.

          • 11 months ago
            Anonymous

            Yes, it is.

        • 11 months ago
          Anonymous

          0 % 2 is 0
          0/2 = 0 with 0 remainder
          Where are you getting 2?

          • 11 months ago
            Anonymous

            >Where are you getting 2?
            From the 2 left over. Frick maths and it's arbitrary rules. The 2 doesn't vanish. It's still there.

            • 11 months ago
              Anonymous

              2*0 = 0
              moron

            • 11 months ago
              Anonymous

              You are a silly goose

            • 11 months ago
              Anonymous

              0 is a multiple of 2

            • 11 months ago
              Anonymous

              How would you feel if I took your 2 and gave you a 0 instead?

            • 11 months ago
              Anonymous

              >anon can't into law of conservation of matter

          • 11 months ago
            Anonymous

            >num%2 == 0 ? true : false
            I wanted to disprove you by booting up a Java Replit and screen capping it. But Java is so fricking anus that it actually immediatlly hit max CPU and RAM with literally just hello world.
            So you win anon.

        • 11 months ago
          Anonymous

          Just check for the first bit.
          >bool IsOdd(int num) { return num & 1; }

          • 11 months ago
            Anonymous

            I'm getting sick and tired of you pimple faced nerds trying to one up each other

          • 11 months ago
            Anonymous

            >bitwise operations
            Most programmers don't know anything about those things. It makes for "unreadable code".

            • 11 months ago
              Anonymous

              Not my fault you never dabbled in Z80 or 6502 asm when you were a kid.

              • 11 months ago
                Anonymous

                I bet you're one of those twats that bitshifts instead of just using arithmetic like a normal person.

              • 11 months ago
                Anonymous

                >hehe i'll use bits to make everyone know i'm quirky
                have a nice day

            • 11 months ago
              Anonymous

              CS required knowledge of bit operators and things like Two’s Compliment. Has it just been replaced with Java and Web Stack devs?

              • 11 months ago
                Anonymous

                yes.

      • 11 months ago
        Anonymous

        >? result1 : result2
        Is this supposed to be more readable than an if... else?

        • 11 months ago
          Anonymous

          >readability
          It's a meme. If you trust that your managers will hire competent engineers then ? : is perfectly fine. It's almost a natural gatekeep.

        • 11 months ago
          Anonymous

          It is. As long as you know what the operator means.

          Do you actually think
          if (num % 2) == 0
          {
          return true;
          {
          else
          {
          return false;
          }
          is better than
          return num % 2 == 0 ? true : false

          • 11 months ago
            Anonymous

            If I had to parse code quickly, I'd probably prefer the first version (more compacted), yes. I don't want to have to use brain power to wonder why there's a ? and : next to each other, but then I again I don't do this coding nerd stuff.

            • 11 months ago
              Anonymous

              You don't use brain power at all to understand what a ternary operation does when you know what it actually does.
              "(expression) ? if true do this : if false do this instead;", no trouble whatsoever.

        • 11 months ago
          Anonymous

          It depends. It fits on one line and involves no indentation, so it keeps the code a lot more compact. But like you said it's harder to understand unless you know the language. Ultimately it comes down to personal preference and style, as long as you're using some variation of x%2 it's pretty much the same efficiency anyway.

        • 11 months ago
          Anonymous

          Yes its a fricking ternary,
          if you cannot read a ternary I literally cannot fricking help you.

          • 11 months ago
            Anonymous

            I can read it just fine? I just wonder if it's worth the minimal code reduction. What are prog languages if not an abstraction, easy for the human to write and read?

            • 11 months ago
              Anonymous

              its just really common format for ternaries in most languages besides python, even excel has ternaries that look like that.

        • 11 months ago
          Anonymous

          >Is this supposed to be more readable than an if... else?
          You will be surprised but "if... else" is also syntactic sugar and a simplified form of real conditional expression (with multiple predicates).

      • 11 months ago
        Anonymous

        >num%2 == 0
        already evaluates to a boolean. why the extra short-circuit if?

        • 11 months ago
          Anonymous

          Yeah you are right. Java handles it so you could just do
          return num%2 == 0;

        • 11 months ago
          Anonymous

          >num=4.652
          Checkmate, summarizer.

          • 11 months ago
            Anonymous

            Type error: num is an int. Only integers can be even.

  5. 11 months ago
    Anonymous

    Nothing wrong with nested ifs
    >b-but switch case
    That just a mere prettier syntax. The compiler will convert it to ifs again anyway.

    • 11 months ago
      Anonymous

      >The compiler
      >JS
      moron

      • 11 months ago
        Anonymous

        >moron
        Yes. The one who codes game in JS is.

        • 11 months ago
          Anonymous

          RPGmaker uses JS

  6. 11 months ago
    Anonymous

    i used to love RPG maker as a kid but this image is triggering.

    anyway, world of warcraft. never forgot that players were asking for green warlock fire for 10 years and the devs kept saying there were "tech limitations." b***h just fricking hue shift the fricking PNGs of the spell effects. stupid ass game.

    • 11 months ago
      Anonymous

      >hue shift the fricking PNGs
      Assets are not code, though.

      • 11 months ago
        Anonymous

        Are you moronic?

  7. 11 months ago
    Anonymous

    >RPG Maker “code”

  8. 11 months ago
    Anonymous

    I bet termina sold at least 10k copy can't he hire someone to program in gamemaker or something, at least in the engine that actually let you do stuff?

    • 11 months ago
      Anonymous

      Why should he?

  9. 11 months ago
    Anonymous

    What's wrong with this, exactly? It's ugly but it works. What would you do differently?

    • 11 months ago
      Anonymous

      >If (any of the above shit that says OFF is ON)
      >>End Event Processing
      simple as.

    • 11 months ago
      Anonymous

      >it works.
      barley. the game is unoptimised and suffers from recurring frame drops

  10. 11 months ago
    Anonymous

    >f&h has yandere tier code
    why does Ganker shill this shitty shovelware again ?

    • 11 months ago
      Anonymous

      >why does Ganker shill this shitty shovelware again ?
      because this site has become reddit 2.0 after 2016

      • 11 months ago
        Anonymous

        Holy shit shut the frick up for one god damn time kid you aren't fooling anybody

  11. 11 months ago
    Anonymous

    FFXIV might just be the reigning champion.

  12. 11 months ago
    Anonymous

    Red Dead Redemption 1. other R* team had the tools the GTAIV team had and did all sorts of wacky shit to get it right. Ended up a big mess under the hood and is probably the main reason it's not remastered or ported to PC.

  13. 11 months ago
    Anonymous

    Stellaris used to be absolute spaghetti. The devs have been fixing it for years now and basically doubled the speed at which the game runs by streamlining the spaghetti but it's still probably a mess.

    • 11 months ago
      Anonymous

      The code isn't any better. They've just streamlined the systems. The problems with the game come with how it handles pops and how important they are to the function of the game.. When they designed the system they didn't realize just how much load they were putting on the engine late game. They've deliberately left the AI shitty at min-maxing for years now and the game still slows to a crawl late game.

  14. 11 months ago
    Anonymous

    people shit on ifs but they are actually fast as frick

  15. 11 months ago
    Anonymous

    Are FSMs not a thing with whatever that software is?

  16. 11 months ago
    Anonymous

    I mean, it's RPG Maker. the sole fact there's a UI organizing it and allowing you set everything up in an organized manner means it's not spaghetti code as much as simplifying it for inexperienced people.

    Because, you know, RPG Maker is a program that allows people without coding skills to develop a game.

  17. 11 months ago
    Anonymous

    >still nothing compared to some of the insane shit Japs do
    pic related is a SMALL EXCERPT of the Enemy AI code for an RPG Maker 2000 SRPG. This used to cause people's systems to chug like no tomorrow back in the single core sub-1GB ram days.

    • 11 months ago
      Anonymous

      what does this compile to? and what does that actually look like?

      • 11 months ago
        Anonymous

        It's apparently a custom version of Ruby that compiles into bytecode for their custom VM so who knows?

  18. 11 months ago
    Anonymous

    Uhh... you poorgays realize the average computer nowadays has 16 cores and 3 trillion GB of RAM and so on? Who cares about code optimization lmao

    • 11 months ago
      Anonymous

      Definitely not for an RPG Maker game of all things

  19. 11 months ago
    Anonymous

    Yandere Sim
    Star Citizen

  20. 11 months ago
    Anonymous

    I've played video games for close to 40 years now and the single worst of all time was Diablo 3 having an int32 overflow in a field designed to accept a real-money value, in an auction house

    What this means in practice is, say you're selling a crossbow for $30.00. Someone could bid like $30000000000 and win the auction, the amount would wrap around to $0.00 and they would get your item but you'd get paid $0.00.

    This is literally a high school computer science mistake. If that.

    • 11 months ago
      Anonymous

      Video games do not have automated QA for the most part.
      Video game devs do not write automated tests and probably struggle to write tests in general.
      I am not surprised that no QA tried to smoketest this.

      • 11 months ago
        Anonymous

        It doesn't need to be fricking automated lmao someone needs to stop and think at some part of the process

        • 11 months ago
          Anonymous

          Not having automated tests is fricking caveman tier,
          It allows moronic mistakes like this to be discovered more quickly.

          • 11 months ago
            Anonymous

            Not the point. It's a company that takes in like 8 billion dollars in profit a year. It should've never happened, that makes it all the more egregious

            they effectively stole money from people and then the support response in the end was "lmao"

    • 11 months ago
      Anonymous

      >say you're selling a crossbow for $30.00. Someone could bid like $30000000000 and win the auction, the amount would wrap around to $0.00 and they would get your item but you'd get paid $0.00.
      lolling

    • 11 months ago
      Anonymous

      >shitposting on Ganker at age 50
      You okay man?

      • 11 months ago
        Anonymous

        what else is there to do

      • 11 months ago
        Anonymous

        The older you get, the more acceptable it is to shit post. What else are you going to do.

    • 11 months ago
      Anonymous

      sometimes this happens irl too

      • 11 months ago
        Anonymous

        This is a digital and physical crime, hope whoever did this was arrested

      • 11 months ago
        Anonymous

        >electronic payment system
        Don't they only do this shit when you pay by card? Means they have the info of the guy who did this. Congratulations, you played yourself.

        • 11 months ago
          Anonymous

          i mean is it really fraud if it lets you do it

        • 11 months ago
          Anonymous

          They approved the charge. It's their fault.

      • 11 months ago
        Anonymous

        >$13 for a biscuit

    • 11 months ago
      Anonymous

      since that story i always started using unsigned ints/longs

Your email address will not be published. Required fields are marked *