In defense of functional CSS
How is this any different from saying "don't write functions, just repeat the same 10 lines the function would have in each place you'd use the function"?The real kicker:> "I don't want to have to repeat the same 20 classes on every single button." That's understandable. I will say that there's a chance that repeating those 20 classes can actually be somewhat valuable, because when you get into a situation where one of the buttons needs to have slightly more margin-top than the others, then it's easy to fix.That's just... bizarre, sorry.It's infinitely better programming practice to use a "button" CSS class, because then every time you want to tweak all buttons on the site, you tweak it in one place. With 100 buttons in different places, can you imagine the maintenance nightmare?The author suggests creating button HTML templates instead... but why? That's what CSS already does. And when one button needs more margin or whatever other unique tweak... you just add an additional class so it becomes e.g. class="button button-extra-spaced".For the life of me I can't see any advantages to the "functional CSS" described here at all -- it looks like a nightmare programming practice.