• 8 Posts
  • 664 Comments
Joined 2 years ago
cake
Cake day: June 17th, 2023

help-circle











  • 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.



  • Unless you know the hours on a drive, you might get brand new ones, or you might get ones with 50k hours on them. They may also be from the same batch, which isn’t ideal for data durability.

    If it helps, my strategy is to use RAID6 to handle up to 2 drive failures, and apart from the initial 4 drives needed to initially create the array, I just add another when I need more space. Then even if I get drives with sequential serial numbers, they’re going to have differing amount of life used.

    Also, always keep a couple spare drives for quick swapping. Especially with RAID6 given how long rebuilding the array can take


  • While the concept has it’s uses as a tool, the fallacy that OOP advocates fall into is overusing it.

    I’ve seen many people completely swear off of using scripts, which is absolutely ridiculous. While you may use some tools more than others, swearing off an entire code structure for no reason is ridiculous.

    Say there’s a module of code you need to write that has hundres if not thousands of variables that come into play in combinations that would be extremely difficult to organize as functions. You’re then stuck with passing all those as inputs and outputs between functions.

    Sure, you could organize all those variables as a giant array and pass them around as one big block, but at that point you’re just emulating the shared workspace that you get with scripts, and you’d just be better off working with scripts from the start.

    The issue with OOP is that it completely ignores this reality and insists that nobody should ever need a script, and if they think they do then they just aren’t clever enough.