easy to get into trouble for sure.

  • onlinepersona@programming.dev
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    7 months ago

    flexbox made things so much easier, but still hard. There are just too many rules to keep in your head about display and position and how they affect other attributes. And the box model… wow. margin, border, padding, content, but he attribute is box-sizing and it has border-box and content-box, but not the others.

    IINM it was written by people who came from print media (just like HTML) and that stuck.

    CC BY-NC-SA 4.0

    • fidodo@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      7 months ago

      Man I remember the days before flexbox and with browser specific bugs. CSS still screws with me but nothing like in the 2000s.

  • SuperSpruce@lemmy.zip
    link
    fedilink
    arrow-up
    2
    ·
    7 months ago

    Out of the 3 main web languages I use to develop my games (HTML, CSS, and JavaScript), CSS is definitely my least favorite.

    HTML is relatively simple and understandable such that bugs rarely get introduced into my HTML code.

    JavaScript, while janky and not known for good performance, will work without too much trouble compared to other languages (I’m looking at you, C++). No segfaults, effortless type casting, intuitive syntax, and debugging is fairly easy. Worst part is editing HTML and styles with JavaScript, it just feels clunky, to both the programmer and the CPU.

    And then there’s CSS. Despite being a language dedicated to making things look pretty, it’s just an unintuitive list of properties on HTML classes. So many times it takes way too long to do a simple thing like center text in a div when there is other text that is meant to not be centered. But I guess I’m not using it to its fullest potential, as I recently came across an article that listed many pretty graphics, often animated, that was purely made using CSS.

  • MonsiuerPatEBrown@reddthat.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    7 months ago

    I remember before CSS was released it was supposed to be such a panacea. And then everyone said that CSS 3 was going to fix everything.

    And now we are here saying the human created system isn’t the problem it is the humans that are the problem.

    Semiconductors are the aliens. They are ruling us now.

    • fidodo@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      7 months ago

      How do you remember those days and not think things are way better now? CSS can still have weird behavior, but it’s nothing compared to doing everything through one off html attributes and trying to position things with float hacks and dealing with browser specific bugs. Despite its problems, as someone who has made websites through every Internet era, things have gotten better and better.

  • mark@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    Yeah, because anything that isn’t a big new JavaScript framework is just way too complicated

    • jaemo@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      7 months ago

      Somehow I doubt a lot of these opinions are steeped in the experience of building an HTML layout using tables, transparent gifs and inline width attributes. Shit was wild before CSS.

  • go $fsck yourself@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    2
    ·
    7 months ago

    It’s really not, though. This is only true if you’re bad at CSS, which basically can be said about anything.

    • NullPointer@programming.devOP
      link
      fedilink
      arrow-up
      3
      ·
      7 months ago

      unless you inherit a large base written by someone who is bad at it where their approach seemed to be to write new bad rules in attempt to cover up previous bad rules and so on. we all know how supportive employers are at addressing technical debt. (site redesign cant come soon enough)

      • underisk@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        7 months ago

        Not sure about your particular situation but there’s also the possibility that the bad CSS was good CSS when it was written and over time that got superseded by advancements in both technology and practice.