2 ms·
Open up Vim, and do a global find and replace with a simple regex. That's 100 or even 10,000 button changes in a minute. That's not really related to "function
by yakshaving_jgt 8y ago
Open up Vim, and do a global find and replace with a simple regex. That's 100 or even 10,000 button changes in a minute.
That's not really related to "functional CSS" though.
- darekkay 8y agoYour simple regex will take you 1-2 additional minutes to deal with prettified code like this: <button href=".." class="...." >Button</button> And when you start fixing more complex components and HTML edge cases, you will have a lot of fun [0]. This is fine for legacy code. But I don't want to deal with this in modern projects, if I can just change a single file and be sure all components are updated. As you said, this is not related to functional CSS, but it solves many disvantages of it. [0] https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags https://stackoverflow.com/questions/1732348/regex-match-open...