• hope@lemmy.world
    link
    fedilink
    arrow-up
    101
    ·
    2 years ago

    I feel very confident in my understanding of random 8 bit CPUs and their support chips, but asking me to center a div is like this xkcd.

      • qjkxbmwvz@startrek.website
        link
        fedilink
        arrow-up
        7
        ·
        2 years ago

        It is “backwards” from some other commands — usually you run copy/rsync/link from source to destination, but with tar the destination (tarball) is specified before the source (directory/files).

        That, and the flags not needing dashes always just throws me for a loop.

        And the icing on the cake is that I don’t use tar for tarring that often, so I lose all muscle memory (untaring a tgz or tar.bz2 is frequent enough that I can usually get that right at least…).

        • Ethan@programming.dev
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 years ago

          I almost never create a tarball, so I have to look up the syntax for that. Which is as simple as man tar. But as far as extracting it almost couldn’t be easier, tar xf <tarball> and call it a day. Or if you want to list the contents without extracting, tar tf <tarball>. Unless you’re using an ancient version of tar, it will detect and handle whatever compression format you’re using without you having to remember if you need z or J or whatever.

          • The Ramen Dutchman@ttrpg.network
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 years ago

            It can be easier if you’re used to the dash before the arguments; it’s optional but you can put them:

            tar -cf   # Compress File
            tar -xf   # Xtract File
            
      • Eager Eagle@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 years ago

        I got tired of looking up the options for each possible combination of archiving + compression, so today I have a “magic” bash function that can extract almost any format.

        Then for compressing, I only use zip, which doesn’t need any args other than the archive name and the thing you’re compressing. It needs -r when recursing on dirs, but unlike “eXtract” and “Ze”, that’s a good mnemonic.

      • merc@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        One reason is that tar supports both traditional style args “tar tf <filename.tar>” and unix-style args “tar -tf <filename.tar>” but there are subtle differences in how they work.

        • Ethan@programming.dev
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 years ago

          Literally the only time I’ve ever run into that is when I was trying to manipulate the path it extracted to. In 99% of cases I’m doing tf, xf, or cf plus flags for the compression type, etc, and those differences are irrelevant.

          • merc@sh.itjust.works
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            I used something recently where it wasn’t possible to use the traditional-style args. I think it was a “diff”, which meant I needed a “-f”. It wasn’t a big deal, but, occasionally it does happen.

            • Ethan@programming.dev
              link
              fedilink
              English
              arrow-up
              2
              ·
              2 years ago

              I’m not saying it doesn’t happen. This thread started because I said I’ve never understood why people talk like tar is some indecipherable black magic. Common tasks are easy and there’s a man page for everything else.

  • milkisklim@lemm.ee
    link
    fedilink
    arrow-up
    46
    ·
    2 years ago

    Hey now. Searching stack overflow circia 2011 to 2018 was an Art. You had to know enough to find the correct question that wasn’t deleted because a mod thought it was a duplicate of another question

    • kautau@lemmy.world
      link
      fedilink
      arrow-up
      15
      ·
      2 years ago

      Also to find the actual correct answer three comments down because the one that was voted highest worked, but was actually a really shit way to do the thing being asked

    • wise_pancake@lemmy.cadeleted by creator
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      After a while you got know which stack overflow questions were a waste of time, and you used that knowledge for years.

    • Valmond@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      Before that you had to hang out on flipside or other gamedev sites and show your worthiness before begging for information.

      I was so proud when they shared the DS hack (basically a homebrew SDK made by trial and error by some people) so that I could make small games on it.

  • arudesalad@sh.itjust.works
    link
    fedilink
    arrow-up
    36
    ·
    2 years ago

    One of my favourite game dev stories from the 1980s is the story of Elite. It was a game people thought couldn’t be made. Most devs thought hardware wasn’t powerful enough and publishers thought it wouldn’t be fun enough.

    It was one of the first properly 3D open world video games ever made. I think when it released it sold nearly as many copies as there were home computers that could run it.

    In order to make the game small enough to fit on a cassette tape they had to ditch basic and program the entire game, world in assembly.

    There’s a fantastic video about it here: https://youtu.be/lC4YLMLar5I

    • Redkey@programming.dev
      link
      fedilink
      arrow-up
      9
      ·
      2 years ago

      In order to make the game small enough to fit on a cassette tape they had to ditch basic and program the entire game, world in assembly.

      Putting aside the fact that the majority of commercial games of the time were written in assembly (or other low-level languages) just as a matter of course, I strongly suspect that programming the game in assembly was an execution speed issue, and not a cassette space issue. Regular audio cassettes easily held enough data to fill an average 8-bit home computer’s memory many times over, whether that data was machine code or BASIC instruction codes.

    • Lemminary@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      2 years ago

      the game small enough to fit on a cassette tape

      Holy hell, that is OLD old. We’re talking about the beginnings of digital time here. Had the first web constellations formed yet? How fast did you crank your CPU?

      • Regrettable_incident@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        Yeah, I played it a lot, and a similar one called aviator which was a kinda flight sim. There wasn’t really much of an internet back then but stuff was easy to copy on tapes.

    • Rin@lemm.eedeleted by creator
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago
      .parent {
          display: grid;
          place-items: center;
      }
      

      couldn’t be easier in 2025.

      • PoPoP@lemm.ee
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        2 years ago

        probably a lot less performant than doing it the old fashioned way. sometimes that matters. you should have the non-grid non-flex method half committed to memory. abusing flex or grid to save 2 lines of code is not a great practice, and having only one child element is usually a pretty clear sign that flex/grid is the wrong tool for the job

        at the end of the day though do whatever you want, in fact why not just write a javascript function to recenter it every frame at 60fps cause 99.9% of the software 99.9% of people interact with is pure shit made by developers who don’t care for users who don’t care.

        we live in a slop world, made by and for slop people who love slop. can you tell i’ve been awake for 30 hours? anyways…

  • jubilationtcornpone@sh.itjust.works
    link
    fedilink
    arrow-up
    29
    ·
    2 years ago

    QA: “Yeah, Hi. Can you look at this defect ticket?”

    Reading ticket details…

    Me: “Let me guess. Is [whatshisname] responsible for this?”

    QA: “Yeah.”

    Me: “Get him to fix it.”

    QA: “I tried. Like four times.”

    Me: Sigh “I’ll take care of it.”

    QA: “Thank you!”

      • Prime_Minister_Keyes@lemm.ee
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 years ago

        Thanks. I didn’t know there was a real band called “The Pipi Pickers” and I might have lived on happily without that knowledge.

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      A lot of it was fair criticism at the time. Linux fixed some of what was wrong. Having a good sudo config mostly resolves the problem of having one superuser account, and big, multiuser systems are a lot less common now, anyway. X’s network transparency features aren’t that useful in modern computing contexts, either, though I have found a few over the years.

      But mostly, it’s because the landscape changed from a hundred Unix vendors vs a bunch of other OSen, to now where it’s Windows vs Linux vs OSX. By that comparison, the two with Unix-derived history look well thought out.

      (This also implies that NextStep was the one old Unix vendor that has survived in a meaningful way. I don’t think anyone would have guessed that 30 years ago.)

  • Lemminary@lemmy.world
    link
    fedilink
    arrow-up
    21
    ·
    2 years ago

    Hey buddy, if I fix one bug and cause three more, it’s called job security. Where’s my medal?

  • boonhet@lemm.ee
    link
    fedilink
    arrow-up
    16
    ·
    2 years ago

    The fact that the div center search needs a year on it got me lol

    Loving my nearly frontend free development life. I use Stackoverflow or Google maybe 2-3 times a month these days, not sure if I qualify for the upper row :(

    • ZILtoid1991@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      2 years ago

      I can exit Vim, it just feels like trying to rip out the dashboard and the interiors from a family car because race cars also lack them. Kate is a good speedy alternative to VSCode, not to mention it also does not have Microsoft’s greedy hands on it.

        • toddestan@lemm.ee
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          Out of the box, Vim’s default configuration is very basic as it’s trying to emulate vi as close as possible. It like if you want things like headlights or a heater or a tachometer in your family car, you got to create a vimrc and turn those features on. That was my experience when I first started using Vim - I spent a lot of time messing around creating a vimrc until I got things the way I wanted.

          One of the big changes with Neovim is their default settings are a lot more like what you would expect in a modern text editor.

    • state_electrician@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 years ago

      I first tried vi in the early 90s, before I had easy access to online resources. I had to open a new shell and kill the vi process to exit it. Next time I dialed into my usual BBS I asked how to exit that thing. But since then I’ve liked it, because vi has been on every system I ever ssh’ed into.

      • barsoap@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        You quit it just like you quit ed or ex, just that you have to enter the prompt (:) yourself as vi is not by default in prompt mode. And you should know ed, ed is the standard editor.

        I use Helix btw.

    • Lemminary@lemmy.world
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      2 years ago

      I swore up & down that I’d learn at least two ways of exiting VIM. I even went through basic training to learn all the shortcuts, but it interfered with my regular workflow, so I dropped it “for a bit”. It’s been a year and I can’t remember a damn thing.