• Lmaydev@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    6 months ago

    I always see people say it’s got spaghetti code but I’ve never seen much about it.

    Do you have a source?

    • RightHandOfIkaros@lemmy.world
      link
      fedilink
      arrow-up
      9
      arrow-down
      2
      ·
      edit-2
      6 months ago

      There was a devblog a while back a developer talked about how much technical debt the game has because its coded in LUA, like the second oldest programming language known to man, and modifying literally any of it will break other parts of it because everything was built on top of the old stuff. Basically, the code has never been refactored.

      Blogpost here.

      • Ramenator@lemmy.world
        link
        fedilink
        arrow-up
        10
        arrow-down
        1
        ·
        edit-2
        6 months ago

        That’s not really what that blog post is talking about. Lua isn’t actually particularly old as far as programming languages go and one of the most commonly used scripting languages in game development, due to it’s easy embeddability. And it’s a perfectly fine language in that regard.
        Their problem is that they built their own visual scripting language on top of Lua called BlockBuilder. And that comes with quite a bit of overhead, since the way they’re doing it needs a number of additional heavy operations. And Lua is a full blown programming language that comes with a lot of functionality that they don’t need for that use case, but still need to account for.
        So the complaint is, that they used Lua instead of using a simpler and constrained language