28 ms·
The way people using CSS ties to the way they write markup. I like to think like thinking about Big O; read, insert, delete, update. Database design involves th
by Existenceblinks 8y ago
The way people using CSS ties to the way they write markup. I like to think like thinking about Big O; read, insert, delete, update. Database design involves this kind of thinking too. What operation you do most on your data structure (html in this case)
Atomic CSS
What's time complexity for each operation(by human)?
Read: O(sigh)
Insert: O(1)
Delete: O(n)
Update: O(n)
Pre-BEM era CSS
What's time complexity for each operation(by human)?
Read: kinda O(1)
Insert: O(1)
Delete: O(1) without garbage collect (unused css)
Update: kinda O(n^n)
That's a quick thought, maybe your operations are more arbitrary.
Probably when someone introduces new css framework/technique, showing some kind of complexity measurement (if possible) would be good idea?