2 ms·
Eek. Not only are they hardcoding the logic but they mix their CSS-specific code into the function. I understand that they are handling a limited number of case
by underwater 15y ago
Eek. Not only are they hardcoding the logic but they mix their CSS-specific code into the function. I understand that they are handling a limited number of cases now but if I came across that kind of code in my work I'd be very sceptical.
- ars 15y agoThat's called not over engineering something. Making something more complicated doesn't make it better. Make it more complicated when you need to, not before.