• gradual@lemmings.world
    link
    fedilink
    arrow-up
    18
    arrow-down
    5
    ·
    edit-2
    1 month ago

    Honestly, CSS is a fucking joke and it’s solely to blame for why centering something isn’t always straightforward.

    By the way, this picture is a crock of shit for people who aren’t programmers. Anyone who is a programmer will not take it seriously because programming is so much more about helping others instead of shaming them.

      • rooroo@feddit.org
        link
        fedilink
        arrow-up
        2
        ·
        30 days ago

        Everybody complaining about css like “but it doesn’t do what I want if to do without me investing a minute into why”.

        Ironically, it’s oh so often the RTFM crowd.

  • excral@feddit.org
    link
    fedilink
    arrow-up
    11
    ·
    1 month 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
      7
      ·
      1 month 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
        3
        ·
        1 month 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
          1
          ·
          1 month 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
            2
            ·
            edit-2
            1 month 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.

      • Omgpwnies@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 month ago

        This can be generalized to say that programming has become such a diverse profession that you will find experts in one area that know very little about others. There’s simply too many things that are programmed in too many ways for anyone to know it all anymore. Hell, that was the case in the 70’s and 80’s too.

  • lobut@lemmy.ca
    link
    fedilink
    arrow-up
    11
    ·
    1 month ago

    I started with C++ and went to Java to .NET to Javascript and now to Terraform.

    I know this is all a joke but there’s something definitely different with the ones above and the ones below. There’s a bit of satisfaction you can get sometimes when you’re working with memory directly and getting faster feedback (yes, there’s more math back then and it wasn’t easy to look stuff up, for sure). However, there’s new challenges nowadays … there’s so many layers on top of layers. I feel as though Stack Overflow and ChatGPT are so needed because the error messages and things we give are obfuscated or unclear (not always any library author’s fault as there’s compatibility issues, etc)

    We’re doing serverless stuff at my current company and none of our devs run code locally. They have to upload it using CDK or Serverless Framework to run on the cloud. We don’t use SST so we can’t set breakpoints but like that’s a lot of crap inbetween just running your code already. Not even getting into the libraries and transpilers and stuff we use. I spent like a few weeks over Christmas to get our devs to run the code locally. Guess what? None of them use it because they’re so use to uploading it. I was like, "you can put breakpoints in it! you can have nodemon and it instant reloads! nope, none of them care … "

      • andioop@programming.dev
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 month ago

        First learning is last learning.

        I’ll be the dumb one to ask: what do you mean? Is this that making a mistake that costs a lot is the best teacher, because you only have to mess it up once to learn it forever?

        • Arcane2077@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          5
          ·
          1 month ago

          Pretty sure they mean people don’t learn something again when they already learned it. Once you learn how to do something, willingness to learn it again but a different way dries up, and so you stick to bad habits as long as they ‘work’

        • mindbleach@sh.itjust.works
          link
          fedilink
          arrow-up
          2
          ·
          1 month ago

          It’s a mantra about teaching people and then expecting them to forget it. Doesn’t work. They’ll default to what they already know.

          My freshman English teacher got married in October and I called her by her maiden name the entire year.

          Like all programming mantras, it’s not universally true, but it’s annoyingly reliable. It reflects the shape of the human brain.

    • letsgo@lemm.ee
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 month ago

      Same way you did it in 2024 but it’s easier because the springgirdles have been replaced with rotated manglebrackets.

    • Rose@slrpnk.net
      link
      fedilink
      arrow-up
      5
      ·
      1 month 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.)

      • loics2@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        1 month ago

        w-... mx-auto, replace the 3 dots with your desired width value, and that’s it with tailwind

      • Ricaz@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 month 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…

        • FooBarrington@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          1 month ago

          Why is that silly? As long as the classes follow a strict naming scheme & have useful abstractions, that seems much better than having to give every node a unique class name that doesn’t necessarily have much meaning. I can’t count the number of “container” and “wrapper” and “content” classes I’ve seen & written, where the names don’t describe anything useful.

          • gradual@lemmings.world
            link
            fedilink
            arrow-up
            1
            arrow-down
            1
            ·
            edit-2
            1 month ago

            Shouldn’t they be designed in an intuitive manner that makes misuse more difficult than regular use?

            Otherwise, why even bother using them? It’s like now you need to know all the ins and outs of CSS and a trendy framework that will lock you into their ecosystem.

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

              Kidding aside, I think the popular frameworks these days are incredibly well made. Frontend web has always been hell, and if your job is producing functional web GUIs, you can’t do it on a large scale without them.

              • gradual@lemmings.world
                link
                fedilink
                arrow-up
                1
                arrow-down
                1
                ·
                1 month ago

                Based on my own experience developing GUIs, I’ve reached the conclusion that creating them through code is obsolete.

                We should be focusing on developing GUIs to develop GUIs, like Godot, instead of ‘frameworks’ that make an obsolete method of doing things even more cumbersome and complex.

            • bleistift2@sopuli.xyz
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 month ago

              Well, I find bootstrap very intuitive, and I don’t have 15 classes on my elements. That’s why I was asking.

        • Ricaz@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          7
          ·
          1 month 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

            • gradual@lemmings.world
              link
              fedilink
              arrow-up
              2
              arrow-down
              2
              ·
              edit-2
              1 month ago

              What’s sad is that web development is only a nightmare so websites can be worse.

              I genuinely believe it’s part of the concerted effort by the cabal to make us accept a ‘new normal.’

              They don’t want an environment where anyone feels like they can make a website. They want us to believe we need to spend years studying before we can do anything, and even then we can only do what our bosses tell us to.

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

                This is a bit of a stretch I think…

                Web development is complicated because it’s indredibly poorly “designed” from the beginning, and doing a full redo is impossible.

                It is 100x easier today than it was in 2006 when I started.

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

          Generally I find many these frameworks will make some complicated things simple, but the cost is some things that were once simple are now complicated. They can be great if you just need the things they simplify - or in other words can stick to what they were intended for, but my favorite way of keeping things simple is to avoid using complicated and heavy frameworks.

        • gradual@lemmings.world
          link
          fedilink
          arrow-up
          1
          arrow-down
          1
          ·
          1 month ago

          I think they exist because of ignorance.

          People who don’t understand how to do a task will usually choose the wrong tools for that task.

          If someone is trying to cover up their lack of knowledge, they will usually make things more complicated than they need to be.

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

        My brother in Christ TailwindCSS just gives classes that let you do inline styling in a shorter syntax! (and theme configuration, but mostly inline styling)

        Replace width: ...px with w-..., margin-left: ... with ml-... and margin-right: ... with mr-.... Setting both horizontal margins is mx-... and both vertical margins is my-....

        If you can do inline styling, TW just makes the syntax a bit shorter, but that’s it, really.

    • Blackmist@feddit.uk
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 month 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.

    • Impedans@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 month 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.

  • hope@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    1 month 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.

      • merc@sh.itjust.works
        cake
        link
        fedilink
        arrow-up
        1
        ·
        1 month 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
          ·
          1 month 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
            cake
            link
            fedilink
            arrow-up
            1
            ·
            1 month 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
              ·
              30 days 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.

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

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

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      2
      ·
      1 month 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.)

      • Prime_Minister_Keyes@lemm.ee
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 month 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.

    • exu@feditown.com
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 month ago

      Unix does so many stupid things and we’re still stuck with some of them. Especially the terminal section still applies today.

  • jubilationtcornpone@sh.itjust.works
    link
    fedilink
    arrow-up
    3
    ·
    1 month 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!”

  • Lemminary@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    1 month ago

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

  • applemao@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    1 month ago

    I still want to get into coding the OG manual way (because I enjoy pain and disappointment apparently) but now it seems like a waste of time since vibe coders and 13 year olds already are lightyears ahead of me. Also I have no reason to learn it, all apps are already built xD

    • gradual@lemmings.world
      link
      fedilink
      arrow-up
      4
      ·
      1 month ago

      all apps are already built

      Couldn’t be further from the truth. You also have to consider competition.

      • andioop@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        1 month ago

        Can’t think of anything that could serve a major need right now, but I absolutely identified things in my life where I could use a preexisting tool to accomplish my goal, but it’s much less hassle for me to use the one I made for myself. You don’t have to transform the world, sometimes you can help yourself with a minor inconvenience and then put it out there for anyone who might find themselves with the same inconvenience.

      • applemao@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 month ago

        True. But it seems like it’s way too late to start learning any programming now. Plus it’s saturated. I’ll learn it on the side for fun but it’ll probably never be a viable job for me

    • OldChicoAle@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      1 month ago

      I’m in the same boat. I used to be an amateur front and back end web developer. Almost made a text based RPG in middle school. I had to stop when shit got crazy in high school and college, but I don’t feel like any programming is worth my time right now. I’m focusing on gardening and maybe some cooking. You know, human activities that we can still enjoy.

      • applemao@lemmy.world
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        1 month ago

        Yeahh exactly. AI has pretty much ruined computer based fun now. Which in some ways is good, we should all learn physical hobbies again and not be reliant on tech. I still enjoy my hobby desktop computers though, I just enjoy learning how it really works under the surface.

  • RogueBanana@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 month 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.