• kewjo@lemmy.world
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    1 year ago

    javascript but more for philosophical reasons. when projects use typescript they always get focused on writing more scripts rather than optimizing HTML/CSS. Too many times I’ve seen overly complex scripts trying to solve what a properly arranged div and css tag have already solved.

    • Strawberry@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      I’ve been dealing with this at my job because a layout library was deprecated and is used throughout our codebase instead of proper css. Came to learn that my whole team doesn’t like/know css, so they used this library that used angular directives in the html instead. We had multiple giant scripts for arranging elements in a grid that changed based on screen width

      • parrot-party@kbin.social
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        1 year ago

        There are some cases where this is a serious issue that can’t be solved through pure CSS. Once container units are finally approved though, that will solve quite a few problematic layout issues in CSS.