• BatmanAoD@programming.dev
      link
      fedilink
      arrow-up
      91
      arrow-down
      1
      ·
      11 months 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
      29
      arrow-down
      1
      ·
      11 months 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!

    • Chloé 🥕@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      15
      arrow-down
      1
      ·
      11 months ago

      Disclaimer: I have never actually written Rust.

      neither have most of the people advocating for (or against) rewriting stuff in Rust lol

  • Auth@lemmy.world
    link
    fedilink
    English
    arrow-up
    84
    ·
    11 months ago

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

    • ZILtoid1991@lemmy.world
      link
      fedilink
      arrow-up
      17
      ·
      11 months ago

      GNOME developer: “Stop forcing us to use wheels! Why can’t you just import GTK in your project?”

  • digger@lemmy.ca
    link
    fedilink
    arrow-up
    37
    ·
    11 months ago

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

    • Susaga@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      27
      arrow-down
      1
      ·
      11 months ago

      I read that as ffmpreg, and I thought it was some new ao3 trope where two girls impregnate a guy or something.

        • dohpaz42@lemmy.world
          link
          fedilink
          English
          arrow-up
          16
          ·
          11 months ago

          That is horrible! How ridiculous and just horrible! What’s the url so I know what to stay away from?

          • Imadethis@lemmynsfw.com
            link
            fedilink
            arrow-up
            5
            ·
            11 months ago

            I don’t know what the url is, but I remember as a wee child exploring the internet before pictures were quick to load, and the text was all we had, finding a story about a wife discovering her husband sexting with another woman. They proceeded to surprise him, and yes, a strap-on was pulled from a bag. The only phrase from the story that I can recall was him describing it as a telephone pole being shoved up his ass.

            …I’ve never been able to find it again. If you find such a thing, don’t ever let it escape you.

        • shalafi@lemmy.world
          link
          fedilink
          English
          arrow-up
          5
          ·
          11 months ago

          I volunteer as tribute! (Anything, anything, is worth having two girls blow you. My god, it’s full of stars.)

  • Gerowen@lemmy.world
    link
    fedilink
    English
    arrow-up
    31
    arrow-down
    1
    ·
    11 months 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?

  • chemical_cutthroat@lemmy.world
    link
    fedilink
    arrow-up
    25
    ·
    11 months 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…

  • burntbacon@discuss.tchncs.de
    link
    fedilink
    arrow-up
    24
    ·
    11 months 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. >:(

  • Underwaterbob@sh.itjust.works
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    11 months ago

    The wheel has had a number of innovations over the years. The earliest wheels were flat disks of wood that were heavy and slow turning. The Romans invented spokes and metal rims which made them faster, more durable, and gave them more traction. Questions we need answered: What is this wheel in particular designed to do? Is there any way we could make it work more efficiently at its task? Do we value performance over reliability, or vice versa? Etc. Etc.