• OwOarchist@pawb.social
    link
    fedilink
    English
    arrow-up
    11
    ·
    14 hours ago

    It’s possible that the dynamic generation might be more maintainable than a lookup list, though.

    With a lookup list, you may need to recalculate the whole thing every time you make a small change. And a significant change, like giving the user a new choice/parameter to adjust, may not only require recalculating the lookup table, but also exponentially increasing the size of the lookup table.

    Whereas with a dynamically generated result, small adjustments to the values likely wouldn’t require any modification of the actual code at all, and adding a new choice/parameter would be fairly straightforward – it just needs to be plugged into the formula, maybe add an extra step or two in the algorithm.

    • BCsven@lemmy.ca
      link
      fedilink
      arrow-up
      9
      ·
      14 hours ago

      It was finite, and early 90s. Calculation time is something you wanted to avoid. To put it to an analogy: you could calculate if a 3d X can be manipulated through a hole, or you can just prr evaluate and say Yes or no based on size, rather than running permutations on 6 axis of movement