Refactoring CSS: Not Impossible - The Code Whisperer

I wanted to change some of the styling at jbrains.ca, but I have a legacy Wordpress template, so I needed a way to start making incremental changes with something remotely approximating tests. I knew that I didn’t want to have to crawl every page to check that every pixel remained in the same place, in part because that would kill me, and in part because I don’t need every pixel to remain in the same place. I needed another way.


This is a companion discussion topic for the original entry at http://blog.thecodewhisperer.com/permalink/refactoring-css-not-impossible

:thumbsp: - Not only CAN css be refactored, if you have any love for your fellow developer, you WILL do it. :)

It never ceases to amaze me the varied topics you write on that interest me, Joe. Thanks!

I find refactoring CSS a good way to learn about the finer points of CSS without the tyranny of the blank screen.

hey J.B., thanks for the inspiration. I was humming and hawing about refactoring our six-year old CSS into modern SASS for a long time before finally deciding to take the jump. Took us about 100 hours but now the code is a dream to work with. Time well spent. (Wrote up our issues and workflow here: https://www.oxbridgenotes.c...

The article looks fantastic. I can't wait to read it in depth. I'm glad that investing 100 hours gave you such a good return.