• 5 Posts
  • 76 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.






  • Or implying that their behavior reflects poorly on the entire blahaj community

    That user is a different person from the first one that responded.

    The blahaj user’s only contribution to the conversation was that snarky comment, and I brought it up because I’ve noticed a few users from that instance do that this past week, and not just to me. Like I said, I expect that behavior from hexbear, as blahaj users are usually nice to interact with.

    And on the blowing up at the original commenter, I’m tired of people using me for their own self-gratification. And if you’re not actually reading someone’s question before saying something, that’s generally what it is. Hopefully they learned to not make that mustake in the future



  • I do find it a little odd that you’re so concerned about uptime with a casual gaming server, but to each their own.

    Personally, part of it is that I don’t want everything to be solely dependent on a box I own. I don’t like the idea of lording a petty fiefdom over my friends. If there’s multiple distributed boxes that are technically equal, then there’s less potential for interpersonal friction.

    Also, while I have the more powerful server, I also have very little free time. If my box stops working for whatever reason, I don’t want my friends to have to wait 1-2 weeks for me to fix it


  • 100% uptime is really not feasible so forget that. Even the commercial servers have downtimes.

    What I was thinking of doing was having 2-3 separate boxes distributed between houses and could automatically switch which boxes handles resources when 1 goes down. No individual box would have 100% uptime, but you’d have minimal disruptions when any particular box has issues or needs maintenance.

    Unfortunately, it doesn’t seem like kubernetes works that way, and I don’t know of any software that would. Best bet now is probably to distribute backups between the boxes and manually spin up a secondary box when the primary goes down


  • But you could have a setup where one server hosts the game and syncs the game state with the other servers in the network, and if one server fails the network decides which failover server to connect to, all the clients connect to that server and continue playing on the new host.

    This is kinda what I was hoping that kubernetes did. It’d be awesome if there was some software that automatically did the hand-off, but I haven’t heard of one either


  • Going through some of the more detailed responses, yeah this is probably the best bet, and it’ll most likely be my server that’s the primary. I’ve got a Jellyfin server / NAS with an Intel 12700k, and I could either simply add a docker container or dedicate resources via Proxmox.

    Meanehile one of my friend is experimenting with an old $50 desktop with a 3rd gen i3. It’s… a decision, but he’s got more free time than I do


  • You wrote a post with a title that their comment helps with,

    Post titles just aren’t great at detailing the real issue when you need to provide context. It’s frustrating whem someone doesn’t actually read the body of the post, because then the comments can be filled up with people answering the wrong question. Then someone that can actually answer the question might skip the post because there’s already a bunch of comments under it.

    If you’re going to help, it’s better to actually read through the provided context. Otherwise it’s more likely to just end up being self-gratification.

    It’s kinda like the people who give up right-of-way at stop signs. Sure, it makes that person feel better about themselves, but the confusion just leads to everyone at the stop taking longer to get through the intersection.