Posted in Design, Development

My road map to refactoring CSS in large code bases

For any organisation working on a large code base over a long period of time there will eventually be a point where the code has become unwieldy and it’s time to do a clean up. In the last few years we’ve seen CSS3 standards roll out, some great tools and preprocessors such as SASS, the Rails Asset Pipeline (sprockets), and new standards for images such as SVGs. We’ve also seen how necessary responsive layouts are for the (ever growing) mobile user-base. We’ve all seen how CSS files can quickly get unwieldy and the cringe moment of finding code comments that say things such as /* Temp fix */ and it’s still there four years later. Let’s think about the timescale of front end technology…I imagine it being like aging in DOG YEARS. So that makes a seven year old code base like 40-50 human years. By this age people tend to have accumulated a lot of stuff. It’s […]