Hacker News new | ask | show | jobs
by underwater 5184 days 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.
1 comments

That'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.