• Joe FritzJoe Fritz, over 5 years ago

    To play devil's advocate... if you're going to argue for speed and then write a million classes with a single style in them with the class name defining the style of the element, like this:

    .tc { text-center; }

    Why not just inline all of your CSS?

    1 point
  • Noam Almosnino, over 5 years ago

    This is really good stuff! I haven't thought about this in terms of CSS before.

    It follows the rule of composition over inheritance which is common in game programming to make systems more flexible and able to change at runtime.

    Thanks for sharing!

    0 points