• BatmanAoD@programming.dev
      cake
      link
      fedilink
      arrow-up
      121
      arrow-down
      2
      ·
      edit-2
      28 days ago

      Hello, Rust developer. [My name, etc.] It works fine, and is written in C++. [Rest of challenge is the same.]

      Truly diabolical

    • pivot_root@lemmy.world
      link
      fedilink
      arrow-up
      44
      arrow-down
      1
      ·
      edit-2
      28 days ago

      Look, I’m not saying the wheel is wrong. It rotates, but what if two people try to turn the wheel at the same time, in opposite directions?

      What if—instead of risking misuse of the wheel—we have a my_wheel::Wheel, which only one person can rotate at any given time? The multiverse could enforce this safety at compile time by making it impossible for there to exist a universe where two people both think they own the right to rotate the wheel. In fact, it could even make it impossible for me to lend out the wheel to more than one person at a time.

      And, maybe… we could make the wheel even better. Cars rest on top of wheels, sure. But what if I wanted to make a car that rests on top of other cars? If we rotate the super-car’s wheels, we don’t want to make the sub-cars flap around—we want the sub-car wheels to rotate. It would be more future-proof to make a Wheel trait, then to make RubberTyre implement Wheel. Then, if we ever needed to make cars into wheels, we could have them also implement Wheel—but delegate the responsibility of rotating to their own wheels.

      In fact, we should make it into a whole library. Our other projects could need wheels. Mr. Mittens might need them eventually!

  • Auth@lemmy.world
    link
    fedilink
    English
    arrow-up
    93
    ·
    28 days ago

    Developer: Kill me if you must but i’ve turned the wheel into a modular service called systemd-wheel

      • Wolf@lemmy.today
        link
        fedilink
        arrow-up
        4
        ·
        26 days ago

        Consumer: It say’s here I can subscribe to ‘Wheel Pro’ for only $69.99/month and I will automatically receive all the latest features the second they come out!

        Noob: I just use WIMP, it’s free and does 99% of what Wheel Pro does. I don’t need all those extra features.

        Consumer: Psh, WIMP is ugly and you can’t even adjust the tire pressure by millipascals.

        Noob: They added that feature in March.

        Consumer: I NEED IT FOR WORK OK!

  • I have had plenty of suggestions to do very simple things in the games I mod to blow up the lines of code and do the exact same thing I already am doing, but in a more complicated, roundabout way that ends up working slower.

    “Why are you spawning blank soldiers and then equipping them, instead of spawning already equipped soldiers?”

    “Because I can only spawn soldiers already equipped with stuff from a pool of premade classes, and I want to customize their loadout. It also takes 5 minutes longer to load them in already equipped for some damn reason, whereas when I do it this way it only pauses the game for 10 seconds before it’s good to go.”

    “… ARMA’s engine sucks.”

    “Agreed.”

  • digger@lemmy.ca
    link
    fedilink
    arrow-up
    48
    ·
    28 days ago

    Here’s the real question… What licenses are the wheel and door using?

  • Gerowen@lemmy.world
    link
    fedilink
    English
    arrow-up
    39
    arrow-down
    1
    ·
    edit-2
    27 days ago

    Does the wheel fall under any cumbersome non free licenses or patents? If I want to modify this wheel to suit my needs, then share that work and information with others, am I free to do so?

  • rumba@lemmy.zip
    link
    fedilink
    English
    arrow-up
    34
    ·
    27 days ago

    We’d rather re-create reality where we know everything rather than taking the time to learn how to use a system someone else wrote.

    IT and DevOPS does this too.

    I worked with a group once that re-invented XML so that non-technical people could create text-based rules instead of writing code. But it ended up with a somewhat rigid naming structure with control characters and delimiters. The non technical people hated it more the actual XML they had used prior.

      • rumba@lemmy.zip
        link
        fedilink
        English
        arrow-up
        10
        ·
        27 days ago

        LOL. not far off

        They started out with something close to YAML. As the project moved forward, they found out they needed to represent logic with interlinked sections. They needed section 3, point a to link back to section 1 point 3, sub point 2. So they toyed with some assembly-like operations. Then they needed some inheritance. They really just slowly re-implemented the common applications of xml one at a time, it just had less brackets and <> symbols when they were done.

        • ulterno@programming.dev
          link
          fedilink
          English
          arrow-up
          3
          ·
          26 days ago

          it just had less brackets and <> symbols when they were done.

          Hence making the parser more inefficient than XML?

          • rumba@lemmy.zip
            link
            fedilink
            English
            arrow-up
            2
            ·
            26 days ago

            It wasn’t without some advantage. The client hating it didn’t bode well though

            • floofloof@lemmy.ca
              link
              fedilink
              arrow-up
              3
              ·
              26 days ago

              The client hating it just means you’re smarter than them and should press on to help them outgrow their ignorance. It’s a good sign.

            • ulterno@programming.dev
              link
              fedilink
              English
              arrow-up
              1
              ·
              26 days ago

              YAML definitely felt less intimidating to me than XML, when I first saw them.
              But the YAML examples also had much less information in them than the XML ones.
              But not having to type all those brackets definitely helps. In case of XML, I am always looking to just get a GUI going for it instead, because typing it out feels cumbersome (I’m from C++)

    • dejected_warp_core@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      26 days ago

      Re: the not-XML-instead-of-code thing. Eventually, this sort of thing turns into a programming language. It’s just like carcinisation. Or you wind up writing ever-more code to support the original design. The environment inevitably creates evolutionary pressure that only if/else and iteration logic can solve, forcing the design ever closer to being Turing-complete.

  • Rose@slrpnk.net
    link
    fedilink
    arrow-up
    31
    ·
    26 days ago

    I’d just like to interject for a moment. What you’re refering to as wheel, is in fact, GNU/Wheel, or as I’ve recently taken to calling it, GNU plus wheel.

  • chemical_cutthroat@lemmy.world
    link
    fedilink
    arrow-up
    26
    ·
    28 days ago

    There is a whole extra spoke in the wheel. Look, I’m not gonna reinvent it… I just… need to… adjust some values… and there! Look, its fine.

    Wait.

    Why is it wobbling like that?

    Hold on, I just need to get rid of this other spoke…

  • underscores@lemmy.zip
    link
    fedilink
    English
    arrow-up
    24
    ·
    28 days ago

    unjerk: pretty bold to compare software to a wheel. it’s more so like some roughly rollable shape which is why some people think they can make it more rollable, and yes those people fail from time to time

    • Davin@lemmy.world
      link
      fedilink
      arrow-up
      11
      ·
      27 days ago

      Yes, let’s not reinvent any wheels to save time and money. What? Why do you have to use three different screens from two different applications to get the information you need for one shipment invoice? Because we didn’t reinvent any wheels. You’re welcome.

      • underscores@lemmy.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        27 days ago

        The wheel doesn’t need to be reinvented, meanwhile a certain wheel is pushing for the complete removal of adblocks in its extensions.

        Probably not fair to equate that piece of software as a wheel, or better yet, let’s just reinvent it with the Adblock.

    • SwingingTheLamp@midwest.social
      link
      fedilink
      arrow-up
      2
      ·
      27 days ago

      The wheel of the metaphor-of-thing-as-wheel exists and is widely understood, but apparently needed to be reinvented as a metaphor involving a roughly rollable shape?

      Challenge failed.

  • burntbacon@discuss.tchncs.de
    link
    fedilink
    arrow-up
    24
    ·
    27 days ago

    One of the worst parts about this is that I would never have thought about reinventing it until he told me not to.

    Bloody reverse psychology still working on me. >:(

  • Zozano@aussie.zone
    link
    fedilink
    English
    arrow-up
    24
    ·
    edit-2
    27 days ago

    Spent months setting up my home server with Docker containers while learning Linux. Everything worked perfectly fine.

    Then I realised Ubuntu Server is just a Debian-flavored landfill. Switched to EndeavourOS. Everything worked perfectly fine.

    Then I made NixOS my daily driver and thought, “Hey, let’s ruin my weekend.” Migrated the server. Everything worked perfectly fine.

    Found out I could run containers as systemd services. Replaced Docker out of sheer spite using compose2nix. Everything worked perfectly fine.

    Then I heard btrfs was the bee’s knees. Reformatted my drives, migrated again, and spent a week learning why subvolumes are better than sex. Everything worked perfectly fine.

    Got a free MacBook. Slight hardware bump. Migrated again. Spent hours fighting T2 drivers while deepthroating Tim Apple’s cock. Everything worked perfectly fine.

    Rewrote every systemd service as NixOS modules. Why? Something something George Mallory. Everything still works perfectly fine.

    Did I ever notice a difference from the frontend? Nope.

    Was this a good use of my time? Fuck no.

    Did it need to happen? Does the pope compile from source in the woods?

    • Zoe@lemmynsfw.com
      link
      fedilink
      arrow-up
      5
      ·
      26 days ago

      I mean it sounds like you just enjoy spending your time doing that sort of thing. I’d say that was a good use of your time if you wanted to do it, no?

    • tux7350@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      26 days ago

      Im at the compose2nix phase of this pipeline. Ive got a bunch or sevices in Docker compose files and all of my systems have been running Nix for over a year now. Ive gotten the hang of my repo and made a couple modules for my specific uses and im hooked.

      What would you suggest to migrate all my compose files into a nix friendly environment? I use flakes as well.