• ByteJunk@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    9 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
        7 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.