• jiberish@lemmy.world
    link
    fedilink
    arrow-up
    103
    arrow-down
    5
    ·
    1 year ago

    As an amateur web designer in the 90s and early 2000s, this speaks to me. I stopped web development when CSS became popular and I couldn’t wrap my head around it.

    Is there a petition I can sign to scrap all this nonsense modern web progress and go back to that beautiful, dial-up friendly HTML?

    • herrvogel@lemmy.world
      link
      fedilink
      arrow-up
      75
      ·
      1 year ago

      I stopped doing frontend work when responsive design became important. Super unpleasant work. Now I’m happier at the backend where I don’t have to worry about how my shit looks on the 7 million possible screen sizes people are likely to use. Life is more peaceful here.

        • Kichae@kbin.social
          link
          fedilink
          arrow-up
          46
          ·
          1 year ago

          Have you considered just forcing everyone to access your sites via Internet Explorer 5.5?

        • MagicShel@programming.dev
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          As recently as 6 or 7 years ago I maintained some apps that forced 5.5 compatibility mode. Because they were poorly architected in a shitty framework and no one was willing to do or pay for or train for a rewritten version. They were finally migrating to .NET when I left. It was the govt so they are likely wrapping up that migration now.

      • traches@sh.itjust.works
        link
        fedilink
        arrow-up
        17
        arrow-down
        2
        ·
        1 year ago

        Alright hang on now - responsive design is about not excluding people based on the device they’re using. Many people do everything in their lives from a low end cell phone and cutting them out is a shit thing to do. Responsive design and progressive enhancement are objectively good things.

        The tools have gotten better over the past several years, it’s not as hard as it used to be.

        • herrvogel@lemmy.world
          link
          fedilink
          arrow-up
          13
          ·
          1 year ago

          ? Who said anything about excluding anything or anyone? I’m just saying I don’t like the work that has to go into making sure nobody’s excluded. In a way, I’m not excluding anyone by excluding everyone now. I quit frontend altogether, left other people to deal with it. At the backend I don’t have to worry about what kind of screen the other end might be using to view the JSON string I sent them. You don’t get “I just looked at your response headers on my 32:9 monitor that I divided into 9 randomly sized tiles and it looks like shit, please fix” calls when you work backend.

        • nyan@lemmy.cafe
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          Better? Not really. My experience is that sites have gotten “better” for mobile at the cost of making them nearly or completely unusable for people using desktop browsers with non-default settings (especially additional security lockdown, but even forcing a specific colour scheme can break some sites because some idiot calling himself a designer used css background-image for images that are content). Which means a fair number of sites are broken to some degree for me.

          The more things change, the more they stay the same.

          • traches@sh.itjust.works
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            1 year ago

            Those things are completely unrelated? I said the tools for responsive design have gotten better, which they objectively have.

            You’re not wrong that most css in the wild is trash, and I love dark mode as much as the next guy but you can’t complain that sites break when you’re fucking with styles. It’s the cost of tinkering.

      • candyman337@lemmy.world
        link
        fedilink
        arrow-up
        8
        ·
        1 year ago

        Modern frameworks make responsive design easier but yes it is still a lot to wrap your head around. I remember building my hs robotics team website in high school right as responsive design was becoming a thing. “WHAT DO YOU MEAN I HAVE TO NEST A CONTAINER IN A CONTAINER I ALREADY HAVE ONE!!!”

        Bless those who came up with flexbox

        • LeafEriksen@lemmy.world
          link
          fedilink
          arrow-up
          8
          ·
          1 year ago

          I love to see the occasional flexbox appreciation, since at least for me (someone just getting into Design/Web dev) flexbox changed responsive design from being a totally unfeasible project to being genuinely fun to work on, and sometimes the most exciting part!

        • Haarukkateroitin
          link
          fedilink
          English
          arrow-up
          13
          arrow-down
          2
          ·
          1 year ago

          Laughs in frameset!

          Kids nowdays try hard to do with divs what was already possible with framesets.

          Also I feel bad every time I remember that <blink> was taken away from us!

          • smpl@discuss.tchncs.de
            link
            fedilink
            English
            arrow-up
            8
            arrow-down
            1
            ·
            edit-2
            1 year ago

            What do you mean? I still write my sites in HTML 4.1 and frameset works fine in all the browsers I’ve tried. HTML 4.1 is still a standard, I can only recommend more people use it. HTML5 isn’t really a standard… it’s a “living document”… pff.

            You’re allowed to center things and use table without shame… or if you really do prefer it, you can still wrap that relative positioned div with auto margins in an absolute positioned parent div or whatever CSS bullshit makes stuff centered nowadays.

            One thing I always though was very backwards in CSS is the paradigme to make div into tables instead of the other way. Tables are an easy and simple way to layout things and if it could degrade into divs you’d have your responsive design making many related CSS standards unnecessary.

            Had to edit becase all those tags in code quotes fucked up and end tags was appended to the post… it’s a bug.

              • smpl@discuss.tchncs.de
                link
                fedilink
                English
                arrow-up
                2
                arrow-down
                1
                ·
                1 year ago

                In the context of the modern web, I take that as a badge of honor. I’ve build pages using flexbox/grid and I’ve done so only for the sake of responsive layout, because of the way that tables can’t degrade to a bunch of boxes, but a bunch of boxes can by styled to look like a table. It is a convoluted way of doing table layout instead of just using a table.

                • traches@sh.itjust.works
                  link
                  fedilink
                  English
                  arrow-up
                  5
                  ·
                  edit-2
                  1 year ago

                  A table has semantic meaning: it’s for presenting tabulated data, not for building layouts. That’s why they behave the way they do and require the format they require. Table layouts have always been a hack, it’s just that for awhile there weren’t better options.

                  Again, you are insane if you’re still doing table layouts in 2023.

              • smpl@discuss.tchncs.de
                link
                fedilink
                English
                arrow-up
                2
                ·
                1 year ago

                Oh no you wouldn’t…

                • knocks on door
                • It’s the Wild Web Sheriff!
                • What the… You’ll never catch me!
                • rumble
                • a vase breaks
                • silence
                • Okay, okay I was just kidding. Tables are bad. HTML5 is the future.
                • dot20@lemmy.world
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  1 year ago

                  “And so the Gods (also known as the W3C) spoke down to the Programmers and said: ‘You shall not use tables for non-tabular data.’ And so it was.”

        • Aloso@programming.dev
          link
          fedilink
          arrow-up
          13
          ·
          1 year ago

          They still have their place; for example to embed Google Maps or a YouTube video. Generally, whenever you want to embed something from a different website you have no control over, that shouldn’t inherit your style sheets, and should be sandboxed to prevent cross site scripting attacks.

            • Aloso@programming.dev
              link
              fedilink
              arrow-up
              12
              ·
              edit-2
              1 year ago

              Iframes cannot access the main frame’s DOM if the iframe is from a different origin than the main frame, and they never share the same JavaScript execution context, so an iframe can’t access the main frame’s variables etc.

              It’s not required that iframes run in a different process, but I think they do at least in Chrome and Firefox if they’re from a different origin. Also, iframes with the sandbox attribute have a number of additional restrictions, which can be individually disabled when needed.

        • Aa!@lemmy.world
          link
          fedilink
          arrow-up
          5
          arrow-down
          1
          ·
          1 year ago

          Seems to me they were mostly used to put content inside a scrollable element. Their place has mostly been taken by overflow:auto hasn’t it? I think this is the better way.

        • SixTrickyBiscuits@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          I believe Kingdom of Loathing used iframes extensively to achieve what looked like a “dynamic” page long before that was a thing.

      • theangryseal@lemmy.world
        link
        fedilink
        arrow-up
        11
        ·
        1 year ago

        Oooh I loved my inline frames.

        I was so fucking proud of that. My links down the left side, two inline frames neatly in a box on the right, perfectly designed in two versions. One for 800x600, the other for 1024x768.

        I did websites for bands from East Tennessee, one for a weird website for survivors of “satanic ritual abuse”. I thought it was nuts but I made a hundred bucks.

        I wouldn’t even know where to start on the modern web. I’m fine with that too. I lost the passion for it when everyone under the sun wanted me to be their free tech support years ago.

        I remember when I first started on homestead. Seeing my dangling skeleton gifs and my “under construction” banners made me feel like something. There it was, the World Wide Web, and I had my own place on it. Perpetually under construction.

        I used to love browsing geocities and the log in name would be right there in the link. Something like geocities.com/cartman1988

        I’d guess the password and change things around on their page to mess with them. “Hmmm, Cartman eh? Let’s try southpark. I’M IN. Time to photoshop dicks on this dude’s face!”

        To be a kid again.

        Y’all got me all old and nostalgic here. :p

    • swordsmanluke@programming.dev
      link
      fedilink
      arrow-up
      10
      ·
      1 year ago

      Check out Gemini!

      It’s an alternative protocol to HTTP with a focus on simplicity and being much harder to abuse for user tracking.

      It’s still a small community, but growing.

      If you miss the internet of the nineties, there’s some echoes of it here.

    • 14th_cylon@lemm.ee
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      I second this request to rewind time back to 90s, I would like to remake few life decisions I made :D

  • mtchristo@lemm.ee
    link
    fedilink
    arrow-up
    59
    arrow-down
    2
    ·
    1 year ago

    The web is beyond bloated.

    The heavy reliance on JavaScript has suck the joy out of browsing the web for me

    • AnonymousLlama@kbin.social
      link
      fedilink
      arrow-up
      50
      arrow-down
      1
      ·
      1 year ago

      I’d say the over exploitation of JavaScript to leverage tracking, interaction and marketing has helped create the poor experiences we now have on web. The underlying technology when used for creating interactive and helpful UIs is very beneficial

      • grue@lemmy.ml
        link
        fedilink
        arrow-up
        5
        arrow-down
        5
        ·
        1 year ago

        Web pages are supposed to be hypertext documents, not “interactive… UIs!”

          • grue@lemmy.ml
            link
            fedilink
            arrow-up
            1
            arrow-down
            1
            ·
            edit-2
            1 year ago

            You’re “downloading an app” anyway, even if it’s JavaScript running in a browser. How do you think the client-side code gets to the client‽

            But yes, I think we need a new version of something like Java Web Start, except with the ability to steam parts of itself as-needed instead of having to download the entire .jar before being able to run. If you’re going to have an app, have an app that has proper libraries for the UI etc. instead of hacking everything on top of a whole bunch of DOM cruft!

            I guess WebAssembly is a step in the right direction, but it’s still too tied to the document viewer known as a “web browser,” for no good reason.

    • swordsmanluke@programming.dev
      link
      fedilink
      arrow-up
      37
      ·
      1 year ago

      May I introduce you to the Gemini project?

      It’s a new(ish) protocol for sharing interlinked text documents. It’s intended to sit between Gopher and HTML in terms of complexity and is deliberately, aggressively simple (some might even say crippled) with the intention that it will be nearly impossible to extend the protocol for surveillance capitalism. It’s not trying to replace ye olde WWW, but to provide a human-focused place for text-first, 90’s-style sites to live. …just without the blink tags.

      • Lvxferre@lemmy.ml
        link
        fedilink
        arrow-up
        13
        ·
        edit-2
        1 year ago

        …just without the blink tags.

        NOOO! IT IS BROKEN!

        How am I build my cool website without a blinking “Thank You For Reading!”???

  • Murdo Maclachlan@lemmy.world
    link
    fedilink
    English
    arrow-up
    39
    arrow-down
    1
    ·
    1 year ago

    Image Transcription: Meme


    STOP USING CSS

    * HTML WAS NOT SUPPOSED TO BE GIVEN CLASSES
    * YEARS OF MARKUP yet NO REAL-WORLD USE FOUND for styling beyond \ * Wanted to center content for a laugh? We had a tool for that: It was called ""
    * “Yes please align that content exactly 32.89% left. Please align 59.0px down”
        - Statements dreams up by the utterly deranged

    LOOK at what FRONT-END Devs  have been demanding your Respect for all this time.
    (This is REAL CSS. done by REAL Devs)

    [Three screenshots of CSS code, each one marked with a number of red question marks. The first screenshot has five question marks and reads as follows:]

    h1 {
            font-size: .75em;
            position: absolute;
            bottom: 20px;
            width: 94%;
            left: 2%;
    }
    

    [The second screenshot has eight question marks and reads as follows:]

    *{
        font-size: 30px;
    
    }
        q::before {
      content: "«";
      color: blue;
    ]
    
    q::after {
      content: "»";
      color: red;
    }
    

    [The third screenshot has sixteen question marks and reads as follows:]

    #header ul a:focus, #header ul a:active,
    #header ul a:hover {
        background-color: #5A5A5A;
        outline-color: -moz-use-text-color:
        outline-style: none;
        outline-width: medium;
    }
    

    [The screenshots end.]

    “Hello center that div please”

    They have played us for absolute fools


    I am a human who transcribes posts to improve accessibility on Lemmy. Transcriptions help people who use screen readers or other assistive technology to use the site. For more information, see here.

  • GenderNeutralBro@lemmy.sdf.org
    link
    fedilink
    arrow-up
    60
    arrow-down
    30
    ·
    1 year ago

    The web killed the Internet.

    JavaScript killed the web.

    CSS defiled its corpse.

    Honestly and without any trace of irony, I wish CSS would die and be replaced by maybe half a dozen new HTML tags to support a few specific responsive design patterns.

    CSS runs counter to the concept of HTML. Web design used to be inherently user-centric. The designer was not supposed to have much of a say in how it looked on a client’s system, because that was up to the client. The designer only provided high-level hints like “this is a paragraph” or “this is emphasized”. The browser decided how a paragraph should be displayed, which fonts to use, etc.

    Over time, visual designers clawed more and more control from the user, much to the detriment of the entire rest of the world.

    99% of web sites would be better if they conformed to basic semantic markup. Low-level design parameters should not exist on the web.

    It’s a straight line from CSS to Google’s new trusted web bullshit. It’s all about wresting control away from the user and giving it to the site designer. Fuck you, site designer. My eyeballs do not belong to you.

    • nintendiator@feddit.cl
      link
      fedilink
      arrow-up
      59
      arrow-down
      1
      ·
      1 year ago

      lol. lmao. What am I even reading?

      The CSS is literally openly served along with the website. One line change in the HTML (in allows you to make your own CSS for a site. There’s a world of difference between that and “Google’s new trusted web bullshit”. And you know who sits much closer to Google than HTML and CSS?

      Javascript. That’s who.

      • DarkenLM@kbin.social
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        1 year ago

        Javascript sits closer to Mozilla than Google. JS was created for the Netscape Navigator, and Netscape created Mozilla.

          • DarkenLM@kbin.social
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            That I agree with. People are praising webassembly to replace JS (it won’t, but that’s another story), but at least obfuscated JS can still be read, albeit with some difficulty, but it’s harder to read WA executables. There will be a lot of malware created with WA.

      • GenderNeutralBro@lemmy.sdf.org
        link
        fedilink
        arrow-up
        4
        arrow-down
        7
        ·
        1 year ago

        It doesn’t matter if it’s open or closed. The problem is the unnecessary complexity and lack of straightforward and standardized meaning. If you want to customize the way you view the web in general, you will either limit yourself to small changes like ad blockers, or you will need a handcrafted custom CSS for every site you visit. There’s no real standardization in formatting. Everything is just a div with an arbitrary name.

        RSS feeds could address much of this, but it would need to be taken a step further.

    • fkn@lemmy.world
      link
      fedilink
      arrow-up
      33
      arrow-down
      1
      ·
      1 year ago

      I only disagree with you in that for an application, the application designer should choose what an application looks like.

      The argument of if applications should be deployed via web browser is an independent discussion.

      • wizardbeard@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        8
        arrow-down
        6
        ·
        1 year ago

        The argument of if applications should be deployed via web browser is an independent discussion.

        That discussion begins with the question “Should applications be deployed via web browser?” and ends with the response “No”

        • fkn@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          1 year ago

          I think that the argument here lies in where people draw the line on what is considered valid formatting and “too much”.

          I think, that since html has paragraph hints, there is little difference in also describing what paragraphs should look like. Which slippery-slopes our way to entire applications. If html is more than just a data format, but also a visual formatting language (paragraphs are visual formatting hints, don’t try to argue otherwise) then additional visual formatting rules is the natural progression. The vast, vast, vast majority of people view html as a markup language for describing the visual layout of information. HTMLs creation is basically a declarative method by which visual representation of data can be made, while also including the data to be displayed.

          I personally have been developing HTML since 93/94 and JavaScript since 96. Not once during the early years did anyone ever say “HTML” isn’t a visual markup language. If you wanted a data markup language you used something else. XML was developed specifically for that purpose… To define the data markup without the visual aspect of it because HTML was for visual representation.

          I get it. You are nostalgic for a bygone era… Or you don’t like developing with JS… Or css is just too hard for you to understand. I get it. HTML was a dev language, that made dev quality UI and barely would scrape the grey box standards of today… And then designers got involved and things got hard.

          Damn.

          • MagicShel@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            1 year ago

            I’ll argue that paragraphs are not just visual formatting hints. Like <em>, they impart semantic meaning. Text within a paragraph is closely related and should not be scattered across the page or broken up by other elements. Just like <h1> is more than just “bigger and bolder!”

            There are other tags you could’ve chosen that would support your argument. <div> for example is pure layout, so I’m not saying your argument holds no water, but you put the parenthetical there and it seems either poorly thought out or lacking in perspective.

            I think the key here is that there was initially no CSS and it was required to have a way to assist the readability of the content and so layout tags were added, but I’d argue that’s an artifact of how the web evolved and not the purpose of HTML.

            If appeal to age is an important factor, I’ve been using the internet since before there was a “world wide web.”

            I don’t know why I can’t make it stop inserting these close tags. Probably a client bug.</div></h1></em>

            • fkn@lemmy.world
              link
              fedilink
              arrow-up
              2
              ·
              1 year ago

              Lol. That’s a good argument but I didn’t say paragraph doesn’t denote more than visual information. I said that it unequivocally denotes visual information.

              I agree with the rest of your analysis though.

        • peopleproblems@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          To be fair, the distinction should be pointed out that no sane individual would deploy their entire application to a browser right?

          Like their whole stack?

          Right? padmeface.jpg

        • oo1@kbin.social
          link
          fedilink
          arrow-up
          3
          arrow-down
          1
          ·
          1 year ago

          yeah, substance > style.

          the content/facts/information is what should matter, make it accessible. share it.

          let the audience access it however best suits them.

          • fkn@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            I would argue that json has become the data format method of choice for most applications.

            What you want is mostly what json is, not html.

            • oo1@kbin.social
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              The format doesn’t bother me too much.
              json can be great for sure.

              But I reckon some people could still bung a load of unnecessarily complex layout and aesthetic data in there, and potentially screw up the data structure and still make it harder to access than need be.

              I accept that, if the json is structured logically, it should handle both substantive and layout data, and probably easiest to get to either the content or the formatting.

      • grue@lemmy.ml
        link
        fedilink
        arrow-up
        1
        arrow-down
        2
        ·
        edit-2
        1 year ago

        Good thing web pages are supposed to be documents and not “applications,” then!

        If you want a goddamn application, go resurrect Java Web Start or something.

        • LittleLordLimerick@lemm.ee
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          1 year ago

          That was true 20 years ago. Things evolve. No one wants to download and install ten million individual apps for every single thing they do on the internet.

          • Itty53@kbin.social
            link
            fedilink
            arrow-up
            3
            arrow-down
            1
            ·
            edit-2
            1 year ago

            The irony of people posting on web applications they utilize for their own enjoyment, “applications don’t belong on web browsers” is killing me here.

            There is a portion of the tech industry with their head stuck firmly up their ass and it seems a lot of em hang out in the fediverse. These people would demand we go back to party lines and manual switchboards. Techno-hipsters who are just angry at the next generation who took their BBS internet and actually made the world use it.

            Downvote me, that’s fine. Use that interactivity application on your browser. Go be the very definition of irony. Please.

    • nomadjoanne@lemmy.world
      link
      fedilink
      arrow-up
      11
      ·
      1 year ago

      There is also a bit of a design arms race going on here.

      My business has a bloated site with animations, Google fonts, graphic design, etc., etc. Why? Because normie customers expect it and if I don’t have it they’ll go to a competitor that had a more “designed” website.

      If most websites looked as if they were built in the year 2000 we wouldn’t lose much functionality and we’d spend much less resources on this stuff…

      • bobs_monkey@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Because normies customers expect it and I don’t have it they’ll go to a competitor that had a more “designed” website.

        This is exactly where I decided to just not have a website for my business (electrical contractor in a tourist town). I’m already busy enough as is, and it’s just one more aspect that helps filter out knuckleheads that usually end up being more trouble than the money is worth.

        I had intended on creating a basic website that had all of the pertinent information. Then as I started getting into it, everyone had their “design/visual recommendations” and that “a polished website was a testament to the quality of my work.” It kinda dawned on me one day that I’d rather have something basic and functional so that I can focus on what’s important, the actual work. Well, that’s not how the world works anymore, so I said screw it. Now I just tell people I don’t have time for it, and if they take issue with it, find someone else.

    • DrQuint@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 year ago

      I really would like that styling was a part of the structure itself too, but way before then, I’d love for JS and HTML to be coupled closer together. The way Angular/React/etc couple things at render time is just way more straightforward.

      Unfortunately, I can also think of a bajillion reasons why Js should stay decoupled.

      • fkn@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        If only they actually did that instead of faking it then rendering it afterwards.

        That shadow Dom is a crazy making factory… Although it’s probably better today.

  • BoofStroke@lemm.ee
    link
    fedilink
    arrow-up
    27
    ·
    edit-2
    1 year ago

    The problem is that HTML was not designed to be a layout description. Your browser was to decide.

    So, to force HTML to be a layout description rather than simple markup, we have this mess.

    HTML != TeX

  • Blackmist@feddit.uk
    link
    fedilink
    arrow-up
    22
    ·
    1 year ago

    Oh, got that layout looking all nice and modern?

    Be a shame if somebody… tried to email it!

  • darthfabulous42069@lemm.ee
    link
    fedilink
    arrow-up
    26
    arrow-down
    7
    ·
    1 year ago

    You’re never supposed to use pixels in CSS anyway; you should bare minimum use percentages to account for different screen sizes to make the designs responsive and not look terrible on different screen sizes.

    • MagicShel@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      The new unit of measure is EM. Which is related to font size somehow. Idk, I might be outdated already. I ran screaming from front end years ago and I won’t even cop to being a full stack developer these days. I’ll lead full stack projects, but I’m not doing the FE dev.

  • kshade@lemmy.world
    link
    fedilink
    arrow-up
    18
    ·
    edit-2
    1 year ago

    Really though it’s a shame that so many devs still try to treat the web like print where they have full control over the layout at any given time. Even after the death of Flash and the introduction of smartphones and their need for fluid layouts. Meanwhile concepts like progressive enhancement got left behind.

    At least we’ve got flexbox and grid now.

  • Marxine@lemmy.ml
    link
    fedilink
    English
    arrow-up
    13
    arrow-down
    2
    ·
    1 year ago

    As a frontend dev I hate frontend. CSS is not even the main issue.

    Fuck Jest and having to mock libraries. I’m gonna go backend in Go or something like that ASAP.

  • Lvxferre@lemmy.ml
    link
    fedilink
    arrow-up
    14
    arrow-down
    4
    ·
    edit-2
    1 year ago

    My main issue isn’t even that CSS exists, or its current functionalities. It’s the expectation that, if you’re creating a web page, you must use CSS extensively, and ditch every single “pure” HTML feature that might solve your problem.

    On a practical level, what’s intrinsically wrong with the center tag? Or tables for alignment? Those might be bad in some situations, but they’re rather succinct and simple ways to get what you want.

    “But what if in the future…” - address future problems in the future. As soon as they appear - not before or after that.

    • gornius@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      edit-2
      1 year ago

      Have you even made a production grade front end project?

      You can’t use “pure” HTML solutions because every browser can display these differently. You have to use CSS to make a website look and behave modern. “Pure” center tag is clunky and doesn’t work everywhere and that’s “by design” (That behavior is defined in specification, and we can’t change specification to meet today’s standards because that would make it non backwards compatible). Additionaly you need to make your website scale to wide range of devices. And sometimes you need to even add JS to fix some of the issues if you don’t want the developer to implement a non-maintainable solution taking him 5 hours, if he could do that in JS in 5 minutes.

      Look CSS is not perfect. It’s hacky solution to a problem, but news flash: most software engineering is. And it’s proved to be working.

      “But what if in the future…” - address future problems in the future. As soon as they appear - not before or after that.

      That’s the stupidest thing I’ve read today. I hope you’re not any kind of engineer. There are some situations where it might not be worth it to future-proof something, but if you apply that to everything you end up needing a full rewrite instead of just adding a feature.

    • nickwitha_k (he/him)@lemmy.sdf.org
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      1 year ago

      Or tables for alignment?

      Tables are for displaying data, not styling. They worked in the past because there was no alternative but they are the wrong tool for the job; like cutting a board with a hammer.

      • Lvxferre@lemmy.ml
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        edit-2
        1 year ago

        Any tool or resource is for whatever usage people make out of it.

        The distinction between data and layout is not some inviolable dogma.

        Tables still work in the present, even if there are alternatives nowadays.

        like cutting a board with a hammer

        Frankly, that is a short-sighted and really dumb analogy.

        A hammer won’t be able to cut the board. A table will however be able to create the basic layout of a site.

        A better analogy would be cutting some wood with a knife. Sure, if the chunk of wood is really thick you’ll waste a lot of time doing it, and you’ll probably want an axe or saw instead; but even the knife will do it. However, if it’s just some thin branch, the knife will do the trick.

        And it’s the same deal here. If you’re making a huge site, full of SEO and machine-generated “content” and 4MiB of Javascript and lots of “marketing opportunities” (i.e. spam = advertisement) from your “associate partners” (i.e. spammers = advertisers), that’s going to be maintained by some intern, you’ll probably want to use CSS. But if you’re making some simple homepage,

            <table><tbody><tr><td>
                side panel
            </td><td>
                main content
            </td></tr></tbody></table>
        

        will do the trick. For everything else, it depends.

        • nickwitha_k (he/him)@lemmy.sdf.org
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          A hammer won’t be able to cut the board.

          Not with that attitude it won’t. I assure you that, with enough tenacity and/or a large enough hammer, one can absolutely cut a board.

          Your analogy is definitely closer though. However, I’d say it’s closer to using a flathead screwdriver to chop a mortise. Possible, without too extreme of measures but results are unlikely to be optimal, to hold up well to a heavy load, or offer fine controls.

          A simple site, like something that could work on Gopher or Gemini, or simple home page will absolutely do fine though. And, if that’s what’s required to avoid SEO trash, I’ll live.

    • RiotRick@lemmy.world
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      1 year ago

      Well, we have these devices with smaller screens these days. And people really want to use them for browsing the web as well.

    • 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍@midwest.social
      link
      fedilink
      arrow-up
      16
      arrow-down
      16
      ·
      1 year ago

      It’s the easiest way to bloat up a web page, and turn 1kb of text into 5mb of download.

      People whine about cryrocurrency wasting energy; it’s nothing compared to the petajoules wasted on bloated web pages, full of unneccessary Javascript and CSS.

      • Lvxferre@lemmy.ml
        link
        fedilink
        arrow-up
        13
        ·
        1 year ago

        To be fair most of that bloat comes from the Javascript; if your CSS stylesheet is above, say, 100Kb, odds are that you’re doing something wrong.

        The major damage that I see is on another level: raising the bar for what you’re expected to know, just to make a site and publish some stuff. It’s the wrong way to go - the development of new tech should enable more people to do more stuff, not the opposite.

        • I Cast Fist@programming.dev
          link
          fedilink
          arrow-up
          6
          ·
          1 year ago

          CSS stylesheet is above, say, 100Kb, odds are that you’re doing something wrong.

          Hello, non minified bootstrap reporting

        • alokir@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Configuring your bundler properly has to be done once per app, and it can significantly cut down on your app’s size.

          People expect to see apps, not web pages, but we can be smart about it. Tree shaking has been around for years now, if you build your app properly your bundle will only include the pieces of code that actually gets referenced, e.g. if you pull in a 2 megabytes large library but only use it for one function, only those few lines from the lib will end up in your bundle.