• Valmond@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    19 hours ago

    Well you’re not wrong, but man, you’re hating the screwdriver because you work in a bolt factory.

    Use the took that best suits your problem, right?

    Also: what’s that code that has thousands of variables that cannot be organised? If it isn’t just an example for the sake of an example, I’m genuinely curious! And how does scripts “fix” that?

    Also: I have always hated java for their overuse of OOP, but also restricting its use, wtf.

    Also: I love a straightforward script, on linux at least!

    • mnemonicmonkeys@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 minutes ago

      Well you’re not wrong, but man, you’re hating the screwdriver because you work in a bolt factory.

      Like I said, the problem with OOP advocates is that most of them are calling for bolts to be destroyed in this analogy. If they weren’t so fanatical about it we wouldn’t be havining this conversation.

      what’s that code that has thousands of variables that cannot be organised?

      It’s not a random example. I can’t go into detail, but it’s the code I work on on a daily basis. It’s a physics model for industrial equipment. Highly customizable for customers, and I need to know exactly where various sub assemblies are located and be able to move them in various configurations.

      And scripts doesn’t “fix” the problem. It’s more that using functions is infeasible due to the difficulty in cramming everything into input arrays, so scripts end up being orders of magnitude more efficient to work with. The scripts are all called from a function, which does allow us to interface with other groups or our own custom GUI.