• RogueBanana@lemmy.zip
    link
    fedilink
    English
    arrow-up
    4
    ·
    36 minutes ago

    I can’t remember some syntax unless I do it at least 100 times. I often look up stuff that I have already done before and know because of my goldfish memory.

    • Blackmist@feddit.uk
      link
      fedilink
      English
      arrow-up
      4
      ·
      3 hours ago

      Depends if you’re centering the div or the things in the div. Which has probably been the main issue since CSS was invented.

    • Rose@slrpnk.net
      link
      fedilink
      arrow-up
      10
      ·
      5 hours ago

      If using plain CSS, usually it’s enough to set width appropriately, and margin-left and margin-right to auto.

      If using a Modern Frontend/CSS Framework, then may God have mercy on your poor soul.

      (Seriously I just started a new project with TailwindCSS and I’m so confused. But not entirely desperate yet.)

        • Ricaz@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          6
          ·
          4 hours ago

          If you spend a lot of time on a single framework, you will transcend and become a sort of frontend diety, growing multiple extra limbs allowing you to type in CSS classes faster than any mere mortal

      • Ricaz@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 hours ago

        I’m doing a small hobby project (a ladder/ranking system for playing beer sports with my community), and I tried out Tailwind.

        I gave up and loaded Bootstrap instead, but I will probably end up just writing all the CSS myself.

        Seems so silly to have 15 CSS classes on a single DOM element…

    • impedans@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      edit-2
      6 hours ago

      If you define what you mean by centering I’ll give you a straight answer.

      Vertically? Horizontally? Center the text or the entire box? Compared to the viewport, the parent container or the entire page?

      “Centering” isn’t as straight forward as you’d think, and what you actually want usually depends on the situation.

  • excral@feddit.org
    link
    fedilink
    arrow-up
    47
    arrow-down
    1
    ·
    9 hours ago

    My experience is that the programmers from the first row very much still exist. My theory is that the number of programmers from the first row stayed the about same or even increased slightly. There are so many more so called “programmers” overall now, however, that in relation the first row programmers are much rarer now. And to be fair, you don’t need a programmer capable of programming entire games in assembly to center a div.

    • zerofk@lemm.ee
      link
      fedilink
      arrow-up
      17
      ·
      8 hours ago

      And vice versa, you don’t need to know how to centre a div to create a game in assembler. I’m comfortable using pointers and managing memory, but don’t ask me to do anything with web UI.

      • ByteJunk@lemmy.world
        link
        fedilink
        arrow-up
        12
        ·
        8 hours ago

        I’m guessing that someone who figured out how to keep a high score box centered on screen using assembly will figure it out to do it with CSS.

        The reverse, not so much…

        • groet@feddit.org
          link
          fedilink
          arrow-up
          4
          ·
          8 hours ago

          But you dont what the code of the assembly-style centered div in your codebase. Because nobody will be able to read it and understand what it even does. There are abstraction specific ways to solve problems and the right way to do something in assembly is not the right way to do it in CSS.

          • Estradiol Enjoyer @lemmy.blahaj.zone
            link
            fedilink
            arrow-up
            5
            ·
            edit-2
            6 hours ago

            Agreed, in my limited experience with both CSS is like the conceptual opposite of assembly. When I do web design I tell it what I want to look like but can’t see how it’s getting there because that’s done for me. Assembly is the lowest level of abstraction we’ve got and it took me ages to write a little program for class that returns an argument in it (Jasmin VM) and then get GCC to compile it.

            I would say that CSS is like doing an incantation that magically makes the site look good if you do it right, and assembly is like building something by hand.

    • state_electrician@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 hours 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
        1
        ·
        1 hour 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.

    • ZILtoid1991@lemmy.world
      link
      fedilink
      arrow-up
      7
      arrow-down
      1
      ·
      8 hours 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.

  • jubilationtcornpone@sh.itjust.works
    link
    fedilink
    arrow-up
    32
    ·
    11 hours 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!”

    • F04118F@feddit.nl
      link
      fedilink
      arrow-up
      91
      arrow-down
      9
      ·
      18 hours ago

      The majority of “programmers in the past” should be women actually, but our meme formats are still too patriarchal to express that in 2025.

      • moomoomoo309@programming.dev
        link
        fedilink
        English
        arrow-up
        3
        ·
        3 hours ago

        “Creates a whole game in assembly” is probably referring to roller coaster tycoon, which was written by a man. (lots of other games were written in asm, like many NES games, but I’d wager RCT was what they were alluding to)

      • raman_klogius@ani.social
        link
        fedilink
        English
        arrow-up
        13
        ·
        edit-2
        14 hours ago

        So were “computers”. It used to be a job, delegated mostly to women. The JD is doing calculations day in and day out.

      • rtxn@lemmy.world
        link
        fedilink
        arrow-up
        36
        ·
        18 hours ago

        We need to bring back 2010-2012 rage comic memes. All we needed was a badly cut-out blonde wig to trans Derp’s gender.

      • snooggums@lemmy.world
        link
        fedilink
        English
        arrow-up
        9
        ·
        edit-2
        17 hours ago

        The moon landing by hand wouldn’t have been as funny without the over the top body builders first.

      • reactionality@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        8
        arrow-down
        34
        ·
        18 hours ago

        “too patriarchal” no one was thinking of “furthering the goals of the patriarchy” or whatever your delusions tell you.

        It’s just people making memes, and most people who make memes who are guys will make memes with guys in them, because they identify with them the most.

        Your brain dead take is pure cancer.

        • F04118F@feddit.nl
          link
          fedilink
          arrow-up
          15
          arrow-down
          1
          ·
          edit-2
          17 hours ago

          I agree with you: I never intended to imply explicit anti-diversity intentions or even awareness of the biases embedded in our culture.

          Implicit bias refers to the attitudes or stereotypes that affect our understanding, actions, and decisions in an unconscious manner. Implicit biases are activated involuntarily, unconsciously, and without one’s awareness or intentional control (see, e.g., Greenwald & Krieger, 2006; Kang, et al., 2012; Nier, 2005; Rudman, 2004a)

          Source

          • barsoap@lemm.ee
            link
            fedilink
            arrow-up
            6
            ·
            14 hours ago

            The large initial percentage of female coders was due to computer having been a female job, because secretary was. Their role within companies didn’t change, what changed is that they were using machines to do the computing instead of doing it by hand.

            We’re kinda lucky to have the woke trifecta (Ada, Grace, Alan) (first programmer (woman), inventor of compilers (woman), absolute unit (gay)) to keep the chuds at bay. Even if we weren’t all socially inept nerds (or pretending to be so to bosses) there’s only so much you can do, culturally, if the population is growing exponentially. Uncle Bob (yes I know he’s a chud) did the maths at some point IIRC it was something like the number of programmers doubling every two years. Which also means that at any one point in time roughly 2/3rds of programmers have no idea what they’re doing, which explains the javascript ecosystem.

            • F04118F@feddit.nl
              link
              fedilink
              arrow-up
              1
              ·
              7 hours ago

              So many great points in a short comment. I love your high bandwidth writing style!

        • Kichae@lemmy.ca
          link
          fedilink
          English
          arrow-up
          7
          arrow-down
          6
          ·
          16 hours ago

          Dude. Chill. Ain’t nobody giving a shit about your take on someone else’s take.

  • hope@lemmy.world
    link
    fedilink
    arrow-up
    124
    ·
    18 hours 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
        5
        ·
        edit-2
        16 hours 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
          ·
          edit-2
          13 hours 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.

      • Eager Eagle@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        14 hours 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.

  • Lemminary@lemmy.world
    link
    fedilink
    arrow-up
    33
    ·
    15 hours ago

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

  • ButteryNickel@lemmy.wtf
    link
    fedilink
    arrow-up
    27
    ·
    15 hours ago

    I once had an intern attempt to install sudo using NPM and when that didn’t work he asked ChatGPT “Why can’t I install sudo from NPM?” while I’m trying to explain it to him.

    He was smart, but somehow knew very little about commercial computers despite being on the verge of getting his master’s in computer science.

  • arudesalad@sh.itjust.works
    link
    fedilink
    arrow-up
    46
    ·
    18 hours 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
      8
      ·
      9 hours 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
      11
      ·
      15 hours 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
        2
        ·
        edit-2
        9 hours 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.

      • zurohki@aussie.zone
        link
        fedilink
        English
        arrow-up
        4
        ·
        14 hours ago

        You couldn’t crank your CPU in the olden days, it’d make games run in fast forward.